微信服务商 “合单下单-JS支付API接口”调用报“受理机构必须传入sub_mch_id”? 不知道什么原因
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_2.shtml
文档也没有写要传sub_mch_id
都是按照文档要求的数据传的还报错
请查看请求的的数据。都是按要求上传了数据
{"combine_appid":"wxb2c1cfbb2737e816","combine_mchid":"1583099811","combine_out_trade_no":"P2020042217180001","sub_orders":[{"mchid":"1587573471","attach":"\u6df1\u5733\u5206\u5e97","amount":{"total_amount":100,"currency":"CNY"},"out_trade_no":"201521587972994","sub_mchid":"1587573471","detail":"\u5305\u95f4\u9884\u8ba2","profit_sharing":true,"description":"\u5305\u95f4\u9884\u8ba2\u5b9a\u91d1","settle_info":{"profit_sharing":true,"subsidy_amount":100}}],"combine_payer_info":{"openid":"oRde45S81FXNGHXDkO_R_FbdzFaw"},"time_start":"2020-04-27T13:29:35+08:00","notify_url":"https:\/\/qcmdh.bh1869.com\/index.php","limit_pay":["no_debit"]}
调用接口后返回
有遇到的同学请求协助一下,xeixie
hi,你这边传入的openid是mchid关联的appid的openid吗?还是combine_appid对应的openid呢
改成“sub_mch_id“,提示报错“请求中含有未在API文档中定义的参数”,
直接传“sub_mchid”,则提示“受理机构必须传入sub_mch_id”