Skip to content
Last updated

TransactionResult

The outcome of the transaction.

data class TransactionResult(
    val status: TransactionStatus,
    val detail: TransactionDetail? = null,
    val errorMessage: String? = null
)

Parameters

statusTransactionStatusrequired

The status of the transaction.

Enum"TXN_SUCCESS""TXN_DECLINED""TXN_FAILED""TXN_NO_APP_ERROR""TXN_FAILED_ALLOW_FALLBACK""TXN_CARD_EXPIRED""TXN_ONLINE_ERROR""TXN_CANCELLED""TXN_TIMEOUT""TXN_CARD_ERROR"
detailTransactionDetail

The details of the transaction.

errorMessageString

The error message if available.

TransactionDetail

Information about the transaction.

statusCodeString

The status code of the transaction.

Enum"APPROVED""REVERSED""DECLINED"
statusMessageString

The status message of the transaction.

amountString

The total authorised transaction amount in cents.

surchargeString

The surcharge amount in cents, it will be null if surcharge is not supported.

approvalCodeString
transactionIDString
referenceString

Unique reference number of the transaction.

elidedPanString

The elided string representing the PAN for the card used in the transaction. The last 4 digits are available

cardTypeString

The type of card used in the transaction

Enum"Visa Credit""MasterCard Credit""Amex""JCB""UnionPay""Diners""TPN""VCCS (NAPAS)""Discover""EFTPOS"
midString

The merchant identifier (MID) of the transaction.

tidString

The terminal identifier (TID) of the transaction.

retrievalReferenceNumberString
transactionReferenceString
transactionDateString
transactionTimeString
customerReceiptString