同一个商户号下面有两个appid(A, B),A在支付签约接口返回正常,B在支付签约接口返回错误,如下所示(已隐藏掉appid等参数)。B正常请求预支付没问题。B是在该商户号已申请委托代扣之后才绑定到该商户号的。代扣模板id也是在B加入该商户号之前申请的。
请求参数:
< xml >
< appid > <![CDATA[****]]> </ appid >
< body > <![CDATA[连续包月]]> </ body >
< contract_appid > <![CDATA[****]]> </ contract_appid >
< contract_code > <![CDATA[1233990201904111053020b7c6634ac9]]> </ contract_code >
< contract_display_account > <![CDATA[******]]> </ contract_display_account >
< contract_mchid >*****</ contract_mchid >
< contract_notify_url > <![CDATA[https://******/wxpay/contract/sign]]> </ contract_notify_url >
< mch_id >*****</ mch_id >
< nonce_str > <![CDATA[q6yr3cvgd3kdsitoahrjkgc5ek2ftsme]]> </ nonce_str >
< notify_url > <![CDATA[https://******/wxpay/notify]]> </ notify_url >
< out_trade_no > <![CDATA[1000700201904111053020bd16634ac4]]> </ out_trade_no >
< plan_id >123399</ plan_id >
< request_serial >91</ request_serial >
< sign_type > <![CDATA[MD5]]> </ sign_type >
< spbill_create_ip > <![CDATA[*****]]> </ spbill_create_ip >
< time_expire >20190411110302</ time_expire >
< time_start >20190411105302</ time_start >
< total_fee >12800</ total_fee >
< trade_type > <![CDATA[APP]]> </ trade_type >
< sign > <![CDATA[EB686C97FD7FBD012A29035B53D13070]]> </ sign >
</ xml >
|
|
|
返回结果:
{
"appid":"****",
"contract_err_code":"SYSTEMERROR",
"contract_err_code_des":"system error",
"contract_result_code":"FAIL",
"mch_id":"****",
"nonce_str":"5AXg58lcSA5sI3n2",
"prepay_id":"wx111053027459634030d9db92142*****",
"result_code":"SUCCESS",
"return_code":"SUCCESS",
"return_msg":"OK",
"sign":"FAC30FE821ACA1FF60EBF2FDF8ACA501",
"trade_type":"APP"
}
|
相似问题未解决
https://developers.weixin.qq.com/community/develop/doc/000c620a6dcd58af07683f2a952800?highLine=%25E7%25AD%25BE%25E7%25BA%25A6
https://developers.weixin.qq.com/community/develop/doc/0004c2ff4942c8aad2e78b21456400?highLine=%25E7%25AD%25BE%25E7%25BA%25A6