SandboxTerminal

A Terminal for sandbox mode that allows test card selection.

When a terminal is created with a sandbox configuration, the returned Terminal will implement this interface. You can check for sandbox mode and access sandbox-specific functionality:

val result = MoovSDK.createTerminal(context, config)
if (result is TerminalCreationResult.Created) {
val terminal = result.terminal
if (terminal is SandboxTerminal) {
// Access sandbox-specific methods
terminal.selectTestCard("4000000000000010") // Select decline card
terminal.getTestCases() // View available test cards
}
}

Functions

Link copied to clipboard
abstract fun clearTestCardSelection()

Clear the selected test card, reverting to default behavior.

Link copied to clipboard

Begins authorizing a new EMV tap

Link copied to clipboard

Creates a new EMV tap transfer

Link copied to clipboard
abstract suspend fun dispose()

Disposes of this terminal instance

Link copied to clipboard
abstract fun getTestCases(): List<CPTestCase>

Returns available test cases from the sandbox configuration.

Link copied to clipboard
abstract fun selectTestCard(cardNumber: String)

Select a specific test card for the next transaction by card number.