paypal

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 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.Hook

Types

type Paypal

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

func (*Paypal) Client

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

func (*Paypal) Notify

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

func (*Paypal) Pay

func (a *Paypal) Pay(cfg *config.Pay) (param.StringMap, error)

func (*Paypal) Query added in v0.0.12

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

func (*Paypal) Refund

func (a *Paypal) Refund(cfg *config.Refund) (param.StringMap, error)

func (*Paypal) SetAccount

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

func (*Paypal) SetNotifyCallback

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

Jump to

Keyboard shortcuts

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