0.38.0 • Published 4 months ago
react-native-hyperpay-sdk v0.38.0
react-native-hyperpay-sdk
hyperpay
Installation
npm i react-native-hyperpay-sdk
Usage
import HyperPay from 'react-native-hyperpay-sdk'
// the firt step , set default configiration
// 1- shopperResultURL to redirect to this url after the payment completed
// 2- select your country code from list
// 3- merchantIdentifier is for apply pay only
HyperPay.init({
shopperResultURL:"shopperResultURL",
countryCode:"SA",
merchantIdentifier:"merchantIdentifier",
mode:"TestMode"
})
// ...
// to pay with apple
const result = await HyperPay.applePay("CheckoutId")
// to pay with any brand
const result=await HyperPay.createPaymentTransaction(
{ paymentBrand: "VISA",
holderName: "Test Test",
cardNumber: '4111111111111111',
expiryYear: '2027',
expiryMonth: '12',
cvv: '123',
checkoutID: `${res.data?.checkout_id}`,
shopperResultURL: "[YOUR_APP_IDENTIFIER]://[URL_SCHEMES]"
})
// get payment status
const result=await hyperPay.getPaymentStatus("000.000.000")
// result={
// "code": "000.000.000",
// "description": "Transaction succeeded",
// "status": "successfully"
// }
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
0.38.0
4 months ago
0.37.0
2 years ago
0.36.0
2 years ago
0.35.0
2 years ago
0.34.0
2 years ago
0.33.0
2 years ago
0.32.0
2 years ago
0.31.0
2 years ago
0.21.0
3 years ago
0.20.0
3 years ago
0.30.0
2 years ago
0.29.0
2 years ago
0.28.0
2 years ago
0.27.0
2 years ago
0.26.0
2 years ago
0.25.0
2 years ago
0.24.0
2 years ago
0.23.0
3 years ago
0.22.0
3 years ago
0.19.0
3 years ago
0.15.0
3 years ago
0.16.0
3 years ago
0.17.0
3 years ago
0.18.0
3 years ago
0.14.0
3 years ago
0.13.0
3 years ago
0.12.0
3 years ago
0.11.0
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.0
3 years ago
0.3.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago