Documentation
¶
Index ¶
- Constants
- func MoneyFeeToString(moneyFee float64) string
- func New() payment.Hook
- func XmlToMap(xmlStr string) wxpay.Params
- type Wechat
- func (a *Wechat) Client() *wxpay.Client
- func (a *Wechat) Notify(ctx echo.Context) error
- func (a *Wechat) Pay(ctx echo.Context, cfg *config.Pay) (param.StringMap, error)
- func (a *Wechat) Query(ctx echo.Context, cfg *config.Query) (config.TradeStatus, error)
- func (a *Wechat) Refund(ctx echo.Context, cfg *config.Refund) (param.StringMap, error)
- func (a *Wechat) SetAccount(account *config.Account) payment.Hook
- func (a *Wechat) SetNotifyCallback(callback func(echo.Context) error) payment.Hook
- func (a *Wechat) VerifySign(ctx echo.Context) error
Constants ¶
View Source
const Name = `wechat`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Wechat ¶
type Wechat struct {
// contains filtered or unexported fields
}
func (*Wechat) Notify ¶
Notify 回调处理 documentation https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8
func (*Wechat) SetNotifyCallback ¶
Click to show internal directories.
Click to hide internal directories.