Sandbox Terminal
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
}
}Content copied to clipboard
Functions
Link copied to clipboard
Clear the selected test card, reverting to default behavior.
Link copied to clipboard
abstract suspend fun createTapAuthorization(params: TapAuthorizationParams): Flow<CreateTapAuthorizationEvent>
Begins authorizing a new EMV tap
Link copied to clipboard
abstract suspend fun createTapTransfer(params: CreateTapTransferParams): Flow<CreateTapTransferEvent>
Creates a new EMV tap transfer
Link copied to clipboard
Returns available test cases from the sandbox configuration.
Link copied to clipboard
Select a specific test card for the next transaction by card number.