wechat

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 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.Hook

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) Notify

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

func (*Wechat) Pay

func (a *Wechat) Pay(cfg *config.Pay) (param.StringMap, error)

func (*Wechat) Refund

func (a *Wechat) Refund(cfg *config.Refund) (param.StringMap, error)

func (*Wechat) SetAccount

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

func (*Wechat) SetNotifyCallback

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

Jump to

Keyboard shortcuts

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