后端各种参数已经获取,在调用拉起支付功能时候 小程序无任何响应,未调用success,而是走了fail 和 complete,fail中未打印错误信息
wx.requestPayment(
{
"timeStamp": res.data.timeStamp,
"nonceStr": res.data.nonce,
"package": "prepay_id=" + res.data.prepayId,
"signType": "RSA",
"paySign": res.data.paySign,
"success":function(res){
console.log('支付完成!')
},
"fail":function(res){
console.log('支付失败' + res )
},
"complete":function(res){
console.log(res)
}
})
fail里的res返回了什么内容?