Blogger Information
Blog 29
fans 0
comment 0
visits 34440
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
小程序支付
徐郭鹏的博客
Original
530 people have browsed it

正确的顺序是统一下单生成预支付ID,然后使用和小程序支付一样的参数(appId,timeStamp,nonceStr,package,signType)获取一个小程序的支付签名,使用上述字段和得到签名调取小程序支付。之前小程序签名验证失败的原因就是直接使用统一下单生成的签名调取小程序支付。经过查找在  http://www.wxapp-union.com/portal.php?mod=view&aid=2558 找到答案。

还有一个问题是预支付ID的生成签名方式一定要是MD5的

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post