Cancelable
A Cancelable
represents an ongoing operation run by the Terminal SDK. While the operation runs, the Cancelable allows the user to check whether it has completed or cancel it if necessary.
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
Functions
Link copied to clipboard
Attempt to cancel the operation. If the operation cancels successfully, the callback will be called with null
. If the cancellation fails for any reason, the callback will instead be called with an Exception detailing the cause of failure.