You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: com.github.binarywang.wxpay.exception.WxPayException: v3请求构造异常!
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:303)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.createApiV3HttpClient(WxPayServiceApacheHttpImpl.java:309)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.requestV3(WxPayServiceApacheHttpImpl.java:215)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.getV3(WxPayServiceApacheHttpImpl.java:246)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.queryOrderV3(BaseWxPayServiceImpl.java:505)
at com.mywl.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doGetOrderV3(AbstractWxPayClient.java:228)
at com.mywl.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doGetOrder(AbstractWxPayClient.java:195)
at com.mywl.framework.pay.core.client.impl.AbstractPayClient.getOrder(AbstractPayClient.java:122)
... 160 common frames omitted
Caused by: me.chanjar.weixin.common.error.WxRuntimeException: 证书不存在
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.autoUpdateCert(AutoUpdateCertificatesVerifier.java:170)
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.(AutoUpdateCertificatesVerifier.java:111)
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:281)
... 167 common frames omitted
Activity
lin-youming commentedon Oct 30, 2024
补一下 异常信息
Caused by: com.github.binarywang.wxpay.exception.WxPayException: v3请求构造异常!
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:303)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.createApiV3HttpClient(WxPayServiceApacheHttpImpl.java:309)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.requestV3(WxPayServiceApacheHttpImpl.java:215)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.getV3(WxPayServiceApacheHttpImpl.java:246)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.queryOrderV3(BaseWxPayServiceImpl.java:505)
at com.mywl.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doGetOrderV3(AbstractWxPayClient.java:228)
at com.mywl.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doGetOrder(AbstractWxPayClient.java:195)
at com.mywl.framework.pay.core.client.impl.AbstractPayClient.getOrder(AbstractPayClient.java:122)
... 160 common frames omitted
Caused by: me.chanjar.weixin.common.error.WxRuntimeException: 证书不存在
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.autoUpdateCert(AutoUpdateCertificatesVerifier.java:170)
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.(AutoUpdateCertificatesVerifier.java:111)
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:281)
... 167 common frames omitted
cherl commentedon Oct 30, 2024
+1
tekfig commentedon Oct 30, 2024
same issue
fFanloat commentedon Oct 31, 2024
+1
2fx0one commentedon Oct 31, 2024
+1
gaollard commentedon Oct 31, 2024
+1
Derick-L-HQ commentedon Nov 1, 2024
+1
YYQHoro commentedon Nov 4, 2024
本项目是否已经支持了微信支付公钥?我看源码好像没有写这方面的东西,只有加载平台证书。
实在不行我们改用微信官方SDK临时规避一下wechatpay-java
small-redguy commentedon Nov 5, 2024
测试了下,通过修改重写WxPayConfig类可暂时解决:https://blog.csdn.net/qq_37391200/article/details/143508109
Derick-L-HQ commentedon Nov 5, 2024
官方给的publicKeyId是带有前缀的吧,看你因为类型转换问题这部分替换掉了,如果没影响是没问题,
binarywang commentedon Nov 5, 2024
欢迎楼上的朋友帮忙提供最新修复代码
🆕 binarywang#3402 微信支付相关:新商户不再支持平台证书模式 只支持公钥模式
HaalandCR commentedon Nov 6, 2024
@PiscesNick 大佬不提下pr嘛
Derick-L-HQ commentedon Nov 7, 2024
还没测试,所以,临时应急可以先用上面那个兄弟的方案, 实现verifier 自定义X509Certificate 改写getPublicKey的方法和getSerialNumber 看他文档是测试了,这个是改动最小的 涉及三个原有的类,新增一个自定义
zhanyan-Ader1y commentedon Nov 26, 2024
请问有对应的fork了吗, 如果还没开始改的话我可以帮忙修复这个问题
binarywang commentedon Nov 26, 2024
你开搞吧,大家都等着呢
zhanyan-Ader1y commentedon Nov 29, 2024
ok
zhanyan-Ader1y commentedon Nov 29, 2024
比较急的朋友可以通过类加载的特性在本地新建一个相同名字的WxPayConfig和PemUtils类, 并添加剩下的原本没有的类即可.
可以在这个提交中找到所有内容
new: #3402 【微信支付】支持配置微信支付公钥
🆕 #3402 【微信支付】支持配置微信支付公钥