react-native-fastpay介绍及使用说明

本文档介绍了如何在React Native项目中手动安装和配置react-native-fastpay,包括iOS和Android的步骤。详细讨论了手动安装过程,配置系统库,设置URL Scheme,以及在AppDelegate.m中的回调设置。此外,还提供了集成中可能遇到的问题和解决方案,例如签名匹配问题,确保支付成功后能正确返回应用。
摘要由CSDN通过智能技术生成

react-native-fastpay

$ npm install react-native-fastpay --save

$ react-native link react-native-fastpay

Manual installation

iOS

  1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
  2. Go to node_modules ➜ react-native-fastpay and add RNFastpay.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNPutiPay.a to your project's Build Phases ➜ Link Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java

    • Add import import com.reactlibrary.RNFastpayPackage;  to the imports at the top of the file;
    • Add new RNFastpayPackage() to the list returned by the getPackages() method
  2. Append the following lines to android/settings.gradle:

       include ':react-native-fastpay'
       project(':react-native-fastpay').projectDir = new File(rootProject.projectDir,     '../node_modules/react-native-fastpa
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值