收藏
回答

微信支付财付通合单支付,多个子单如何拼写参数?

array(7) {
  ["combine_appid"]=>
  string(18) "wx948d4e11762e6bac"
  ["combine_mchid"]=>
  string(10) "1606143582"
  ["combine_out_trade_no"]=>
  string(23) "810688748219833539-mini"
  ["time_expire"]=>
  string(25) "2021-10-28T16:14:00+08:00"
  ["notify_url"]=>
  string(80) "https://mlsldshop.codechain.shop/cmobile/api/payment/xcx_jsapi_v3/notify_url.php"
  ["sub_orders"]=>
  array(2) {
    [0]=>
    array(7) {
      ["mchid"]=>
      string(10) "1606143582"
      ["attach"]=>
      string(23) "product_buy-wxpay_jsapi"
      ["out_trade_no"]=>
      string(23) "810688748219833539-mini"
      ["sub_mchid"]=>
      string(10) "1606794343"
      ["description"]=>
      string(31) "实物订单_810688748219833539"
      ["amount"]=>
      array(2) {
        ["total_amount"]=>
        int(1)
        ["currency"]=>
        string(3) "CNY"
      }
      ["settle_info"]=>
      array(2) {
        ["profit_sharing"]=>
        bool(true)
        ["subsidy_amount"]=>
        int(0)
      }
    }
    [1]=>
    array(7) {
      ["mchid"]=>
      string(10) "1606143582"
      ["attach"]=>
      string(23) "product_buy-wxpay_jsapi"
      ["out_trade_no"]=>
      string(23) "810688748219833539-mini"
      ["sub_mchid"]=>
      string(10) "1606995864"
      ["description"]=>
      string(31) "实物订单_810688748219833539"
      ["amount"]=>
      array(2) {
        ["total_amount"]=>
        int(1)
        ["currency"]=>
        string(3) "CNY"
      }
      ["settle_info"]=>
      array(2) {
        ["profit_sharing"]=>
        bool(true)
        ["subsidy_amount"]=>
        int(0)
      }
    }
  }
  ["combine_payer_info"]=>
  array(1) {
    ["openid"]=>
    string(28) "o4baQ0njOxeXDO4yZ0fPXH3lgkuc"
  }
}
w我是这样拼的,报错Client error: `POST https://api.mch.weixin.qq.com/v3/combine-transactions/jsapi` resulted in a `400 Bad Request` response
回答关注问题邀请回答
收藏
登录 后发表内容