paypal

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `paypal`

Variables

This section is empty.

Functions

func MoneyFeeToString

func MoneyFeeToString(moneyFee float64) string

MoneyFeeToString 支付宝金额转字符串

func New

func New() payment.Driver

Types

type Paypal

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

func (*Paypal) Client

func (a *Paypal) Client() *paypal.Client

func (*Paypal) IsSupported added in v0.3.0

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

func (*Paypal) Pay

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

func (*Paypal) PayNotify added in v0.0.17

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

func (*Paypal) PayQuery added in v0.0.17

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

func (*Paypal) Refund

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

func (*Paypal) RefundNotify added in v0.0.17

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

func (*Paypal) RefundQuery added in v0.0.17

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

func (*Paypal) SetAccount

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

func (*Paypal) SetNotifyCallback

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

func (*Paypal) VerifySign added in v0.0.14

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

Jump to

Keyboard shortcuts

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