1.1.4 • Published 4 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
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.9
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.12
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago