小程序场景预约扣费类型签约的预签约
商户可调用本接口预先指定签约信息,生成预签约会话及对应的预签约ID,再携带预签约ID(pre_entrustweb_id)参数,通过小程序跳转参数调用navigateToMiniProgram跳转至微信支付的页面。 官方文档
js
wxpay.v3.papay.scheduledDeductSign.contracts.preEntrustSign.miniProgram.post({
appid,
openid,
plan_id,
out_contract_code,
contract_display_account,
contract_notify_url,
out_user_code,
deduct_schedule,
})
.then(
({
data: {
pre_entrustweb_id,
redirect_appid,
redirect_path,
},
}) => ({
pre_entrustweb_id,
redirect_appid,
redirect_path,
})
)