A React Native Wrapper for NetPay SDK.
Note: This library only supports Android for now.
npm install react-native-netpay
import ReactNativeNetPay from 'react-native-netpay';
// ...
ReactNativeNetPay.init('<YOUR PUBLIC KEY>', { testMode: true });
// ...
try {
const response = await ReactNativeNetPay.openCheckout(false);
/*
response = {
brand: string;
lastFour: string;
token: string;
}
*/
} catch (e) {
//
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT