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
abstract fun onForwardingFailure(e: TerminalException)

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 onNetworkStatusChange(networkStatus: NetworkStatus)

onNetworkStatusChange invoked when the SDK has detected a network status change.

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.