1.1.4 • Published 3 years ago
react-native-react-native-qpayment v1.1.4
react-native-react-native-qpayment
Getting started
$ npm install react-native-react-native-qpayment --save
Mostly automatic installation
$ react-native link react-native-react-native-qpayment
Usage
import ReactNativeQpayment from 'react-native-react-native-qpayment';
import { NativeEventEmitter, NativeModules } from 'react-native';
componentDidMount() {
const eventEmitter = new NativeEventEmitter(NativeModules.ToastExample);
this.eventListener = eventEmitter.addListener('EventQPayPayment', (event) => {
// success: true or false
});
}
//execute payment event
var qp = {gatewayId: "xxx",
secretKey:"2-xxxx",
userEmail: "xxxxx@x.com",
orderId: "xxx",
amount: 1,
userCurrency: 'QAR',
mode: 'live',
description: 'XXXX XXX',
userCountry: "UA",
customerState: "Km",
customerAddress: "add res ss",
customerName: "Alex DZ",
customerCity: "KM",
customerPhone: "324234234324"
};
await QPayment.executePayment(qp);
// TODO: What to do with the module?
ReactNativeQpayment;
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />
import QPayment from 'react-native-react-native-qpayment';
import { NativeEventEmitter, NativeModules } from 'react-native';
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.9
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.12
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago