Callback

The Callback interface represents the simplest set of methods to run upon completion of an operation. If the operation completes with error, the onFailure method will be called. If, instead, the operation completes with no error, the onSuccess method will be called.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Functions

Link copied to clipboard
abstract fun onFailure(e: TerminalException)

This method will be called any time the the current operation fails.

Link copied to clipboard
abstract fun onSuccess()

This method will be called whenever the current operation completes with no errors.