SDKTransactionState

sealed class SDKTransactionState

Represeantation of a single SDKTransactionState Methods in states can only be called ONCE. Calling a method more than once will result in an SDKFunctionWasConsumedException

Inheritors

Types

Link copied to clipboard

ConfirmTransaction SuperClass for different transaction types. Can be one of Sale, Refund, Cancel

Link copied to clipboard
class DeviceRequired(provideDeviceFn: (SDKDevice) -> Unit, logContextFactory: LogContextFactory) : SDKTransactionState

In this state, a SDKDevice (previously got from the SDKDeviceScanService) must be provided This will be the first state to be called after creation This state is abortable

Link copied to clipboard
class NonRecoverableError(val error: SDKTransactionError, val exception: Exception? = null) : SDKTransactionState

This state indicates that an error described by SDKTransactionError and a exception has occurred and its NotRecoverable Nothing can be done after the SDKTransactionIntent is in this state

Link copied to clipboard
class ReadConfigRequired(provideReadConfigFn: (SDKReadConfig) -> Unit, logContextFactory: LogContextFactory) : SDKTransactionState

In this state, a SDKReadConfig must be provided SdKTransactionIntent will be at this state after a SDKDevice was provided and connection to the reader is successful This state is abortable

Link copied to clipboard
class RecoverableError(val error: SDKTransactionError, logContextFactory: LogContextFactory, recoverFn: () -> Unit) : SDKTransactionState

This state indicates that an error described by SDKTransactionError has occurred and its recoverable

Link copied to clipboard
class SelectEmvApp(val availableEmvApps: List<SDKEmvApp>, logContextFactory: LogContextFactory, selectEmvAppFn: (SDKEmvApp) -> Unit) : SDKTransactionState

In this state, a SDKEmv must be provided.

Link copied to clipboard

This state indicates a successful transaction result of the corresponding transaction type (Sale, Refund or Cancel)