我使用的是easyToWechat4.0的版本,里面接口整合出的数据如下,我用签名测试工具测出的签名和接口整合的签名是一样的,但是还是一直报签名错误,请问有没有什么办法能检测到错误!
或者是不是我的传值传少了? 我用的md5签名加密规则,然后api key 也重置过了、商户号id也用的是公众号中的商户号id没有错!
<xml>
<mch_id>1423xxxxxxx7402</mch_id>
<nonce_str><![CDATA[5b6fc9879716a]]></nonce_str>
<body><![CDATA[deal]]></body>
<out_trade_no><![CDATA[SN2018081213435352966711]]></out_trade_no>
<total_fee>20000</total_fee>
<notify_url><![CDATA[http://xxx.com/api/payment/notify]]></notify_url>
<trade_type><![CDATA[JSAPI]]></trade_type>
<openid><![CDATA[oV8-KxxxxxxYuARnthpFiQec]]></openid>
<spbill_create_ip><![CDATA[36.xx.xxx.252]]></spbill_create_ip>
<appid><![CDATA[wxxxxxxxe73053]]></appid>
<sign><![CDATA[0400701EF7F990D9652BBxxE5E8D8ACB]]></sign>
</xml>
{
"mch_id": 1423xxxxxxx7402,
"nonce_str": "5b6fc9879716a",
"body": "deal",
"out_trade_no": "SN2018081213435352966711",
"total_fee": 20000,
"notify_url": "http://xxx.com/api/payment/notify",
"trade_type": "JSAPI",
"openid": "oV8-KxxxxxxYuARnthpFiQec",
"spbill_create_ip": "36.xx.xxx.252",
"appid": "wxxxxxxxe73053",
"sign": "0400701EF7F990D9652BBxxE5E8D8ACB"
}
首先绝对不是包的问题,这种问题 10000000% 是配置问题,例如支付好像是后台还又一个开关要开的