Skip to content

Commit

Permalink
doc: 将「使用微信支付公钥验签」作为默认的示例 (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmetZC authored Feb 19, 2025
1 parent a7dbccc commit c3ddd87
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ public class QuickStart {
public static String apiV3Key = "...";

public static void main(String[] args) {
// 使用自动更新平台证书的RSA配置
// 一个商户号只能初始化一个配置,否则会因为重复的下载任务报错
// 使用微信支付公钥的RSA配置
Config config =
new RSAAutoCertificateConfig.Builder()
new RSAPublicKeyConfig.Builder()
.merchantId(merchantId)
.privateKeyFromPath(privateKeyPath)
.publicKeyFromPath(publicKeyPath)
.publicKeyId(publicKeyId)
.merchantSerialNumber(merchantSerialNumber)
.apiV3Key(apiV3Key)
.build();
Expand Down

0 comments on commit c3ddd87

Please sign in to comment.