支付签名验证失败

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:12 831 0 全屏看文

AI助手支持GPT4.0

支付签名验证失败

APP支付,统一下单成功,APP调起支付报:支付签名验证失败。以前一直是没问题的,最近就一直报这个错误,API支付密钥改了还是没用。签名工具验证也是通过的,谁知道这问题怎么解决???

App payment: the unified order is successful, and the app calls up the payment message: payment signature verification failed. Previously, there was no problem. Recently, this error has been reported. The API payment key is still useless. Signature tool verification is also passed, who knows how to solve this problem???

回答:

支付技术助手8:

请按照以下几点进行排查:

1、使用签名检查工具(https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=20_1)校验签名算法是否有误

2、确认秘钥是否有误(服务商模式使用服务商商户号秘钥,秘钥是在商户平台配置,如果同一商户号调用其它接口成功可排除是秘钥问题)

3、确认接口实际的请求参数与生成签名原串的参数一致,不能增加或缺少参数(可通过打印签名原串进行排查)

4、确认参数的大小写,参数名与接口文档一致

5、签名原串的参数值使用原始值,不需要encode

6、接口需要使用UTF-8编码

-EOF-

AI助手支持GPT4.0