0.5.3 • Published 11 months ago

@naluri-hidup/react-native-payment-sdk v0.5.3

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

react-native-payment-sdk

naluri payment sdk

Installation

yarn install react-native-payment-sdk

Usage

import { createPaymentClient } from 'react-native-payment-sdk';

// ...

const paymentClient = createPaymentClient({
  environment: 'staging',
  cache: 'memory',
  authorization: {
    clientKey: '',
    clientSecret: ''
  }
})

paymentClient.createPayment();

paymentClient.on('paymentStatus', (status) => {
  if (status === 'success') {
    ...
  }
})

Contributing

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

License

MIT


Made with create-react-native-library

0.5.3

11 months ago

0.5.2

11 months ago