【已解决】wx.requestPay支付成功后点击成功按钮跳转页面时候会返回支付上一页一再跳转页面?

发布于 7 年前作者 guiyingwu11340 次浏览最后编辑 7 年前来自 issues

wx.requestPayment(OBJECT)成功回调里面执行跳转

wx.requestPayment({

‘timeStamp’: res.data.timeStamp,

‘nonceStr’: res.data.nonceStr,

‘package’: res.data.packageStr,

‘signType’: ‘MD5’,

‘paySign’: res.data.paySign,

success(res) {

var all_prices = that.data.all_Prices;

wx.redirectTo({

url: ‘…/…/pages/pay-success/pay-success?all_prices=’ + all_prices,

})

},

详情看楼下

2 回复
pengjuan
pengjuan1 楼6 年前

贴代码吧

pengjuan
pengjuan2 楼5 年前

你好,支付、卡券相关的问题请移步至微信支付专区https://developers.weixin.qq.com/community/pay提问,我们会有对应同学来处理。