完结支付分订单
完结微信支付分订单。用户使用服务完成后,商户可通过此接口完结订单。**前置条件:**服务订单状态为“进行中”且订单状态说明需为 [USER_CONFIRM:用户确认] 官方文档 官方文档
js
wxpay.v3.payscore.serviceorder._out_order_no_.complete.post({
appid,
service_id,
post_payments,
post_discounts,
total_amount,
time_range,
location,
profit_sharing,
goods_tag,
}, { out_order_no })
.then(
({
data: {
appid,
mchid,
out_order_no,
service_id,
service_introduction,
state,
state_description,
total_amount,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
order_id,
need_collection,
},
}) => ({
appid,
mchid,
out_order_no,
service_id,
service_introduction,
state,
state_description,
total_amount,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
order_id,
need_collection,
})
)