Documentation
¶
Index ¶
- func CutFloat(money float64, precision int32) string
- func Get(platform string) (hook func() Hook)
- func MulFloat(money float64, multiple float64, precision int32) string
- func Name(platform string) string
- func NotifyIsPay(result param.StringMap) bool
- func NotifyIsRefund(result param.StringMap) bool
- func Platforms() map[string]string
- func Register(platform string, name string, hook func() Hook)
- type Hook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyIsRefund ¶ added in v0.0.5
NotifyIsRefund 是退款通知
Types ¶
type Hook ¶
type Hook interface {
SetNotifyCallback(callback func(echo.Context) error) Hook
SetAccount(*config.Account) Hook
Pay(echo.Context, *config.Pay) (param.StringMap, error)
Query(echo.Context, *config.Query) (config.TradeStatus, error)
Notify(echo.Context) error
Refund(echo.Context, *config.Refund) (param.StringMap, error)
VerifySign(echo.Context) error
}
Hook 付款驱动接口
Click to show internal directories.
Click to hide internal directories.