收藏
回答

使用H5的签约并支付提示请求中含有未在API文档中定义的参数

调用https://api.mch.weixin.qq.com/pay/contractorder接口实现H5的签约并支付,请求参数<xml><nonce_str>fabe940c5a655d7b8babb678c5831152</nonce_str><time_expire>20251112005005</time_expire><time_start>20251112003005</time_start><sign>78D559A01B0D22F5D2F9B8BE0C68332B</sign><mch_id>********</mch_id><body>会员月卡</body><notify_url>https://sandbox.yulek.net</notify_url><spbill_create_ip>157.162.122.200</spbill_create_ip><contract_display_account>kws0123</contract_display_account><request_serial>2025111210000002</request_serial><contract_appid>wxa1b2c3d5e6</contract_appid><device_info>WEB</device_info><out_trade_no>2025111210000001</out_trade_no><contract_code>407e2ca06729f8ffb13a936d44068516</contract_code><appid>wxa1b2c3d5e6</appid><total_fee>2</total_fee><trade_type>MWEB</trade_type><detail>续费月卡</detail><plan_id>123456</plan_id><contract_notify_url>https://sandbox.yulek.net</contract_notify_url><contract_mchid>********</contract_mchid><scene_info>{&quot;h5_info&quot;:{&quot;type&quot;:&quot;Wap&quot;,&quot;wap_name&quot;:&quot;ksGamer&quot;,&quot;wap_url&quot;:&quot;https://adb.ksgame.com&quot;}}</scene_info></xml>,响应如下:<xml><err_code><![CDATA[PARAM_ERROR]]></err_code>

<err_code_des><![CDATA[请求中含有未在API文档中定义的参数]]></err_code_des>

<nonce_str><![CDATA[Iw4squNs4j2YBMOm]]></nonce_str>

<result_code><![CDATA[FAIL]]></result_code>

<return_code><![CDATA[SUCCESS]]></return_code>

<return_msg><![CDATA[OK]]></return_msg>

<sign><![CDATA[81A74A39857D7602BBFE23B8D37D313A]]></sign>

</xml>。是什么原因呢?帮忙看一下。

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

3 个回答

  • 北望沣渭
    北望沣渭
    11-12

    支付中签约接口文档,没有定义 scene_info ,把这个去了试试

    11-12
    有用 1
    回复 1
    • Details
      Details
      11-19
      好的,感谢
      11-19
      回复
  • Memory (私信不回复)
    Memory (私信不回复)
    11-12

    自己比对文档看自己多传了什么

    11-12
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    11-12
    有用
登录 后发表内容