qq

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PayB2CApi = "https://api.qpay.qq.com/cgi-bin/epay/qpay_epay_b2c.cgi"
	PayHBApi  = "https://api.qpay.qq.com/cgi-bin/hongbao/qpay_hb_mch_send.cgi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QPayHBRes

type QPayHBRes struct {
	RetCode string `retcode`
	ListID  string `listid`
}

type QQ

type QQ struct {
	AppID          string
	MchID          string
	OPUserID       string
	OPUserPassword string
	ApiKey         string
	CertFile       string
	KeyFile        string
}

func NewQQ

func NewQQ() *QQ

func (*QQ) QPayB2C

func (qq *QQ) QPayB2C(clientIp string, openId string, apiKey string, tradeNo string, nonceStr string, totalFree int) error

func (*QQ) QPayHB

func (qq *QQ) QPayHB(openId string, iconID string, bannerID string, apiKey string, mchBillno string, sender string, nonceStr string, totalFree int, actName string, wishing string) (*QPayHBRes, error)

Jump to

Keyboard shortcuts

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