wechatpay-apiv3 / wechatpay-go

微信支付 APIv3 的官方 Go Library
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/index.shtml
Apache License 2.0
1.03k stars 141 forks source link

普通商户调用prepay时返回缺少SubMchid #184

Closed xuanlingzi closed 1 year ago

xuanlingzi commented 1 year ago

普通商户 按照文档样例不加SubMchid参数,调用Prepay时报错 fieldSubMchidis required and must be specified in PrepayRequest image

普通商户没有子商户的AppId和SubMchid,尝试用SpMchid值传入SubMchid,调用Prepay时服务端返回 普通商户不允许传sub_mch_id image

普通商户是否应该自己组装request而不应该使用jsapi.PrepayRequest的结构来生成

xy-peng commented 1 year ago

普通商户请用 services/payments 而不是服务商的 services/partnerpayments

a329279263 commented 6 months ago

正如楼上所说