SDKV1TransactionState

Representation of a single SDKV1TransactionState 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) : SDKV1TransactionState

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

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: (SDKV1ReadConfig) -> Unit, logContextFactory: LogContextFactory) : SDKV1TransactionState

In this state, a SDKV1ReadConfig 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) : SDKV1TransactionState

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

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)