cancelPaymentIntent
Cancels a PaymentIntent.
If the cancel request succeeds, PaymentIntentCallback.onSuccess will be called with the updated PaymentIntent object with status CANCELED
. If the cancel request fails, PaymentIntentCallback.onFailure will be called with an error.
See https://docs.stripe.com/terminal/features/refunds.
Parameters
intent
The PaymentIntent to be canceled
callback
The PaymentIntentCallback that should be called upon completion