微信支付手记

多次回调处理,成功返回

<xml>
  <return_code><![CDATA[SUCCESS]]></return_code>
  <return_msg><![CDATA[OK]]></return_msg>
</xml>

 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_7&index=8

 前端处理:https://blog.csdn.net/weixin_39706415/article/details/86623595 https://www.cnblogs.com/cinlap/p/11091163.html

公众号支付

接口文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6

后台配置:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_3

 

微信登录

微信手机端报出了 redirect_uri域名与后台配置不一致,错误码:10003 错误

配置网页授权域名

 

 将授权验证文件放到项目根目录

 

 

后台通过AppID和 AppSecret 进行开发

 

 小程序支付apiKey配置

key设置路径:微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置

https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3

 

H5支付报 ERROR_GATEWAY: Get Wechat API Error:签名错误

可能是金额传了0,需要优先检查一下

 

参考: https://blog.csdn.net/pansanday/article/details/80685503 https://www.cnblogs.com/qlqwjy/p/11795260.html

官方文档:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html

posted @ 2020-07-17 16:42  程序生(Codey)  阅读(246)  评论(0编辑  收藏  举报