contracts

package
v0.0.0-...-89bd553 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IGateway

type IGateway interface {
	Request(api payloads.UnionPaymentApi, params map[string]string) *payloads.UnionPaymentResult
}

type IGatewayApi

type IGatewayApi interface {
	Request(params map[string]string) *payloads.UnionPaymentResult
	BuildParams(params map[string]string) map[string]string
}

type IGatewayConfig

type IGatewayConfig interface {
	ParseConfig() interface{}
	CheckConfig() error
}

type IGatewayRequest

type IGatewayRequest interface {
	BuildParams(params map[string]string) map[string]string
	Request(params map[string]string) *payloads.UnionPaymentResult
	ParseResult(response payloads.IGatewayResponse) map[string]string
}

type IPaymentNotify

type IPaymentNotify interface {
	PayNotify(notify payloads.UnionPaymentNotify, notifyData interface{}) (isSuccess bool)
}

type XmlParams

type XmlParams map[string]string

func (XmlParams) MarshalXML

func (m XmlParams) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*XmlParams) UnmarshalXML

func (m *XmlParams) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

Jump to

Keyboard shortcuts

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