1、调用支付宝APP支付 服务端的接口返回的字符串已经跟支付宝客服确认过是对的,用支付宝测试工具可以唤起支付。
2、但是用HbuilderX2.3.6不管是真机调试,还是打包,都无法唤起支付宝支付,。
3、我的代码:
plus.payment.request(_this.pays['alipay'],payData, function(result){
mui.alert('支付成功');
},function(error){
var msg = error.message;
if(msg && ("" + msg).indexOf("User canceled") >= 0){
app.mui.toast("您取消支付了。", { duration: 'short', type: 'div' });
return false;
}
var str = "";
for(var k in error){
str = k + "=" + error[k] + "|" + str;
}
plus.nativeUI.alert("支付失败:" + str);
});
4、支付宝返回的支付字符串:
alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=2018011101785520&biz_content=%7B%22out_trade_no%22%3A%22BMKJXX1599678800967%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E8%80%83%E7%94%9F%5B019813222179+%E5%87%8C%E6%9F%B3%5D%2C%E8%80%83%E6%AC%A1%5B2019%E5%B9%B44%E6%9C%88%5D%E8%AF%BE%E4%BB%B6%E5%AD%A6%E4%B9%A0%E6%8A%A5%E5%90%8D%E4%B8%AA%E4%BA%BA%E6%8A%A5%E5%90%8D%E8%B4%B9%22%2C%22timeout_express%22%3A%222m%22%2C%22total_amount%22%3A%220.01%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Ftest.whxunw.com%2Fexamtest%2Falipay%2Freturn_url.jsp&sign=NPkfxzgYP75d54L%2FXnbnacS2zxKWuyiQ7O3lFSHTntyu3qRkW4q29PvxGA%2F1G%2BDY21hxD7cyXj%2FCkqdtqC4Z3a2ZeVEnUkAjV9ammzoUHWpOV7TP4LG0oGQ35yktuQDn%2Bt1EuZjZw5BeFgoSWe6TEXVEQMg6uZdAq0wO2BTArjv0PnJ7Eeiricr4f%2BEBHTcGGdOXdhudLOj6qYv1h54pRqmuXb33uWxZ6q%2FBTL3JgUcMwKbeZC57C75AEi7vbXsYsh7%2FIm6Urp9%2Bp%2FXiQV3QcizjcMRL%2FJsrbVapIfSPH89Z8ifLkcw0riBj6MO9dzFZhTcXDAKcv%2BJm64AB11unXQ%3D%3D&sign_type=RSA2×tamp=2020-09-10+10%3A40%3A38&version=1.0
j***@whxunw.com
- 发布:2020-09-10 10:52
- 更新:2022-03-26 16:53
- 阅读:1415
HbuilderX2.3.6 无法唤起支付宝支付 紧急求助!!!!有偿!!!!!
分类:HBuilderX
1 个回复
6***@qq.com
请问后面是怎么解决的