Skip to content

微信支付:新申请的微信支付商户号出现「证书不存在」的报错,因为新申请的商户号需要使用公钥模式,能兼容下公钥模式吗 #428

@Axinyu

Description

@Axinyu

1. 问题说明

新申请的微信支付商户号出现「证书不存在」的报错,因为新申请的商户号需要使用公钥模式,自动验签等不再支持平台证书;

2. 诉求:微信支付能兼容下公钥模式吗

3. 关于新商户调用接口验签方式变更通知

https://developers.weixin.qq.com/community/pay/doc/0002c6a7cf438818df52145b863c01

4. 相关代码截图

image
image

5. 报错信息

client.AutoVerifySign()方法自动验签会提示:

{
"code":"RESOURCE_NOT_EXISTS",
"message":"无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/docs/merchant/products/platform-certificate/wxp-pub-key-guide.html"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions