payment

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseClientConfig

func ParseClientConfig(channelCode string, config string) (clientConfig model.ClientConfig, err error)

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory() *Factory

NewFactory 工厂方法创建支付客户端

func (*Factory) ClearClient

func (f *Factory) ClearClient(clientID uint64)

func (*Factory) CreateOrUpdatePayClient

func (f *Factory) CreateOrUpdatePayClient(channelId uint64, channelCode string, config model.ClientConfig) error

func (*Factory) GetClient

func (f *Factory) GetClient(clientID uint64) (model.Client, error)

GetClient 获取支付客户端

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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