credentials

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL