创建先用后付订单
用户在购买带有“先用后付”服务标识的商品,有机会享受“0元下单,确认收货再付款”的专享服务,加入先用后付服务后,可先0元下单在商品确认收货之前消费者可以选择付款/退货。 官方文档
js
wxpay.v3.payscore.servicepayondeliveryorder.post({
out_order_no,
appid,
service_id,
service_introduction,
post_payments,
post_discounts,
time_range,
location,
risk_fund,
attach,
notify_url,
openid,
need_user_confirm,
mchid,
shopping_info,
})
.then(
({
data: {
appid,
mchid,
out_order_no,
service_id,
service_introduction,
state,
state_description,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
attach,
notify_url,
order_id,
package: packageStr,
shopping_info,
},
}) => ({
appid,
mchid,
out_order_no,
service_id,
service_introduction,
state,
state_description,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
attach,
notify_url,
order_id,
package: packageStr,
shopping_info,
})
)