Skip to content

保险商户App预签约

商户可调用本接口预先指定签约及交易信息(交易信息可选填),生成预签约会话及对应的预签约ID,再携带预签约ID(pre_entrustweb_id)参数,通过微信SDK拉起微信支付客户端的签约页面。 官方文档

js
wxpay
.
v3
.
papay
.
insuranceSign
.
contracts
.
preEntrustSign
.
app
.
post
({
appid
,
openid
,
plan_id
,
out_contract_code
,
insured_display_name
,
contract_notify_url
,
policy_start_date
,
policy_end_date
,
policy_periods
,
amount
,
out_trade_no
,
description
,
transaction_notify_url
,
out_user_code
,
goods_tag
,
attach
,
can_auto_insure
,
can_auto_reinsure
,
real_identity
,
}, {
headers
, })
.
then
(
({
data
: {
pre_entrustweb_id
,
}, }) => ({
pre_entrustweb_id
,
}) )

Released under the MIT License. (SITEMAP)