b***@outlook.com
b***@outlook.com
  • 发布:2021-10-26 11:27
  • 更新:2022-09-07 10:11
  • 阅读:1111

微信小程序支付uni.requestPayment回调错误

分类:HBuilderX

走了微信小程序付款,付款成功,商户号也收到钱了,success内的跳转也执行了,

但是res返回{errmsg: "requestpayment:ok"} ,且没有其他回调参数

setTimeout(function() {
let that = _this
uni.requestPayment({
// provider: 'wxpay',
timeStamp: _this.timeStamp,
nonceStr: _this.nonceStr,
package: 'prepay_id=' _this.prepay_id,
signType: 'MD5',
paySign: _this.paysign,
success: function(e) {
setTimeout(
function () {
console.log(e)
console.log('成功');
that.modalName = 'Modal2'
that.PageCur = 'choose'
console.log(that.Modal);
console.log(that.PageCur);
that.clear()
}, 100);
},
fail: function(err) {
that.PageCur = 'choose'
that.modalName = 'Modal2'
}
});
}, 500);

2021-10-26 11:27 负责人:无 分享
已邀请:
1***@139.com

1***@139.com

同样问题,关注,求解答,支付成功,失败,都是返回{errMsg: requestPayment: ""} ,ok和cancel

要回复问题请先登录注册