收藏
回答

请求中含有未在API文档中定义的参数

<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提示错误,确认了文档参数无误,请老师们看看

回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    2023-02-24

    标准请求应该是这样

    <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>
    
    2023-02-24
    有用 1
    回复 4
    • 将臣
      将臣
      2023-02-24
      但是我另外一个项目也是用的同一套程序,也是同样的请求方式,就可以正常运行,这种一般是什么原因呢
      2023-02-24
      回复
    • Memory
      Memory
      2023-02-24回复将臣
      系统开启了安全校验,会逐步生效,目前没有全量拦截
      2023-02-24
      1
      回复
    • 将臣
      将臣
      2023-02-24回复Memory
      好的,谢谢
      2023-02-24
      回复
    • 阔乐
      阔乐
      2023-08-24回复Memory
      感谢
      2023-08-24
      回复
登录 后发表内容