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

文档回调通知代码错误 #261

Open
edxspark opened this issue Mar 22, 2024 · 1 comment
Open

文档回调通知代码错误 #261

edxspark opened this issue Mar 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@edxspark
Copy link

错误描述

文档回调代码NotificationParser对象
// 初始化 NotificationParser
NotificationParser parser = new NotificationParser(config);

重现bug的步骤

文档未填写

预期行为

修正文档

导致错误的代码片段

No response

操作系统

macOS

Java 版本

Java 17

wechatpay-java 版本

v0.2.12

其他信息

No response

@edxspark edxspark added the bug Something isn't working label Mar 22, 2024
@edxspark
Copy link
Author

// 问题排查,同一个RSAAutoCertificateConfig.Builder() 返回不同对象造成混淆
Config config =
    new RSAAutoCertificateConfig.Builder()
        .merchantId(merchantId)
        .privateKeyFromPath(privateKeyPath)
        .merchantSerialNumber(merchantSerialNumber)
        .apiV3Key(apiV3Key)
        .build();

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

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

1 participant