React Native Package for Binance Pay from Binance SDKs
npm install react-native-binance-pay
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactnativebinancepay.BinancePayPackage;
to the imports at the top of the file - Add
new BinancePayPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-binance-pay' project(':react-native-binance-pay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-binance-pay/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':react-native-binance-pay')
- In Progress (Coming Soon)
import BinancePay from "react-native-binance-pay";
// ...
BinancePay.initBinancePayParam(merchantId, prepayId, timeStamp, nonceStr, certSn, sign);
BinancePay.makePayment()
.then((result) => {
console.log(result);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT