TransactionOutcome
The result of a transaction or refund with details
public struct TransactionOutcome : Equatable, Sendable {
public let amount: String
public let surcharge: String
public let approvalCode: String
public let cardType: String?
public let elidedPan: String
public let isSignatureRequired: Bool
public let merchantCategoryCode: String
public let mid: String
public let retrievalReferenceNumber: String
public let statusCode: String
public let statusMessage: String
public let tid: String
public let transactionDate: String
public let transactionID: String
public let transactionReference: String
public let transactionTime: String
public let customerReceipt: String
}
Parameters
amount required | String The total authorised transaction amount in cents. |
surcharge | String The surcharge amount in cents, it will be |
approvalCode required | String |
cardType | String The type of card used in the transaction |
elidedPan required | String The elided string representing the PAN for the card used in the transaction. The last 4 digits are available |
isSignatureRequired required | Bool Whether or not the transaction requires a signature |
merchantCategoryCode required | String |
mid required | String The merchant identifier (MID) of the transaction. |
retrievalReferenceNumber required | String |
statusCode required | String Enum: "APPROVED" "DECLINED" "REVERSED" |
statusMessage required | String |
tid required | String The terminal identifier (TID) of the transaction. |
transactionDate required | String |
transactionID required | String |
transactionReference required | String |
transactionTime required | String |
customerReceipt required | String Formatted receipt with transaction details |