cancelPaymentIntent
Return
The cancelled PaymentIntent
Parameters
intent
The PaymentIntent to cancel
See also
Cancels a PaymentIntent.
Use this to cancel a PaymentIntent.
Example usage:
try {
val cancelledIntent = terminal.cancelPaymentIntent(paymentIntent)
// Handle successful cancellation
} catch (e: TerminalException) {
// Handle cancellation failure
}Content copied to clipboard
Throws
if the cancellation operation fails