Skip to content

Feature/tenpayv3 兼容平台证书和微信支付公钥 #3153

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

Open
wants to merge 6 commits into
base: Developer
Choose a base branch
from

Conversation

mojinxun
Copy link
Contributor

@mojinxun mojinxun commented Jul 2, 2025

兼容微信支付证书的三种情况:

  1. 纯平台证书
  2. 微信支付公钥+平台证书
  3. 纯微信支付公钥

增加了配置:TenPayV3_PlatformCertDisable 支持是否禁用平台证书

优化配置文件的注释

@JeffreySu
Copy link
Owner

JeffreySu commented Jul 2, 2025

@mojinxun 此外,由于目前已经有关于 PublicKey 的配置,如果要按照这三种情况处理,是不是其实可以设置一个枚举,例如:
PlantformCertOnly,
PublicKeyOnly,
Together

@mojinxun
Copy link
Contributor Author

mojinxun commented Jul 2, 2025

考虑过这种方式,但增加枚举项会增加理解的复杂度,用true/false更加直白一点,因为后续平台证书将退出舞台,后续我们直接移除这个配置即可。可以再一起讨论下

@JeffreySu
Copy link
Owner

考虑过这种方式,但增加枚举项会增加理解的复杂度,用true/false更加直白一点,因为后续平台证书将退出舞台,后续我们直接移除这个配置即可。可以再一起讨论下

是的,这个过程可能要持续至少 5 年的时间(第一批过期需要等 5 年),然后到时候的申请如果不再强制,过渡周期可能会在 10 年以上。如果是 true 和 false,在命名上面是不是可以统一下,比如都用 Enable / Use / Disable 等等。当然最清晰的方法还是用同一个参数来控制,并且给一个默认值,用于兼容没有升级 appsettings.json 文件的老系统(比如叫 PlantformCertOnly)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants