TerminalCallback

interface TerminalCallback<T>

Java-friendly callback used by Terminal API operations.

Kotlin coroutine APIs are layered on top of this callback primitive. Implementations receive a successful result for completed SDK operations or a TerminalException for technical failures. Business outcomes, including declines and user cancellations, are represented by the operation result model.

Functions

Link copied to clipboard
abstract fun onFailure(error: TerminalException)
Link copied to clipboard
abstract fun onSuccess(result: T)