TransactionOutcome

The result of a transaction or refund with details

Copy
Copied
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 nil if surcharge is unsupported.

approvalCode
required
String
cardType
String

The type of card used in the transaction

Enum: "Visa" "Mastercard" "AMEX" "JCB" "UnionPay" "MyDebit" "Diners" "TPN" "VCCS (NAPAS)" "Discover" "EFTPOS"
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

Copyright © Tyro Payments 2019-2024. All right reserved.