alipay

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = `alipay`

Variables

This section is empty.

Functions

func MoneyFeeToString

func MoneyFeeToString(moneyFee float64) string

MoneyFeeToString 支付宝金额转字符串

func New

func New() payment.Driver

Types

type Alipay

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

func (*Alipay) Client

func (a *Alipay) Client() *alipay.Client

func (*Alipay) IsSupported added in v0.3.0

func (a *Alipay) IsSupported(s config.Support) bool

func (*Alipay) Pay

func (a *Alipay) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)

func (*Alipay) PayNotify added in v0.0.17

func (a *Alipay) PayNotify(ctx echo.Context) error

func (*Alipay) PayQuery added in v0.0.17

func (a *Alipay) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

func (*Alipay) Refund

func (a *Alipay) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)

func (*Alipay) RefundNotify added in v0.0.17

func (a *Alipay) RefundNotify(ctx echo.Context) error

func (*Alipay) RefundQuery added in v0.0.17

func (a *Alipay) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

func (*Alipay) SetAccount

func (a *Alipay) SetAccount(account *config.Account) payment.Driver

func (*Alipay) SetNotifyCallback

func (a *Alipay) SetNotifyCallback(callback func(echo.Context) error) payment.Driver

func (*Alipay) VerifySign added in v0.0.14

func (a *Alipay) VerifySign(ctx echo.Context) error

Jump to

Keyboard shortcuts

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