union

package
v0.0.0-...-396ab03 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(s interface{}, secretKey []byte) string

Sign ...

func Verify

func Verify(s interface{}, publicKey, sign []byte) error

Verify ...

Types

type NotifyReq

type NotifyReq struct {
	OrderResp
	PayType            string `structs:"payType" json:"payType"`
	AccNo              string `structs:"accNo" json:"accNo"`
	PayCardType        string `structs:"payCardType" json:"payCardType"`
	Reserved           string `structs:"reserved" json:"reserved"`
	QueryID            string `structs:"queryId" json:"queryId"`
	TraceNo            string `structs:"traceNo" json:"traceNo"`
	TraceTime          string `structs:"traceTime" json:"traceTime"`
	SettleDate         string `structs:"settleDate" json:"settleDate"`
	SettleCurrencyCode string `structs:"settleCurrencyCode" json:"settleCurrencyCode"`
	SettleAmt          string `structs:"settleAmt" json:"settleAmt"`
	PayCardNo          string `structs:"payCardNo" json:"payCardNo"`
	PayCardIssueName   string `structs:"payCardIssueName" json:"payCardIssueName"`
}

NotifyReq ...

type OrderReq

type OrderReq struct {
	Version      string `structs:"version" json:"version"`
	Encoding     string `structs:"encoding" json:"encoding"`
	CertID       string `structs:"certId" json:"certId"`
	SignMethod   string `structs:"signMethod" json:"signMethod"`
	Signature    string `structs:"signature" json:"signature"`
	TxnType      string `structs:"txnType" json:"txnType"`
	TxnSubType   string `structs:"txnSubType" json:"txnSubType"`
	BizType      string `structs:"bizType" json:"bizType"`
	AccessType   string `structs:"accessType" json:"accessType"`
	MerID        string `structs:"merId" json:"merId"`
	OrderID      string `structs:"orderId" json:"orderId"`
	CurrencyCode string `structs:"currencyCode" json:"currencyCode"`
	TxnAmt       string `structs:"txnAmt" json:"txnAmt"`
	TxnTime      string `structs:"txnTime" json:"txnTime"`
	FrontURL     string `structs:"frontUrl" json:"frontUrl"`
	BackURL      string `structs:"backUrl" json:"backUrl"`
	ChannelType  string `structs:"channelType" json:"channelType"`
	AccType      string `structs:"accType" json:"accType"`
	OrderDesc    string `structs:"orderDesc" json:"orderDesc"`
	ReqReserved  string `structs:"reqReserved" json:"reqReserved"`
}

OrderReq ...

func DefaultOrderReq

func DefaultOrderReq() *OrderReq

DefaultOrderReq ...

type OrderResp

type OrderResp struct {
	OrderReq
	RespCode string `structs:"respCode" json:"respCode"`
	RespMsg  string `structs:"respMsg" json:"respMsg"`
	Tn       string `structs:"tn" json:"tn"`
}

OrderResp ...

func AppConsume

func AppConsume(r *OrderReq) (oresp *OrderResp)

AppConsume ...

Jump to

Keyboard shortcuts

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