
Conekta online payment processing platform on React Native
Currently iOS only
Installation
yarn add conekta-react-native # or npm i
Link the module
react-native link conekta-react-native
iOS Notes
Check that the Libraries group in Xcode have RNConekta
and the project settings include libRNConekta
in Linked Frameworks and Libraries. See Manual Linking.
Important. Since this module uses Swift, and RN projects are based in Obj-C, add an empty Swift file inside your project (no bridging header required), this will remove linked Xcode error. See related Stack Overflow Post
Usage
With async/await:
const conekta = 'key_KJysdbf6PotS2ut2' const card = conekta try const data = await card console catch error console
Or if you prefer promises:
const conekta = "key_KJysdbf6PotS2ut2"; const card = conekta; card ;
TODO
- Android version
- Optimization
- Testing
Please feel free to post a PR
Licence
MIT