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
1***@qq.com
- 发布:2020-06-16 11:23
- 更新:2021-07-09 04:07
- 阅读:12645
小程序调试成功了,层级不要包裹
let orderInfo = {
"timeStamp": data.timestamp,
"nonceStr": data.nonceStr,
"package": data.package,
"signType": data.signType,
"paySign": data.paySign
}
uni.requestPayment({
...orderInfo,
success: function (res) {
console.log(res);
uni.showModal({
title: '支付成功',
content: '',
showCancel: false,
cancelText: '',
confirmText: '确定',
success: res => {},
fail: () => {},
complete: () => {}
});
},
fail: function (err) {
console.log(err,"支付失败");
},
})
5***@qq.com
万分感谢楼友的办法,特有效
2022-08-04 18:06