Skip to content

同步非临停扩展支付

对商户提供非临停扩展支付数据同步接口(仅落库,不参与临停停车单)。适用对象与普通服务商一致,支持普通商户、普通服务商、平台商户(电商模式),与既有停车提醒 API 相同。

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_trade_nostring商户支付订单号
fee_itemsobject[]费用明细列表
fee_typestring费用类型
EXT_PARKING_PAYMENT_FEE_TYPE_UNKNOWN | EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY | EXT_PARKING_PAYMENT_FEE_TYPE_QUARTERLY | EXT_PARKING_PAYMENT_FEE_TYPE_MEMBER 枚举值之一
amountinteger金额(单位为分)
pay_timeinteger支付时间(秒级时间戳)
wx_parking_lot_idstring微信停车场ID
wx_trade_nostring微信支付订单号
php
$instance->v3->parking->reminders->extPayment->postAsync([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/parking/reminders/ext-payment')->postAsync([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/parking/reminders/ext-payment']->postAsync([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->parking->reminders->extPayment->post([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/parking/reminders/ext-payment')->post([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/parking/reminders/ext-payment']->post([
  'json' => [
    'out_trade_no'      => 'TRADE202407041530001',
    'fee_items'         => [[
      'fee_type' => 'EXT_PARKING_PAYMENT_FEE_TYPE_MONTHLY',
      'amount'   => 5000,
    ],],
    'pay_time'          => 1719128975,
    'wx_parking_lot_id' => '21232735744117624001123604298240',
    'wx_trade_no'       => '4200001999202407041234567890',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory