serviceadyen

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDropInPayment

func NewDropInPayment(ctx context.Context, value, ref, returnURL string) (*api.PaymentDropInResponse, error)

func NewTender

func NewTender(ctx context.Context, pos, orderId string, amount float32) error

Types

type AmountsReq

type AmountsReq struct {
	Currency        string  `json:"Currency"`
	RequestedAmount float32 `json:"RequestedAmount"`
}

type MessageHeader

type MessageHeader struct {
	ProtocolVersion string `json:"ProtocolVersion"`
	MessageClass    string `json:"MessageClass"`
	MessageCategory string `json:"MessageCategory"`
	MessageType     string `json:"MessageType"`
	SaleID          string `json:"SaleID"`
	ServiceID       string `json:"ServiceID"`
	POIID           string `json:"POIID"`
}

type PaymentRequest

type PaymentRequest struct {
	SaleData           SaleData           `json:"SaleData"`
	PaymentTransaction PaymentTransaction `json:"PaymentTransaction"`
}

type PaymentTransaction

type PaymentTransaction struct {
	AmountsReq AmountsReq `json:"AmountsReq"`
}

type SaleData

type SaleData struct {
	SaleTransactionID SaleTransactionID `json:"SaleTransactionID"`
}

type SaleToPOIRequest

type SaleToPOIRequest struct {
	MessageHeader  MessageHeader  `json:"MessageHeader"`
	PaymentRequest PaymentRequest `json:"PaymentRequest"`
}

type SaleTransactionID

type SaleTransactionID struct {
	TransactionID string `json:"TransactionID"`
	TimeStamp     string `json:"TimeStamp"`
}

type SessionResponse

type SessionResponse struct {
	ID          string `json:"id"`
	SessionData string `json:"sessionData"`
}

type TerminalAPIRequest

type TerminalAPIRequest struct {
	SaleToPOIRequest SaleToPOIRequest `json:"SaleToPOIRequest"`
}

Jump to

Keyboard shortcuts

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