收藏
回答

jsapi统一下单报错:[400][PARAM_ERROR]$key0$参数格式错误

文档地址:https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/fusion_wallet_ch/OfficialPayMent/chapter5_4.shtml

请求参数:{"sp_appid":"wx944d223ba7xxxxxx","sp_mchid":"1605752xxx","sub_appid":"wx8502844958xxxxxx","sub_mchid":"1609778xxx","description":"交易标题","attach":"","notify_url":"xxxxxx","out_trade_no":"20220710023224000250","trade_type":"JSAPI","time_start":"2022-07-10T02:32:24+08:00","time_expire":"2022-07-10T02:37:24+08:00","merchant_category_code":"5812","payer":{"sub_openid":"ooo0a5TdyjTJZ1djE2uSb_xxxxxx"},"amount":{"total":200000,"currency":"CNY"},"scene_info":{"payer_client_ip":"127.0.0.1"},"detail":{"receipt_id":"XSCKD000036","goods_detail":[{"goods_id":"011-009-003201","goods_name":"交易商品1","quantity":1,"price":500},{"goods_id":"011-009-003201","goods_name":"交易商品2","quantity":1,"price":500}]}}

返回参数:{"code":"PARAM_ERROR","message":"$key0$参数格式错误"}

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

2 个回答

  • 海风
    海风
    2022-12-28

    问题有解决吗

    2022-12-28
    有用
    回复
  • Memory
    Memory
    2022-07-10

    2022-07-10
    有用
    回复 2
    • 浩浩
      浩浩
      发表于小程序端
      2022-07-10

      被扫支付也是这么写的,但是实际上能正常交易

      2022-07-10
      回复
    • 浩浩
      浩浩
      发表于小程序端
      2022-07-10

      实测,传HKD也是一样

      2022-07-10
      回复
登录 后发表内容