wechat

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: Apache-2.0 Imports: 9 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

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