1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
基于 React Native 的宝支付包,已更新到最新的支付宝 SDK 版本,支持Android/iOS。 ⚠克隆自:https://github.com/uiwjs/react-native-alipay ⚠克隆时间:2024.07.25
Go to file
2020-07-07 17:44:55 +08:00
android Init project. 2020-07-07 17:44:10 +08:00
example Init project. 2020-07-07 17:44:10 +08:00
ios Init project. 2020-07-07 17:44:10 +08:00
.gitignore Init project. 2020-07-07 17:44:10 +08:00
index.js Init project. 2020-07-07 17:44:10 +08:00
package.json Init project. 2020-07-07 17:44:10 +08:00
react-native-uiwjs-alipay.podspec Init project. 2020-07-07 17:44:10 +08:00
README.md Update README.md 2020-07-07 17:44:55 +08:00

react-native-uiwjs-alipay

基于 React Native 的宝支付插件。适用于商家在App应用中集成支付宝支付功能商家APP调用支付宝提供的SDKSDK再调用支付宝APP内的支付模块。如果用户已安装支付宝APP商家APP会跳转到支付宝中完成支付支付完后跳回到商家APP内最后展示支付结果。如果用户没有安装支付宝APP商家APP内会调起支付宝网页支付收银台用户登录支付宝账户支付完后展示支付结果。

  1. Android支持2.3及以上的系统版本运行
  2. iOSiOS 6.0以上(包含iOS 6.0)
  3. 支持手机系统iOS苹果、Android安卓

Getting started

# react-native version >= 0.60+
$ cd ios && pod install
# or
$ react-native link react-native-uiwjs-alipay

Usage

import Alipay from 'react-native-uiwjs-alipay';

// 设置 支付宝URL Schemes
Alipay.setAlipayScheme(scheme);
// 支付宝 Android 支付
// orderInfo 是后台拼接好的支付参数
Alipay.alipayAndroid(orderInfo,(res)=>console.log(res))
// 支付宝 iOS 端的支付
Alipay.alipay(orderInfo, (res)=>console.log(res))

其它

当前工程基于 @brodybits/create-react-native-module 初始化。

npx create-react-native-module --package-identifier com.uiwjs --generate-example Alipay --example-react-native-version 0.62.2 --module-name react-native-uiwjs-alipay --github-account uiwjs --author-name "Kenny Wong" --author-email "wowohoo@qq.com"

相关连接