小程序:支付的时候缺少参数:total_fee,支付失败
最开始的参数是这样写的
param: { "nonce_str": "", "package": "606eb3de10e0602a108d1eef", "appid": "", "sign": "", "signType": "", "timestamp": "" }
上面标注的这一行代码是不对的,应该改成下面这种格式,并且确保 prepay_id 参数是有值的。
param: { "nonce_str": "", "package": "prepay_id=606eb3de10e0602a108d1eef", "appid": "", "sign": "", "signType": "", "timestamp": "" }
本文来自博客园,作者:时光凉忆,转载请注明原文链接:https://www.cnblogs.com/naturl/p/14635769.html