cancelSetupIntent

Return

The cancelled SetupIntent

Parameters

setupIntent

The SetupIntent to cancel

params

Parameters for the cancellation

See also

Cancels a SetupIntent.

Use this to cancel a SetupIntent.

Example usage:

try {
val cancelledIntent = terminal.cancelSetupIntent(
setupIntent,
SetupIntentCancellationParameters.Builder().build()
)
// Handle successful cancellation
} catch (e: TerminalException) {
// Handle cancellation failure
}

Throws

if the cancellation operation fails