Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动更新微信支付平台证书的问题 #325

Open
Rainron opened this issue Dec 12, 2024 · 2 comments
Open

自动更新微信支付平台证书的问题 #325

Rainron opened this issue Dec 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Rainron
Copy link

Rainron commented Dec 12, 2024

错误描述

Config config =
new RSAAutoCertificateConfig.Builder()
.merchantId(merchantId)
.privateKeyFromPath(privateKeyPath)
.merchantSerialNumber(merchantSerialNumber)
.apiV3Key(apiV3Key)
.build();

初始化提示---无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。

重现bug的步骤

根据README.md文档步骤操作

预期行为

希望有一个完整的引用测试demo

导致错误的代码片段

No response

操作系统

win10

Java 版本

17

wechatpay-java 版本

0.2.15

其他信息

No response

@Rainron Rainron added the bug Something isn't working label Dec 12, 2024
@wswdavid
Copy link

微信支付公钥说明 https://pay.weixin.qq.com/doc/v3/merchant/4012153196

SDK初始化参考公钥部分的说明
image

@Rainron
Copy link
Author

Rainron commented Dec 17, 2024

解决了吗 求分享

按照上面答复的使用平台公钥进行初始化,我不明白的是证书模式为什么报错又不提示,文档又不更新?我也是第一次对接微信支付,相比之下支付宝对接更好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants