# Packages
No description provided by the author
# Functions
CheckOauth2AccessToken 检验授权凭证(access_token)是否有效 accessToken:调用接口凭证 openid:普通用户标识,对该公众帐号唯一,获取 access_token 是获取的 文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Authorized_API_call_UnionID.html.
DecryptRefundNotifyReqInfo 解密微信退款异步通知的加密数据 reqInfo:gopay.ParseRefundNotify() 方法获取的加密数据 req_info apiKey:API秘钥值 返回参数refundNotify:RefundNotify请求的加密数据 返回参数err:错误信息 文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_16&index=10.
生成请求XML的Body体.
GetAppPaySign APP支付,统一下单获取支付参数后,再次计算APP支付所需要的的sign appId:APPID partnerid:partnerid nonceStr:随即字符串 prepayId:统一下单成功后得到的值 signType:此处签名方式,务必与统一下单时用的签名方式一致 timeStamp:时间 ApiKey:API秘钥值 文档:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12&index=2.
Deprecated 微信内H5支付官方文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6.
GetJsapiPaySign JSAPI调起支付,统一下单获取支付参数后,再次计算出微信内H5支付需要用的paySign appId:APPID nonceStr:随即字符串 packages:统一下单成功后拼接得到的值 signType:签名类型 timeStamp:时间 ApiKey:API秘钥值 文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6.
GetMiniPaySign JSAPI支付,统一下单获取支付参数后,再次计算出小程序用的paySign appId:APPID nonceStr:随即字符串 packages:统一下单成功后拼接得到的值 signType:签名类型 timeStamp:时间 ApiKey:API秘钥值 微信小程序支付API:https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.requestPayment.html 微信小程序支付PaySign计算文档:https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_7&index=3.
GetOauth2AccessToken 微信第三方登录,code 换取 access_token appId:应用唯一标识,在微信开放平台提交应用审核通过后获得 appSecret:应用密钥AppSecret,在微信开放平台提交应用审核通过后获得 code:App用户换取access_token的code 文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html.
GetOauth2UserInfo 微信开放平台:获取用户个人信息 accessToken:接口调用凭据 openId:用户的OpenID lang:默认为 zh_CN ,可选填 zh_CN 简体,zh_TW 繁体,en 英语 文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Authorized_API_call_UnionID.html.
GetOpenIdByAuthCode 授权码查询openid(AccessToken:157字符) appId:APPID mchId:商户号 ApiKey:apiKey authCode:用户授权码 nonceStr:随即字符串 文档:https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_13&index=9.
Deprecated GetParamSign 获取微信支付所需参数里的Sign值(通过支付参数计算Sign值) 注意:BodyMap中如无 sign_type 参数,默认赋值 sign_type 为 MD5 appId:应用ID mchId:商户ID ApiKey:API秘钥值 返回参数 sign:通过Appid、MchId、ApiKey和BodyMap中的参数计算出的Sign值.
获取微信支付正式环境Sign值.
Deprecated GetSanBoxParamSign 获取微信支付沙箱环境所需参数里的Sign值(通过支付参数计算Sign值) 注意:沙箱环境默认 sign_type 为 MD5 appId:应用ID mchId:商户ID ApiKey:API秘钥值 返回参数 sign:通过Appid、MchId、ApiKey和BodyMap中的参数计算出的Sign值.
获取微信支付沙箱环境Sign值.
初始化微信客户端 V2 appId:应用ID mchId:商户ID ApiKey:API秘钥值 IsProd:是否是正式环境.
Deprecated 推荐使用 ParseNotifyToBodyMap.
ParseNotifyToBodyMap 解析微信支付异步通知的结果到BodyMap(推荐) req:*http.Request 返回参数bm:Notify请求的参数 返回参数err:错误信息.
ParseRefundNotify 解析微信退款异步通知的参数 req:*http.Request 返回参数notifyReq:Notify请求的参数 返回参数err:错误信息.
RefreshOauth2AccessToken 刷新微信第三方登录后,获取到的 access_token appId:应用唯一标识,在微信开放平台提交应用审核通过后获得 refreshToken:填写通过获取 access_token 获取到的 refresh_token 参数 文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html.
VerifySign 微信同步返回参数验签或异步通知参数验签 ApiKey:API秘钥值 signType:签名类型(调用API方法时填写的类型) bean:微信同步返回的结构体 wxRsp 或 异步通知解析的结构体 notifyReq,推荐通 BodyMap 验签 返回参数ok:是否验签通过 返回参数err:其他错误信息,不要根据 error 是否为空来判断验签正确与否,需再单独判断返回的 ok.
# Constants
中国国内.
中国国内(冗灾方案).
其他国家.
No description provided by the author
签名方式.
东南亚.
app支付.
H5支付.
JSAPI支付.
小程序支付.
Native支付.
# Structs
No description provided by the author
微信小程序解密后 用户信息结构体.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Notify.
No description provided by the author
获取开放平台,access_token 返回结构体.
微信开放平台用户信息.
授权码查询openid 返回.
No description provided by the author
No description provided by the author
ProfitSharingAddReceiverResponse 添加分账接收者结果.
ProfitSharingMerchantRatioQuery 分账退回响应结果.
ProfitSharingOrderAmountQueryResponse 查询订单待分账金额响应结果.
ProfitSharingQueryResponse 查询分账结果.
ProfitSharingResponse 请求分账返回结果.
ProfitSharingReturnResponse 分账退回响应结果.
No description provided by the author
微信公众号用户信息.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
微信小程序解密后 用户手机号结构体.
# Type aliases
No description provided by the author