完结智慧零售订单
用户结束服务,商户根据实际情况调用【完结智慧零售订单】接口(如最终消费金额为0,则可以在【完结智慧零售订单】时传递取消订单的标识参数来达成),微信根据【完结智慧零售订单】接口中传递的扣款金额完成扣款;前置条件:用户确认订单成功后。 官方文档
js
wxpay.v3.payscore.smartretailOrders._out_order_no_.complete.post({
appid,
service_id,
finish_type,
cancel_reason,
real_service_start_time,
real_service_end_time,
real_service_end_location,
fees,
discounts,
total_amount,
finish_ticket,
profit_sharing,
})
.then(
({
data: {
appid,
mchid,
out_order_no,
service_id,
order_id,
},
}) => ({
appid,
mchid,
out_order_no,
service_id,
order_id,
})
)