pay

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pay

type Pay struct {
	ID                     string
	Token                  string
	RechargeShellNotifyURL string
}

Pay is.

func (Pay) CheckOrder

func (p Pay) CheckOrder(txID string) (params url.Values)

CheckOrder 对账param

func (Pay) CheckRefundOrder

func (p Pay) CheckRefundOrder(txID string) (params url.Values)

CheckRefundOrder 退款对账param

func (*Pay) DeviceType

func (p *Pay) DeviceType(platform string) (t int64)

DeviceType 支付平台DeviceType

func (*Pay) Query

func (p *Pay) Query(orderID string) (params url.Values)

Query 返回订单查询param

func (*Pay) RechargeShell

func (p *Pay) RechargeShell(orderID string, mid int64, assetBP int64, shell int64) (params url.Values, jsonData string, err error)

RechargeShell 转入贝壳

func (*Pay) Sign

func (p *Pay) Sign(params url.Values) (err error)

Sign 支付平台接口签名

func (*Pay) ToJSON

func (p *Pay) ToJSON(params url.Values) (j string, err error)

ToJSON param to json

func (*Pay) TraceID

func (p *Pay) TraceID() string

TraceID .

func (*Pay) Verify

func (p *Pay) Verify(params url.Values) (ok bool)

Verify 支付平台返回param校验

type RechargeShellData

type RechargeShellData struct {
	ThirdOrderNo string `json:"thirdOrderNo"`
	MID          int64  `json:"mid"`
	ThirdCoin    string `json:"thirdCoin"`
	Brokerage    string `json:"brokerage"`
	ThirdCtime   int64  `json:"thirdCtime"`
}

RechargeShellData .

type RechargeShellReq

type RechargeShellReq struct {
	CustomerID  string              `json:"customerId"`
	ProductName string              `json:"productName"`
	Rate        string              `json:"rate"`
	NotifyURL   string              `json:"notifyUrl"`
	Timestamp   int64               `json:"timestamp"`
	SignType    string              `json:"signType"`
	Sign        string              `json:"sign"`
	Data        []RechargeShellData `json:"data"`
}

RechargeShellReq .

Jump to

Keyboard shortcuts

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