added receipt printing functionality to the Dojo and Paybridge payment flow

This commit is contained in:
2026-07-17 15:02:11 +01:00
parent 8ecdfd8cf7
commit fa2c92c8ab
7 changed files with 86 additions and 8 deletions
+18
View File
@@ -30,6 +30,23 @@ type terminalSessionResponse struct {
Status string `json:"status"`
TerminalID string `json:"terminalId"`
PaymentDetails *paymentDetails `json:"paymentDetails"`
Receipt *receipt `json:"receipt,omitempty"`
}
type receipt struct {
Lines []receiptLine `json:"lines"`
}
type receiptLine struct {
LineType string `json:"lineType"`
Text *receiptText `json:"text,omitempty"`
}
type receiptText struct {
Align string `json:"align"`
EmphasisBold bool `json:"emphasisBold"`
Size string `json:"size"`
Value string `json:"value"`
}
type paymentIntentResponse struct {
@@ -54,6 +71,7 @@ type dojoCard struct {
ExpiryDate string `json:"expiryDate"`
CardType string `json:"cardType"`
CardFundingType string `json:"cardFundingType"`
Last4PAN string `json:"last4PAN"`
EntryMode string `json:"entryMode"`
VerificationMethod string `json:"verificationMethod"`
}