uni.requestPayment({
provider: 'appleiap',
orderInfo: {
productid: that.productid,
},
success: (e) => {
console.log('success e', e)
uni.showModal({
content: "感谢您的赞助",
showCancel: false
})
},
fail: (e) => {
console.log('fail e', e)
uni.showModal({
content: "支付失败,原因为: " + e.errMsg,
showCancel: false
})
},
complete: () => {
console.log("payment结束")
uni.hideLoading()
}
})
这段代码报错:
requestPayment:fail Payment_appleiap:Error Domain=SKErrorDomain Code=0 "发生未知错误" UserInfo={NSLocalizedDescription=发生未知错误, NSUnderlyingError=0x280f21380 {Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x280f232d0 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed" UserInfo={NSLocalizedFailureReason=The verify credentials call failed., NSLocalizedDescription=Authentication Failed, NSUnderlyingError=0x280f21c20 {Error Domain=AMSServerErrorDomain Code=-5000 "未能完成操作。(AMSServerErrorDomain错误-5000。)" UserInfo=0x280123ae0 (not displayed)}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}},
https://ask.dcloud.net.cn/article/282
, [Number] 1636537406439
0 个回复