<root type="object">
<appid type="string">wxecc60cb1d48e5529</appid>
<attach type="string">测试</attach>
<body type="string">费用缴纳</body>
<mch_id type="string">1484345072</mch_id>
<nonce_str type="string">248fc2ce54d2477d8283435907c85dd3</nonce_str>
<notify_url type="string">http://wechat.jnygny.net/Wechat/Wx/Pay/GetWeChatInfo</notify_url>
<openid type="string">oyjeL5m3-W3CzY8xv9YvVJE8pDJc</openid>
<out_trade_no type="string">52061da9dbd74086881eb121e927c152</out_trade_no>
<spbill_create_ip type="string">39.144.219.28</spbill_create_ip>
<total_fee type="number">20000</total_fee>
<trade_type type="string">JSAPI</trade_type>
<sign type="string">14C51DF03B4AF123F9D276F72A4907D4</sign>
</root>
调用旧版JsapiV2提示错误,确认了文档参数无误,请老师们看看
标准请求应该是这样
<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>
请求中含有未在API文档中定义的参数