ConnectionTokenCallback

interface ConnectionTokenCallback

The ConnectionTokenCallback will be used for the Stripe Terminal SDK to handle the result of the user's ConnectionTokenProvider.

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: ConnectionTokenException)

This method should be called by the user if an error occurs while the ConnectionTokenProvider is fetching a connection token from the Stripe API.

Link copied to clipboard
abstract fun onSuccess(token: String)

This method should be called by the user if their ConnectionTokenProvider implementation successfully fetches a connection token from the Stripe API.