Documentation ¶
Index ¶
- Constants
- func MoneyFeeToString(moneyFee float64) string
- func New() payment.Driver
- func XmlToMap(xmlStr string) wxpay.Params
- type Wechat
- func (a *Wechat) Client() *wxpay.Client
- func (a *Wechat) IsSupported(s config.Support) bool
- func (a *Wechat) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)
- func (a *Wechat) PayNotify(ctx echo.Context) error
- func (a *Wechat) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Wechat) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)
- func (a *Wechat) RefundNotify(ctx echo.Context) error
- func (a *Wechat) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Wechat) SetAccount(account *config.Account) payment.Driver
- func (a *Wechat) SetNotifyCallback(callback func(echo.Context) error) payment.Driver
- 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) PayNotify ¶ added in v0.0.17
PayNotify 付款回调处理 documentation https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8
func (*Wechat) RefundNotify ¶ added in v0.0.17
RefundNotify 退款回调处理 documentation https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_16&index=10
func (*Wechat) RefundQuery ¶ added in v0.0.17
RefundQuery 退款查询
func (*Wechat) SetNotifyCallback ¶
Click to show internal directories.
Click to hide internal directories.