boxpay-checkout-reactnative-sdk
Version:
Boxpay Payment Gateway
35 lines (25 loc) • 792 B
Markdown
Welcome to your Boxpay Checkout React Native SDK 👋
```sh
npm install boxpay-checkout-reactnative-sdk
```
```js
import BoxpayCheckout from 'boxpay-checkout-reactnative-sdk';
import { ConfigurationOptions, PaymentResultObject } from 'boxpay-checkout-reactnative-sdk/interface';
// ...
const handlePaymentResult = (result: PaymentResultObject) => {
alert(`Payment ${result.status} : + ${result.transactionId}`);
};
<BoxpayCheckout
token={token}
onPaymentResult={handlePaymentResult}
configurationOptions={{
[]: true,
[]: true,
[] : false
}}
shopperToken={shopperToken}
/>
```