https://api.mch.weixin.qq.com/pay/unifiedorder
请求参数
<xml>
<attach/>
<body>费用支付</body>
<detail/>
<appid>xxxx</appid>
<mch_id>xxx</mch_id>
<nonce_str>JGAGLZCX90U6</nonce_str>
<sign>xxx</sign>
<sign_type/>
<return_code/>
<return_msg/>
<result_code/>
<err_code/>
<err_code_des/>
<time_start>20221129104928</time_start>
<time_end/>
<time_expire>20221129111933</time_expire>
<device_info/>
<openid>xxxx</openid>
<trade_type>JSAPI</trade_type>
<total_fee>5800</total_fee>
<fee_type/>
<out_trade_no>202211291049286831aYWzc</out_trade_no>
<sub_mch_id/>
<sub_appid/>
<sub_openid/>
<spbill_create_ip>xxxx</spbill_create_ip>
<goods_tag/>
<limit_pay/>
<product_id/>
<notify_url>http</notify_url>
</xml>
今天突然出现了这个问题,不能支付
<xml>
<appid>xxxxx</appid>
<mch_id>xxxxx</mch_id>
<nonce_str>Bdw2lLbUBfdVwMDQ</nonce_str>
<sign>5A10E154D77BDEDDB7C74B055D8715BB</sign>
<body>滇钰冰泉-订水商品</body>
<notify_url>https://yds.qiesongshui.com/water-api/pay/weixin/wxGzhNotify</notify_url>
<openid>oCDSd55UEGNARY3sEJIUZORW4H-A</openid>
<out_trade_no>SO2022112900029</out_trade_no>
<spbill_create_ip>27.18.225.210</spbill_create_ip>
<total_fee>3600</total_fee>
<trade_type>JSAPI</trade_type>
<auth_code></auth_code>
</xml>
【微信统一支付】发起支付, returnCode != SUCCESS, returnMsg = 请求中含有未在API文档中定义的参数
java.lang.RuntimeException: 【微信统一支付】发起支付, returnCode != SUCCESS, returnMsg = 请求中含有未在API文档中定义的参数
我也碰到这个问题了,就是把“ version='1.0' encoding='utf-8' ”删掉之后就好了
刚问了技术客服,说把version和encoding去掉,试了一下已经可以了
贴完整请求参数,你贴个返回参数干嘛?
{"prepay_id":null,"mweb_url":null,"code_url":null,"IsSuccess":false,"errcode":"FAIL","errmsg":"请求中含有未在API文档中定义的参数"}
每一个参数都核对过,和文档里要求的一样,还是提示请求中含有未在API文档中定义的参数,但"return_code"=>"SUCCESS", "return_msg"=>"OK"。
遇到相同问题,别的客户正常,就有最近开通的商户返回:请求中含有未在API文档中定义的参数,这个问题有解决了吗?
解决了,请求里多了orderTime参数;
今天也遇到这个问题,有解决了吗,之前都好好的,代码也没改过,今天突然就不行了
["appid=wxxxxxa7053","body=面膜B2C","mch_id=1635191991","nonce_str=O1BQQIXS9IPK57A6867G","notify_url=xxx ","openid=ooDKy5xxxxhEg05kyH990","out_trade_no=PAxxx935676004","spbill_create_ip=::1","total_fee=25460","trade_type=JSAPI"]
{"prepay_id":null,"mweb_url":null,"code_url":null,"IsSuccess":false,"errcode":"FAIL","errmsg":"请求中含有未在API文档中定义的参数"}
查了半天参数都没问题,以前开通的商户可以正常支付,现在开通的就报这个错误
<xml>
<appid>wx2421b1c4370ec43b</appid>
<attach>支付测试</attach>
<body>JSAPI支付测试</body>
<mch_id>10000100</mch_id>
<detail><![CDATA[{ "goods_detail":[ { "goods_id":"iphone6s_16G", "wxpay_goods_id":"1001", "goods_name":"iPhone6s 16G", "quantity":1, "price":528800, "goods_category":"123456", "body":"苹果手机" }, { "goods_id":"iphone6s_32G", "wxpay_goods_id":"1002", "goods_name":"iPhone6s 32G", "quantity":1, "price":608800, "goods_category":"123789", "body":"苹果手机" } ] }]]></detail>
<nonce_str>1add1a30ac87aa2db72f57a2375d8fec</nonce_str>
<notify_url>https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php</notify_url>
<openid>oUpF8uMuAJO_M2pxb1Q9zNjWeS6o</openid>
<out_trade_no>1415659990</out_trade_no>
<spbill_create_ip>14.23.150.211</spbill_create_ip>
<total_fee>1</total_fee>
<trade_type>JSAPI</trade_type>
<sign>0CB01533B8C1EF103065174F50BCA001</sign>
</xml>