PreTransactionResult

Outcome of the background wait started by Terminal.startPreTransaction/ Terminal.startPreTransactionAsync, retrieved via PreTransactionProgress.getResult (or PreTransactionHandle.getResult on the async side).

Carries the same transactionId the pre-transaction wait was started with, so startTransaction can continue the payment once its amount is known. It returns UncommittedTransactionResult when a commit decision is required, otherwise TransactionResult. Direct calls to Terminal.startTransaction or Terminal.startTransactionAsync are rejected until this pre-transaction is continued with startTransaction or discarded with abort.

Properties

Link copied to clipboard

Same PreTransactionRequest.transactionId the pre-transaction wait was started with.

Functions

Link copied to clipboard

Same as Terminal.abort - asks the terminal to abort its current work.

Link copied to clipboard

LoyaltyData collected during the pre-transaction wait, if any was reported.

Link copied to clipboard

Continues with the actual payment now that amount is known, reusing transactionId to correlate it with the pre-transaction wait. Blocks until authorisation or a payment outcome is available. TerminalOptions.autoCommit determines whether a commit decision is required.

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