创单结单合并
该接口适用于无需微信支付分做订单风控判断的业务场景,在服务完成后,通过该接口对用户进行免密代扣。 官方文档
js
wxpay.v3.payscore.serviceorder.directComplete.post({
out_order_no,
appid,
service_id,
post_payments,
post_discounts,
time_range,
location,
service_introduction,
attach,
notify_url,
openid,
total_amount,
profit_sharing,
goods_tag,
}, { out_order_no })
.then(
({
data: {
out_order_no,
appid,
service_id,
post_payments,
post_discounts,
time_range,
location,
service_introduction,
mchid,
order_id,
state,
state_description,
attach,
notify_url,
total_amount,
},
}) => ({
out_order_no,
appid,
service_id,
post_payments,
post_discounts,
time_range,
location,
service_introduction,
mchid,
order_id,
state,
state_description,
attach,
notify_url,
total_amount,
})
)