Open zhaobinglong opened 3 years ago
"errMsg":"cloud.callFunction:ok","result":{"returnCode":"FAIL","returnMsg":"错误的签名,验签失败","errCode":0,"errMsg":"cloudPay.unifiedOrder:ok"},"requestID":"325f816e-f0dd-11eb-80b0-32a98484f02d"
let payData = {
body: '破圈运动-体验卡',
detail: '', // detail为空会报告签名失败,必须有
outTradeNo: xxxxx,
openid:xxxx,
totalFee: 19900
}
微信小程序基于云函数快速接入支付
参考
https://developers.weixin.qq.com/community/develop/doc/0002222108ced8eaa45ac677351c01
https://segmentfault.com/a/1190000038619144
报错1
"requestPayment:fail parameter error: parameter.timeStamp should be String instead of Undefined;parameter.nonceStr should be String instead of Undefined;parameter.package should be String instead of Undefined;parameter.signType should be String instead of Undefined;parameter.paySign should be String instead of Undefined;"
// 小程序调用代码
云函数支付失败的时候返回