offlinepay

package
v0.0.0-...-df895d8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OfflinePayMethodEBankAlipay   = `ebank.alipay`   // 支付宝
	OfflinePayMethodEBankWechat   = `ebank.wechat`   // 微信
	OfflinePayMethodEBankPaypal   = `ebank.paypal`   // Paypal
	OfflinePayMethodEBankUnionPay = `ebank.unionpay` // 云闪付
	OfflinePayMethodEBankBestPay  = `ebank.bestpay`  // 翼支付
	OfflinePayMethodBankICBC      = `bank.icbc`      // 工商银行
	OfflinePayMethodBankABC       = `bank.abc`       // 农业银行
	OfflinePayMethodBankBOC       = `bank.boc`       // 中国银行
	OfflinePayMethodBankCCB       = `bank.ccb`       // 建设银行
	OfflinePayMethodBankBOCOM     = `bank.bocom`     // 交通银行
	OfflinePayMethodBankCMB       = `bank.cmb`       // 招商银行
	OfflinePayMethodBankSPDB      = `bank.spdb`      // 浦发银行
	OfflinePayMethodBankCEB       = `bank.ceb`       // 光大银行
	OfflinePayMethodBankHXB       = `bank.hxb`       // 华夏银行
	OfflinePayMethodBankCMBC      = `bank.cmbc`      // 民生银行
	OfflinePayMethodBankHFB       = `bank.hfb`       // 恒丰银行
	OfflinePayMethodBankHKB       = `bank.hkb`       // 汉口银行
)

Variables

This section is empty.

Functions

func GetMethod

func GetMethod(name string, opts map[string]MethodOptions) *echo.KVx[MethodX, any]

func GetMethods

func GetMethods(opts map[string]MethodOptions) []*echo.KVx[MethodX, any]

func RegisterMethod

func RegisterMethod(k, v string, cfg MethodX)

Types

type Config

type Config struct {
	Methods map[string]MethodOptions `json:"methods"`
}

func GetConfig

func GetConfig() *Config

type MethodOptions

type MethodOptions struct {
	Disabled *bool   `json:"disabled"`
}

type MethodX

type MethodX struct {
	Disabled bool
}

func (*MethodX) CopyFrom

func (a *MethodX) CopyFrom(s MethodOptions)

Jump to

Keyboard shortcuts

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