config

package
v0.0.0-...-85b3fc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// 可访问参数 & 请求通用参数
	AppId        string // 应用ID
	ReturnUrl    string
	NotifyUrl    string
	Charset      string
	Version      string
	Format       string
	SignType     string
	AppAuthToken string
	AuthToken    string
	Prod         bool // 是否是正式环境,沙箱环境请选择新版沙箱应用信息。
	Location     *time.Location

	// 公钥证书组
	AppCertSN          string // alipay 应用公钥证书
	AliPayPublicCertSN string // alipay 支付宝公钥证书
	AliPayRootCertSN   string // alipay 支付宝根证书
}

func (Config) Url

func (c Config) Url() string

Url get alipay gateway endpoint

func (Config) Utf8Url

func (c Config) Utf8Url() string

Utf8Url get alipay gateway endpoint

Jump to

Keyboard shortcuts

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