Documentation ¶
Index ¶
- func NewDropInPayment(ctx context.Context, shoppingCart *db.Order, returnURL string) (*checkout.CreateCheckoutSessionResponse, error)
- func NewTender(ctx context.Context, pos, orderId string, amount float32) error
- func Refund(ctx context.Context, opts RefundOptions) (*checkout.PaymentRefundResource, error)
- type AmountsReq
- type MessageHeader
- type PaymentRequest
- type PaymentTransaction
- type RefundOptions
- type SaleData
- type SaleToPOIRequest
- type SaleTransactionID
- type TerminalAPIRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDropInPayment ¶
func Refund ¶ added in v7.5.0
func Refund(ctx context.Context, opts RefundOptions) (*checkout.PaymentRefundResource, error)
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 RefundOptions ¶ added in v7.5.0
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 TerminalAPIRequest ¶
type TerminalAPIRequest struct {
SaleToPOIRequest SaleToPOIRequest `json:"SaleToPOIRequest"`
}
Click to show internal directories.
Click to hide internal directories.