通过协议号查询签约
商户通过签约协议号可查询签约信息,如果对应签约状态为“已签约”,返回签约信息,如果对应签约状态为“已解约”,返回明确错误码 官方文档 官方文档
js
wxpay.v3.eduPapay.contracts.id._contract_id_.get({
contract_id,
params,
})
.then(
({
data: {
sp_mchid,
appid,
sub_mchid,
sub_appid,
openid,
sub_openid,
plan_id,
contract_information,
},
}) => ({
sp_mchid,
appid,
sub_mchid,
sub_appid,
openid,
sub_openid,
plan_id,
contract_information,
})
)