使用开发者工具调试他的报错是这样子的
debug: true
nonceStr: "x3bFlETDZyMf54QAckV7hmvzJ******"
package: "prepay_id=wx21143226509400f797f7a7f0*****"
paySign: "Tngyqa1ygQYp40nq0BIwD2FkMe***"
signType: "RSA"
timeStamp: "1703140346"
errMsg: "chooseWXPay:fail, the permission value is offline verifying"
前端调用方法是这样写的
WeixinJSBridge.invoke('getBrandWCPayRequest', {
debug: true,
appId: res.result.appId,
timeStamp: res.result.timeStamp,
nonceStr: res.result.nonceStr,
package: res.result.package,
paySign: res.result.paySign,
signType: res.result.signType,
}, function (res) {
if (res.err_msg === 'get_brand_wcpay_request:ok') {
this.$toast.success({
message: '支付成功',
forbidClick: true,
})
}
……
真机也不行,也是调用不起来微信支付,哪位大神能够指点一下啊
不需要写wx.config吗