SDKV2TransactionState

Representation of a single SDKV2TransactionState 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
class AdditionalDataRequired(val requiredActions: List<SDKV2RequiredAction>, provideAdditionalDataFn: (String) -> Unit, rejectFn: () -> Unit, logContextFactory: LogContextFactory) : SDKV2TransactionState

Additional data is required to continue processing the transaction. The integrator must provide the requested data via provideAdditionalData, or reject the transaction via reject. Calling one discards the other.

Link copied to clipboard

ConfirmTransaction SuperClass for different transaction types.

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

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) : SDKV2TransactionState

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: (SDKV2ReadConfig) -> Unit, logContextFactory: LogContextFactory) : SDKV2TransactionState

In this state, a SDKV2ReadConfig 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) : SDKV2TransactionState

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) : SDKV2TransactionState

In this state, a SDKEmv must be provided.

Link copied to clipboard

This state indicates a successful transaction result of the corresponding transaction type.