接入app支付统一下单接口,目前通过沙箱环境调试。通过签名验证工具能够通过,但是调用沙箱接口后仍然报签名不正确.
请求链接:https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder
请求参数:
<xml>
<appid><![CDATA[wx9cbf5a53f2abe179]]></appid>
<mch_id><![CDATA[已隐藏]]></mch_id>
<nonce_str><![CDATA[V8xBaVzPqTGYc5c]]></nonce_str>
<sign><![CDATA[EADA2D7BCAF874E1D600021C58D4BCAA]]></sign>
<sign_type><![CDATA[MD5]]></sign_type>
<body><![CDATA[测试]]></body>
<out_trade_no><![CDATA[461069798651072512]]></out_trade_no>
<fee_type><![CDATA[CNY]]></fee_type>
<total_fee><![CDATA[551]]></total_fee>
<spbill_create_ip><![CDATA[192.168.10.174]]></spbill_create_ip>
<trade_type><![CDATA[APP]]></trade_type>
</xml>
签名验证工具验证通过:
响应结果:
<xml>
<return_code><![CDATA[FAIL]]><
<return_msg><![CDATA[沙箱验证签名失败,
</xml>
您好,请关注以下公众号解决,里面也有对应的QA,谢谢!
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=23_1&index=1