Documentation ¶
Overview ¶
Package credentials 微信支付api v3 go http-client authorization生成器
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WechatPayCredentials ¶
type WechatPayCredentials struct { Signer auth.Signer // 签名器 MchID string // 商户号 CertificateSerialNo string // 商户证书序列号 }
WechatPayCredentials authorization生成器
func (*WechatPayCredentials) GenerateAuthorizationHeader ¶
func (c *WechatPayCredentials) GenerateAuthorizationHeader(ctx context.Context, method, canonicalURL, signBody string) (authorization string, err error)
GenerateAuthorizationHeader 生成http request header 中的authorization信息
Click to show internal directories.
Click to hide internal directories.