Documentation ¶
Index ¶
- func NewDropInPayment(ctx context.Context, value, ref, returnURL string) (*api.PaymentDropInResponse, error)
- func NewTender(ctx context.Context, pos, orderId string, amount float32) error
- type AmountsReq
- type MessageHeader
- type PaymentRequest
- type PaymentTransaction
- type SaleData
- type SaleToPOIRequest
- type SaleTransactionID
- type SessionResponse
- type TerminalAPIRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDropInPayment ¶
Types ¶
type AmountsReq ¶
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 SessionResponse ¶
type TerminalAPIRequest ¶
type TerminalAPIRequest struct {
SaleToPOIRequest SaleToPOIRequest `json:"SaleToPOIRequest"`
}
Click to show internal directories.
Click to hide internal directories.