微信支付:默认使用公钥模式,全部v3接口添加Wechatpay-Serial请求头#3976
微信支付:默认使用公钥模式,全部v3接口添加Wechatpay-Serial请求头#3976buaazyl wants to merge 2 commits intobinarywang:developfrom
Conversation
buaazyl
commented
May 4, 2026
- 默认使用公钥模式
- 全部v3接口添加Wechatpay-Serial请求头
- 调整apiV3秘钥命名
- 更新了readme中v2、v3新版文档地址
1.调整apiV3秘钥命名 2.更新了readme中v2、v3新版文档地址
🤖 Augment PR SummarySummary: This PR updates WxJava WeChat Pay (v3) defaults and configuration naming to better align with the newer public-key flow and request header requirements. Changes:
Technical Notes: Spring Boot relaxed binding will now expect 🤖 Was this summary useful? React with 👍 or 👎 |
| * apiV3秘钥 | ||
| */ | ||
| private String apiv3Key; | ||
| private String apiV3Key; |
There was a problem hiding this comment.
Renaming apiv3Key to apiV3Key is a breaking change for configuration binding: existing configs using wx.pay.apiv3-key will no longer populate this field and can fail at runtime with a missing API v3 key. If upgrades need to be smoother, consider whether a compatibility path (accepting both names) is required.
Severity: high
Other Locations
spring-boot-starters/wx-java-pay-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPaySingleProperties.java:61
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
There was a problem hiding this comment.
starter配置和本体使用的配置项命名应该保持一致