uniapp开发的APP微信支付,前面的通过uniapp提供的uni-pay都可以获得orderInfo订单数据,为什么调用
uni.requestPayment({
provider: "wxpay",
orderInfo: e.result.orderInfo,
success(e) {
console.log(e)
},
fail(e) {
console.log(e)
}
})
就出现了问题???
{
"errMsg": "requestPayment:fail [payment微信:-1]General errors",
"errCode": -100,
"code": -100
}
-1的问题,看这里就好了https://developers.weixin.qq.com/community/develop/doc/00004c5fb9036083cb8bbe36b5b809