wechat

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniProgram

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

type Option

type Option func(*Options)

func WithAppid added in v1.0.0

func WithAppid(appid string) Option

func WithMiniSecret

func WithMiniSecret(secret string) Option

func WithPayKey

func WithPayKey(key string) Option

func WithPayMchid

func WithPayMchid(mchid string) Option

func WithPayNotifyUrl

func WithPayNotifyUrl(notifyUrl string) Option

type Options

type Options struct {
	*MiniProgram
	*Pay
	// contains filtered or unexported fields
}

type Pay added in v1.0.0

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

type Wechat

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

func New

func New(opts ...Option) *Wechat

func (*Wechat) GetPay added in v1.0.0

func (w *Wechat) GetPay() *pay.Pay

func (*Wechat) MiniProgram

func (w *Wechat) MiniProgram() *miniprogram.MiniProgram

func (*Wechat) Provide

func (w *Wechat) Provide() interface{}

func (*Wechat) SetCache

func (w *Wechat) SetCache(cache cache.Cache)

Jump to

Keyboard shortcuts

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