预约扣费
商户在进行委托代扣费前,需要提前在微信支付系统中预约扣费,预约成功后方可在约定时间内扣费。 官方文档
js
wxpay.v3.papay.pay.schedules.contractId._contract_id_.schedule.post({
appid,
schedule_amount,
}, { contract_id })
.then(
({
data: {
schedule_state,
deduct_start_date,
deduct_end_date,
scheduled_amount,
deduct_amount,
deduct_date,
},
}) => ({
schedule_state,
deduct_start_date,
deduct_end_date,
scheduled_amount,
deduct_amount,
deduct_date,
})
)