请求地址:https://api.mch.weixin.qq.com/pay/unifiedorder
为什么下面的报文会返回:
<xml>
<return_code>
<![CDATA[FAIL]]>
</return_code>
<return_msg>
<![CDATA[请求中含有未在API文档中定义的参数]]>
</return_msg>
</xml>
请求报文:
<?xml version='1.0' encoding='UTF-8'?>
<xml>
<sign>CC3C98547C778A19FB64211178E148ED</sign>
<body>蜗牛关爱国庆出游综合交通意外险</body>
<openid>oj6Lq0AidixgSspAt-JK5mbr_AF4</openid>
<appid>wxfaac00087a2xxxxx</appid>
<mch_id>151886xxxx</mch_id>
<nonce_str>OKxgFz0DOTnHwktBY9zKUj7MOCfCsx2W</nonce_str>
<out_trade_no>NOTN1699376503919419392</out_trade_no>
<signType>MD5</signType>
<fee_type>CNY</fee_type>
<total_fee>1</total_fee>
<time_start>20230906185826</time_start>
<time_expire>20230906190324</time_expire>
<notify_url>https://gateway.insnail.com/neo-payment-system/open-api/callback/wx/payment</notify_url>
<trade_type>JSAPI</trade_type>
<limit_pay>no_credit</limit_pay>
</xml>
删掉 <?xml version='1.0' encoding='UTF-8'?>,参数“signType”应为“sign_type”,