Documentation ¶
Index ¶
- type OtherParam
- type SPayPal
- func (p *SPayPal) Client(ctx context.Context) (*paypal.Client, error)
- func (p *SPayPal) Config(config map[string]*gvar.Var) error
- func (p *SPayPal) ConfirmPayment(ctx context.Context, payNo string) (res *models.ConfirmPayResponse, err error)
- func (p *SPayPal) Notify(ctx context.Context, ...) (res *models.PayNotifyResponse, err error)
- func (p *SPayPal) Payment(ctx context.Context, tradeNo string, amount float64, other interface{}) (res interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtherParam ¶
type OtherParam struct { Currency string Content string ReturnUrl string CancelUrl string LinkRel string }
OtherParam 支付其他参数
type SPayPal ¶
type SPayPal struct {
// contains filtered or unexported fields
}
func (*SPayPal) ConfirmPayment ¶
func (p *SPayPal) ConfirmPayment(ctx context.Context, payNo string) (res *models.ConfirmPayResponse, err error)
ConfirmPayment 回调PayPal创建订单确认订单是否支付成功(很重要,不回调此方法,用户无法完成支付)
Click to show internal directories.
Click to hide internal directories.