创建用户的签约计划详情对应的服务订单(合作伙伴模式)
根据用户签约的计划和对应要服务的计划详情序号,创建服务订单。 官方文档
js
wxpay.v3.payscore.signPlan.partner.serviceorder.post({
service_id,
sign_plan_id,
plan_detail_no,
appid,
sub_mchid,
sub_appid,
openid,
sub_openid,
notify_url,
service_introduction,
time_range,
location,
attach,
out_trade_no,
})
.then(
({
data: {
out_order_no,
service_id,
appid,
mchid,
sub_appid,
sub_mchid,
service_introduction,
state,
state_description,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
attach,
notify_url,
order_id,
},
}) => ({
out_order_no,
service_id,
appid,
mchid,
sub_appid,
sub_mchid,
service_introduction,
state,
state_description,
post_payments,
post_discounts,
risk_fund,
time_range,
location,
attach,
notify_url,
order_id,
})
)