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