Skip to content

Commit

Permalink
Update method for setting Alipay certificates in client.go
Browse files Browse the repository at this point in the history
Modified the instructions for setting Alipay public key certificates in the comments of client.go file. Instead of using `client.SetAlipayRootCertSN()` and `client.SetAppCertSN()`, it's recommended to use `client.SetCertSnByContent()` or `client.SetCertSnByPath()`. This change was made to enhance the clarity of the process for setting up Alipay public key certificates.
  • Loading branch information
icpd committed Nov 15, 2023
1 parent 868337e commit 7c2f378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alipay/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Client struct {
}

// 初始化支付宝客户端
// 注意:如果使用支付宝公钥证书验签,请设置 支付宝根证书SN(client.SetAlipayRootCertSN())、应用公钥证书SN(client.SetAppCertSN())
// 注意:如果使用支付宝公钥证书验签,请使用 client.SetCertSnByContent() 或 client.SetCertSnByPath() 设置 应用公钥证书、支付宝公钥证书、支付宝根证书
// appid:应用ID
// privateKey:应用私钥,支持PKCS1和PKCS8
// isProd:是否是正式环境,沙箱环境请选择新版沙箱应用。
Expand Down

0 comments on commit 7c2f378

Please sign in to comment.