public ConnectionTokenCallback
The ConnectionTokenCallback
will be used for the Stripe Terminal SDK to handle the
result of the user's interface ConnectionTokenProvider
.
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
interface ConnectionTokenProvider
Modifier and Type | Method and Description |
---|---|
void |
onFailure(ConnectionTokenException e)
This method should be called by the user if an error occurs while the
interface ConnectionTokenProvider is fetching a connection token from the Stripe API. |
void |
onSuccess(java.lang.String token)
This method should be called by the user if their
interface ConnectionTokenProvider
implementation successfully fetches a connection token from the Stripe API. |
void onSuccess(@NotNull java.lang.String token)
This method should be called by the user if their interface ConnectionTokenProvider
implementation successfully fetches a connection token from the Stripe API.
token
- The token returned by the interface ConnectionTokenProvider
interface ConnectionTokenProvider
void onFailure(@NotNull ConnectionTokenException e)
This method should be called by the user if an error occurs while the
interface ConnectionTokenProvider
is fetching a connection token from the Stripe API.
e
- The exception that occurredinterface ConnectionTokenProvider