init
Initializes a terminal for the given context.
Parameters
The Context of the running Android application
The level of logging verbosity to use in this Terminal instance
The ConnectionTokenProvider to use when a new token is needed
The TerminalListener to inform of events in the Terminal lifecycle
The OfflineListener to inform of stripe connectivity events and results from forwarded payments made while offline.
Configures localization of API error messages returned through ApiError.message.
Deprecated
Use the overload that accepts a LocaleConfig parameter.
Replace with
import com.stripe.stripeterminal.external.models.LocaleConfig
init(context, logLevel, tokenProvider, listener, offlineListener, LocaleConfig.HardcodedLocale.Builder("en-US").build())Initializes a terminal for the given context.
Parameters
The Context of the running Android application
The level of logging verbosity to use in this Terminal instance
The ConnectionTokenProvider to use when a new token is needed
The TerminalListener to inform of events in the Terminal lifecycle
The OfflineListener to inform of stripe connectivity events and results from forwarded payments made while offline.