Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPay ¶
type IPay interface { // Payment 支付 Payment(ctx context.Context, tradeNo string, amount float64, other interface{}) (response interface{}, err error) // Notify 支付回调 Notify(ctx context.Context, f func(ctx context.Context, payNo, tradeNo, event string, arg ...interface{}) error) (*models.PayNotifyResponse, error) // Config 支付配置 Config(config map[string]*gvar.Var) error // ConfirmPayment 确认支付-PayPal支付必须 ConfirmPayment(ctx context.Context, payNo string) (*models.ConfirmPayResponse, error) }
IPay 服务接口
Click to show internal directories.
Click to hide internal directories.