创建租借订单
创建订单后如果超过一小时用户没有进行确认订单操作,订单将失效,无法被用户确认。 官方文档
js
wxpay.v2.wxv.createrentbill.post({
version,
appid,
mch_id,
nonce_str,
sign_type,
out_order_no,
service_id,
goods_name,
start_time,
end_time,
service_location,
deposit_amount,
rent_unit,
rent_unit_fee,
rent_fee_desc,
attach,
cert_serial_no,
openid,
name,
phone,
userid,
address,
}, { security })
.then(
({
data: {
return_code,
return_msg,
sign,
nonce_str,
result_code,
err_code,
err_code_des,
appid,
mch_id,
out_order_no,
service_id,
order_id,
miniprogram_appid,
miniprogram_path,
miniprogram_username,
package: packageStr,
},
}) => ({
return_code,
return_msg,
sign,
nonce_str,
result_code,
err_code,
err_code_des,
appid,
mch_id,
out_order_no,
service_id,
order_id,
miniprogram_appid,
miniprogram_path,
miniprogram_username,
package: packageStr,
})
)