wx.requestCommonPayment({
signData: JSON.stringify({
mchid: mchid,
out_trade_no: that.data.bmCode,
description: that.data.description,
amount: {
order_amount: that.data.total*100
},
env: 0
}),
paySig: paysign,
signature: signature,
mode: 'retail_pay_goods',
success(res) {
console.log('支付成功', res)
},
fail(errMsg, errCode) {
console.log('支付失败,错误信息:' + err.errMsg + ',错误码:' + err.errno)
},
complete(res){
console.log('结束的回调函数:' + res)
}
})
明明已经支付成功,并成功扣款,第二天也已经自动转到设置的银行账号上了,但这里就是不触发success回调。

现在官方没有真人来回复问题了吗?以前有问题,好歹有个官方的真人来回复一下,不管能不能解决问题。这个ai回复有明显几个错误:
1.env=0才是生产环境。
2.我都能成功发起支付了,还让我检查支付签名和用户态签名?
3.金额不是整型,签名都生成不了。
4.out_trade_no重复,都不能发起支付。
5.b2b支付,商户平台,没有交易中心。