Documentation
¶
Index ¶
- Constants
- func MoneyFeeToString(moneyFee float64) string
- func New() payment.Hook
- type Paypal
- func (a *Paypal) Client() *paypal.Client
- func (a *Paypal) IsSupported(s config.Support) bool
- func (a *Paypal) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)
- func (a *Paypal) PayNotify(ctx echo.Context) error
- func (a *Paypal) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Paypal) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)
- func (a *Paypal) RefundNotify(ctx echo.Context) error
- func (a *Paypal) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Paypal) SetAccount(account *config.Account) payment.Hook
- func (a *Paypal) SetNotifyCallback(callback func(echo.Context) error) payment.Hook
- func (a *Paypal) VerifySign(ctx echo.Context) error
Constants ¶
View Source
const Name = `paypal`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Paypal ¶
type Paypal struct {
// contains filtered or unexported fields
}
func (*Paypal) RefundNotify ¶ added in v0.0.17
func (*Paypal) RefundQuery ¶ added in v0.0.17
func (*Paypal) SetNotifyCallback ¶
Click to show internal directories.
Click to hide internal directories.