<xml>
<appid>wx*******</appid>
<body>yuzijian</body>
<mch_id>00000012</mch_id>
<nonce_str>D47ADB23E80A4F6AAF54272F4FA339CE</nonce_str>
<notify_url>https://******/notify-wxpay</notify_url>
<openid>openidopenidopeni</openid>
<sign_type>MD5</sign_type>
<spbill_create_ip>127.0.0.1</spbill_create_ip>
<out_trade_no>EC6715D332744F2E20211227163017</out_trade_no>
<total_fee>19990</total_fee>
<trade_type>JSAPI</trade_type>
<sign>6127CF*******8B394B</sign>
</xml>
通过签名验证工具测试过,签名是通过的。但是访问统一下单接口,一直返回{return_msg=system error, return_code=FAIL},也不说具体是什么原因。。。。
openid是获取的真实的,appid和商户号id都没问题。
用postman测试请求看下返回报错什么
居然折腾了一天了快,一直以为代码哪里有问题。
新申请的商户号,代码里还用的老的。
https://api.mch.weixin.qq.com/pay/unifiedorder"