wechat

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `wechat`

Variables

This section is empty.

Functions

func MoneyFeeToString

func MoneyFeeToString(moneyFee float64) string

MoneyFeeToString 微信金额浮点转字符串

func New

func New() payment.Driver

func XmlToMap added in v0.0.5

func XmlToMap(xmlStr string) wxpay.Params

Types

type Wechat

type Wechat struct {
	// contains filtered or unexported fields
}

func (*Wechat) Client

func (a *Wechat) Client() *wxpay.Client

func (*Wechat) IsSupported added in v0.3.0

func (a *Wechat) IsSupported(s config.Support) bool

func (*Wechat) Pay

func (a *Wechat) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)

func (*Wechat) PayNotify added in v0.0.17

func (a *Wechat) PayNotify(ctx echo.Context) error

PayNotify 付款回调处理 documentation https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8

func (*Wechat) PayQuery added in v0.0.17

func (a *Wechat) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

func (*Wechat) Refund

func (a *Wechat) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)

func (*Wechat) RefundNotify added in v0.0.17

func (a *Wechat) RefundNotify(ctx echo.Context) error

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

func (a *Wechat) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

RefundQuery 退款查询

func (*Wechat) SetAccount

func (a *Wechat) SetAccount(account *config.Account) payment.Driver

func (*Wechat) SetNotifyCallback

func (a *Wechat) SetNotifyCallback(callback func(echo.Context) error) payment.Driver

func (*Wechat) VerifySign added in v0.0.14

func (a *Wechat) VerifySign(ctx echo.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL