react-native-zest
v1.1.8
Published
Zest's React Native SDK for payments
Downloads
19
Readme
react-native-zest
Zest's SDK for react native
Installation
Depends on : react-native-webview
npm install react-native-webview / yarn add react-native-webview
To Install:
npm install react-native-zest
or
yarn add react-native-zest
Usage
import Zest from "react-native-zest";
// ...
<View style={{flex:1}}>
<Zest amountInMinor={'10000'} apiKey={'apiKey'} env={'test'}
customerEmail={'customerEmail'} description={'test'}
onComplete={(reference) => {
//Handle successful transaction
}} onInitFailed={(reason) => {
//SDK failed to initialize
}} />
</View>
N.B:
- Amount in minor means 100 should be passed as "10000"
- Currency default : NGN
- Env default : production
- Component should be wrapped in a view component occupying its intended space
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Copyright Zest Payments Limited 2023
Made with create-react-native-library