OfflineListener

interface OfflineListener

The OfflineListener enables an application to be notified when asynchronous connection status changes related to the terminal sdk occur.

Applications can register an OfflineListener to the Terminal SDK on init, to receive callbacks when the SDK transitions between offline and online states.

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

Functions

Link copied to clipboard

onForwardingFailure invoked when the SDK encounters an error that is not specific to any particular PaymentIntent. For example, if the SDK fails to fetch a connection token as part of the forwarding process, this method will be called with an appropriate error.

Link copied to clipboard
abstract fun onOfflineStatusChange(offlineStatus: OfflineStatus)

onOfflineStatusChange invoked when the SDK has updated its OfflineStatus.

Link copied to clipboard
abstract fun onPaymentIntentForwarded(paymentIntent: PaymentIntent, e: TerminalException?)

onPaymentIntentForwarded invoked when the SDK has finished forwarding - successfully or not - all requests associated with a particular PaymentIntent.

Link copied to clipboard

onSetupIntentForwarded invoked when the SDK has finished forwarding - successfully or not - all requests associated with a particular SetupIntent.