cancelSetupIntent
suspend fun Terminal.cancelSetupIntent(setupIntent: SetupIntent, params: SetupIntentCancellationParameters): SetupIntent
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
}Content copied to clipboard
Throws
if the cancellation operation fails