react-native-worldline-payment-gateway
v0.1.41
Published
Worldline payment gateway for Android and iOS
Downloads
5
Readme
react-native-worldline-payment-gateway
Worldline payment gateway for Android and iOS
Installation
npm install react-native-worldline-payment-gateway
yarn add react-native-worldline-payment-gateway
Usage
Android
Add following details in AndroidManifest.xml Note : Replace with your keys
<meta-data
android:name="com.worldline.paymentgateway.KEY"
android:value="6a2bxxxxxxxxxxxxxc236" />
<meta-data
android:name="com.worldline.paymentgateway.MID"
android:value="WL000xxxxxxxx06" />
iOS
Add following details in info.plist Note : Replace with your keys
<key>encryptionKey</key>
<string>6a2bxxxxxxxxxxxxxc236</string>
<key>merchantID</key>
<string>WL000xxxxxxxx06</string>
import WorldlinePaymentGateway from "react-native-worldline-payment-gateway";
// ...
WorldlinePaymentGateway.startPayment({
order_id: rand.toString(),
amount: '1300',
currency: 'INR',
description: 'Test Transaction from react native',
transaction_type: 'S',
}).then(setResponse);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT