Jerry il y a 6 ans
Parent
commit
d1de98f268
3 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 1 0
      README.md
  2. 2 2
      README_EN.md
  3. 1 1
      wechat_client.go

+ 1 - 0
README.md

@@ -39,6 +39,7 @@
 
 
 ## 微信公共API
 ## 微信公共API
 
 
+* gopay.GetWeChatParamSign() => 获取微信支付所需参数里的Sign值(通过支付参数计算Sign值)
 * gopay.GetMiniPaySign() => 获取微信小程序支付所需要的paySign
 * gopay.GetMiniPaySign() => 获取微信小程序支付所需要的paySign
 * gopay.GetH5PaySign() => 获取微信内H5支付所需要的paySign
 * gopay.GetH5PaySign() => 获取微信内H5支付所需要的paySign
 * gopay.GetAppPaySign() => 获取APP支付所需要的paySign
 * gopay.GetAppPaySign() => 获取APP支付所需要的paySign

+ 2 - 2
README_EN.md

@@ -38,12 +38,12 @@ The Golang SDK for WeChat and AliPay
 
 
 ## WeChat Public API
 ## WeChat Public API
 
 
+* gopay.GetWeChatParamSign() => 获取微信支付所需参数里的Sign值(通过支付参数计算Sign值)
 * gopay.GetMiniPaySign() => Obtain the paySign required for WeChat Applet Payment
 * gopay.GetMiniPaySign() => Obtain the paySign required for WeChat Applet Payment
 * gopay.GetH5PaySign() => Obtain the paySign required for H5 Payment in WeChat
 * gopay.GetH5PaySign() => Obtain the paySign required for H5 Payment in WeChat
 * gopay.GetAppPaySign() => Obtain the paySign required for App Payment
 * gopay.GetAppPaySign() => Obtain the paySign required for App Payment
 * gopay.ParseWeChatNotifyResultToBodyMap() => Parse the parameters of WeChat Payment asynchronous notification to BodyMap
 * gopay.ParseWeChatNotifyResultToBodyMap() => Parse the parameters of WeChat Payment asynchronous notification to BodyMap
 * gopay.ParseWeChatNotifyResult() => Parse the parameters of WeChat Payment asynchronous notification to Struct
 * gopay.ParseWeChatNotifyResult() => Parse the parameters of WeChat Payment asynchronous notification to Struct
-* (**Deprecated**)gopay.VerifyWeChatResultSign()
 * gopay.VerifyWeChatSign() =>Verify WeChat Response Sign
 * gopay.VerifyWeChatSign() =>Verify WeChat Response Sign
 * gopay.Code2Session() => Login certificate verification:Obtain WeChat user's OpenId, UnionId, SessionKey
 * gopay.Code2Session() => Login certificate verification:Obtain WeChat user's OpenId, UnionId, SessionKey
 * gopay.GetAccessToken() => Obtain WeChat Applet's global unique access token
 * gopay.GetAccessToken() => Obtain WeChat Applet's global unique access token
@@ -90,7 +90,7 @@ The Golang SDK for WeChat and AliPay
 * gopay.FormatPrivateKey() => Format private key
 * gopay.FormatPrivateKey() => Format private key
 * gopay.FormatAliPayPublicKey() => Format alipay public key
 * gopay.FormatAliPayPublicKey() => Format alipay public key
 * gopay.ParseAliPayNotifyResult() => Parse the parameters of Alipay Payment asynchronous notification to Struct
 * gopay.ParseAliPayNotifyResult() => Parse the parameters of Alipay Payment asynchronous notification to Struct
-* gopay.VerifyAliPayResultSign() => Verify the Sign of Alipay Payment asynchronous notification by Struct
+* gopay.VerifyAliPaySign() => Verify Alipay Response Sign
 * gopay.DecryptAliPayOpenDataToStruct() => Decrypt alipay applet encrypted data to the specified struct
 * gopay.DecryptAliPayOpenDataToStruct() => Decrypt alipay applet encrypted data to the specified struct
 
 
 # Install
 # Install

+ 1 - 1
wechat_client.go

@@ -20,7 +20,7 @@ type weChatClient struct {
 
 
 //初始化微信客户端 ok
 //初始化微信客户端 ok
 //    appId:应用ID
 //    appId:应用ID
-//    MchID:商户ID
+//    mchId:商户ID
 //    apiKey:API秘钥值
 //    apiKey:API秘钥值
 //    isProd:是否是正式环境
 //    isProd:是否是正式环境
 func NewWeChatClient(appId, mchId, apiKey string, isProd bool) (client *weChatClient) {
 func NewWeChatClient(appId, mchId, apiKey string, isProd bool) (client *weChatClient) {