0.2.0 • Published 12 months ago

react-native-netpay v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-native-netpay

A React Native Wrapper for NetPay SDK.

Note: This library only supports Android for now.

Installation

npm install react-native-netpay

Usage

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) {
  // 
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT