对于支付宝的支付做了封装
import Alipay from 'react-native-yunpeng-alipay';
var requestCommon ={
//支付宝公共支付调用函数
usePay:async function(tx_sn,successFunction,errorFunction){
return fetch('http://'+ip+'/*****/***', {//获取用户支付的链接
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: 'login_user_sn='+login_user_sn+'&aes_timestamp='+second+'&tx_sn='+tx_sn
}).then((response) => response.json())
.then((responseJson) => {
console.log(responseJson,"调用app支付");
let res = responseJson;
if(res.result==0){
Alipay.pay(res.url_argv).then(function(data){
console.log(data,"