Skip to content

高速场景商户扣款

ETC高速场景订单扣款下单,注意:扣款结果同步返回,不会有异步回调,当返回结果不明确或为“USERPAYING”时,商户系统可通过订单查询接口核实订单状态。 官方文档

js
wxpay
.
v3
.
vehicle
.
etc
.
transactions
.
highway
.
post
({
out_trade_no
,
sub_mchid
,
appid
,
sub_appid
,
contract_id
,
description
,
attach
,
goods_tag
,
highway_info
,
amount
,
device_info
,
}) .
then
(
({
data
: {
mchid
,
sub_mchid
,
appid
,
sub_appid
,
out_trade_no
,
transaction_id
,
attach
,
trade_type
,
bank_type
,
success_time
,
trade_state
,
trade_state_desc
,
payer
,
amount
,
device_info
,
promotion_detail
,
}, }) => ({
mchid
,
sub_mchid
,
appid
,
sub_appid
,
out_trade_no
,
transaction_id
,
attach
,
trade_type
,
bank_type
,
success_time
,
trade_state
,
trade_state_desc
,
payer
,
amount
,
device_info
,
promotion_detail
,
}) )

Released under the MIT License. (SITEMAP)