SimulatedOfflineModeConfiguration

data class SimulatedOfflineModeConfiguration(val sdkOfflineMode: SimulatedOfflineMode = SimulatedOfflineMode.DISABLED, val readerOfflineMode: SimulatedOfflineMode = SimulatedOfflineMode.DISABLED)

Configuration for simulating offline mode for testing offline payment flows without physically disconnecting from the network.

Set this on the Terminal object via Terminal.simulatedOfflineModeConfiguration. The SDK and the connected smart reader can be configured independently, allowing you to test scenarios where only one side loses connectivity.

For testing only. Calling Terminal.setSimulatedOfflineModeConfiguration in livemode throws a TerminalException.

Constructors

Link copied to clipboard
constructor(sdkOfflineMode: SimulatedOfflineMode = SimulatedOfflineMode.DISABLED, readerOfflineMode: SimulatedOfflineMode = SimulatedOfflineMode.DISABLED)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The simulated network state for the connected smart reader. This setting only applies to smart readers which have independent network connectivity. For bluetooth/usb readers, this setting is ignored since all network calls flow through the SDK.

Link copied to clipboard

The simulated network state for the SDK.