TransactionResult

Result shared by synchronous and asynchronous transactions, commit, rollback and recovery. status is the transaction state; FAILED includes declines and aborts, not just technical errors. A WAITING_FOR_COMPLETION reservation requires a separate completion operation. Card and authorisation details are preserved when confirming a commit. Missing recovery data remains null. authorisedAt and completedAt describe distinct events.

Properties

Link copied to clipboard

Acquirer that authorised the payment, if reported.

Link copied to clipboard
val amount: Long?

Amount in minor units, such as 1000 for CHF 10.00; null when unavailable.

Link copied to clipboard

Approval code from the acquirer, if reported during authorisation.

Link copied to clipboard

Terminal-local timestamp of the authorisation (not an acquirer/host timestamp).

Link copied to clipboard

Card details reported during authorisation; null when unavailable.

Link copied to clipboard

Cashback included in the requested total; null when absent or recovered after a restart.

Link copied to clipboard

Completion time reported by a status query, if available.

Link copied to clipboard

Currency of amount, if available.

Link copied to clipboard

Available detail from the original response; the status endpoint does not provide a reason.

Link copied to clipboard

True only for a fully completed payment, excluding reservations and reversals.

Link copied to clipboard

Receipts to print. May be empty.

Link copied to clipboard

Transaction reference reported during authorisation.

Link copied to clipboard

Sale identifier supplied with the request; null when absent or recovered after a restart.

Link copied to clipboard

Transaction sequence number reported during authorisation.

Link copied to clipboard

Who must sign the receipt, if reported.

Link copied to clipboard

Payment outcome. Only COMPLETED represents a booked sale.

Link copied to clipboard

Clearing batch reported during authorisation.

Link copied to clipboard

Terminal that processed the payment.

Link copied to clipboard

Identifier supplied with the request, used for recovery and reconciliation.

Link copied to clipboard
open override val type: TransactionStepType

Identifies which result type to inspect.

Functions

Link copied to clipboard
open override fun toString(): String