wechat

package
v0.0.0-...-ed80723 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FAIL = "0"
View Source
const HOST = "https://api.mch.weixin.qq.com/"

HOST 接口域名

View Source
const SUCCESS = "1"

Variables

View Source
var API = map[string]string{
	"unifiedorder": "pay/unifiedorder",
}

API 请求地址

Functions

func DefaultParams

func DefaultParams() library.Params

Types

type Wechat

type Wechat struct {
	Config library.Params
}

func (*Wechat) Find

func (wechat *Wechat) Find()

func (*Wechat) Pay

func (wechat *Wechat) Pay(scene string, data library.Params) library.Params

func (*Wechat) Refund

func (wechat *Wechat) Refund()

Jump to

Keyboard shortcuts

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