小程序用官方php demo调起支付错误

发布于 7 年前作者 xiuying4417559 次浏览最后编辑 7 年前来自 ask

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.paySign should be String instead of Undefined;

这四个参数的错误是哪里需要修改?

3 回复
min57
min571 楼6 年前

检查参数配置是否正确, 这里报错是指参数值都为空

ping45
ping452 楼6 年前

重写了支付类,解决了。

zhoujun
zhoujun3 楼6 年前

重写支付类是什么意思?我也遇到这种问题