pay

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPay

type IPay interface {
	// Payment 支付
	Payment(ctx context.Context, tradeNo string, amount float64, other interface{}) (response interface{}, err error)
	// Notify 支付回调
	Notify(ctx context.Context, f func(ctx context.Context, payNo, tradeNo, event string, arg ...interface{}) error) (*models.PayNotifyResponse, error)
	// Config 支付配置
	Config(config map[string]*gvar.Var) error
	// ConfirmPayment 确认支付-PayPal支付必须
	ConfirmPayment(ctx context.Context, payNo string) (*models.ConfirmPayResponse, error)
}

IPay 服务接口

type Services

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

Services 支付服务

func New

func New() *Services

func (*Services) Register

func (s *Services) Register(ctx context.Context, driver string) IPay

Register 注册服务

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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