ipay

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankErrorStatusCode

type BankErrorStatusCode struct {
	Code    string
	Reason  string
	Message string
	ExtCode int
}

BankErrorStatusCode holds the machine-readable error and the user-friendly message.

func GetStatusCode

func GetStatusCode(code StatusCode) (BankErrorStatusCode, bool)

GetStatusCode retrieves status code information by its code.

type Cipher

type Cipher interface {
	EncryptData(rawData string) (string, error)
}

func NewCipher

func NewCipher(key string) Cipher

type MobileSign added in v1.0.10

type MobileSign struct {
	Time *string `json:"time"`
	Sign string  `json:"sign"`
}

type Sign

type Sign struct {
	Salt *string `json:"salt"`
	Sign string  `json:"sign"`
}

type Signer

type Signer interface {
	Sign(key string) *Sign
	MobileSign(key string) *MobileSign
}

func NewSigner

func NewSigner(key string) Signer

type StatusCode

type StatusCode string

StatusCode is a type alias for string to represent the status codes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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