扣费受理
商户请求扣费受理接口,会完成订单受理。微信支付进行异步扣款,支付完成后,会将订单支付结果发送给商户。 官方文档 官方文档
js
wxpay.v3.vehicle.transactions.parking.post({
appid,
sub_appid,
sub_mchid,
description,
attach,
out_trade_no,
trade_scene,
goods_tag,
notify_url,
profit_sharing,
amount,
parking_info,
})
.then(
({
data: {
appid,
sub_appid,
sp_mchid,
sub_mchid,
description,
create_time,
out_trade_no,
transaction_id,
trade_state,
trade_state_description,
success_time,
bank_type,
user_repaid,
attach,
trade_scene,
parking_info,
payer,
amount,
promotion_detail,
},
}) => ({
appid,
sub_appid,
sp_mchid,
sub_mchid,
description,
create_time,
out_trade_no,
transaction_id,
trade_state,
trade_state_description,
success_time,
bank_type,
user_repaid,
attach,
trade_scene,
parking_info,
payer,
amount,
promotion_detail,
})
)
注意:
- 必须确认扣费受理接口的交易状态返回“ACCEPTED”才能放行车辆,若未接收到该状态而放行车辆离场,造成的资金损失由商户侧自行承担。