申请扣款
委托代扣可应用于定期扣款或需事后扣款以期提高效率的场景。例如高速,停车场等通过用户授权给商户,进行委托扣款的场景。注:扣费请求首先按签约协议中记录的优先支付方式扣费,否则从可用扣款方式中依次选择扣款。扣款接口请求成功,返回success仅代表扣款申请受理成功,不代表扣款成功。扣款是否成功以支付通知的结果为准。 官方文档
js
wxpay.v2.vehicle.pay.payapply.post({
appid,
mch_id,
nonce_str,
sign_type,
body,
detail,
attach,
out_trade_no,
total_fee,
fee_type,
spbill_create_ip,
goods_tag,
notify_url,
trade_type,
version,
trade_scene,
openid,
profit_sharing,
scene_info,
start_time,
end_time,
charging_time,
plate_number,
car_type,
parking_name,
deduct_mode,
support_deduct_mode,
space_number,
gas_station,
gas_label_name,
gas_type,
gas_standard,
gas_amount,
gas_gun_no,
entrance_name,
exit_name,
carrying_capacity,
carrying_range,
channel_type,
})
.then(
({
data: {
return_code,
return_msg,
appid,
mch_id,
device_info,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
},
}) => ({
return_code,
return_msg,
appid,
mch_id,
device_info,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
})
)