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, ...)
- func Unregister(platform string)
- type Hook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyIsRefund ¶ added in v0.0.5
NotifyIsRefund 是退款通知
func Unregister ¶ added in v0.2.3
func Unregister(platform string)
Types ¶
type Hook ¶
type Hook interface { IsSupported(config.Support) bool SetNotifyCallback(callback func(echo.Context) error) Hook SetAccount(*config.Account) Hook Pay(echo.Context, *config.Pay) (*config.PayResponse, error) PayQuery(echo.Context, *config.Query) (*config.Result, error) PayNotify(echo.Context) error Refund(echo.Context, *config.Refund) (*config.Result, error) RefundQuery(echo.Context, *config.Query) (*config.Result, error) RefundNotify(echo.Context) error VerifySign(echo.Context) error }
Hook 付款驱动接口
Click to show internal directories.
Click to hide internal directories.