Package com.checkout.threeds
Class Checkout3DSService
-
- All Implemented Interfaces:
public final class Checkout3DSServiceThis is the main class of the SDK that performs payment authentication with the authenticate method. It only needs to be initialized once for the lifetime of the application, and is initialized with a set of constructor parameters.
-
-
Constructor Summary
Constructors Constructor Description Checkout3DSService(Context context, Environment environment, Locale locale, UICustomization uiCustomization, Uri appUrl)Checkout3DSService(Context context, Environment environment, Locale locale, UICustomization uiCustomization)Checkout3DSService(Context context, Environment environment, Locale locale)Checkout3DSService(Context context, Environment environment)Checkout3DSService(Context context)
-
Method Summary
Modifier and Type Method Description final Unitauthenticate(AuthenticationParameters authenticationParameters, AuthenticationCallback callback)Method to start the authentication, passing the values you received in the Sessions API response into authenticationParameters. final List<Warning>getWarnings()Method to check for warnings of any potential security warnings or of rejected configuration requests. -
-
Constructor Detail
-
Checkout3DSService
Checkout3DSService(Context context, Environment environment, Locale locale, UICustomization uiCustomization, Uri appUrl)
- Parameters:
context- The app context.environment- The Checkout.com environment that the SDK will connect to.locale- The customer’s locale and preferred language, used to localise the user interface.uiCustomization- The customizations for the challenge user interface.appUrl- A URL that can be used to open and move your app to the foreground.
-
Checkout3DSService
Checkout3DSService(Context context, Environment environment, Locale locale, UICustomization uiCustomization)
- Parameters:
context- The app context.environment- The Checkout.com environment that the SDK will connect to.locale- The customer’s locale and preferred language, used to localise the user interface.uiCustomization- The customizations for the challenge user interface.
-
Checkout3DSService
Checkout3DSService(Context context, Environment environment, Locale locale)
- Parameters:
context- The app context.environment- The Checkout.com environment that the SDK will connect to.locale- The customer’s locale and preferred language, used to localise the user interface.
-
Checkout3DSService
Checkout3DSService(Context context, Environment environment)
- Parameters:
context- The app context.environment- The Checkout.com environment that the SDK will connect to.
-
Checkout3DSService
Checkout3DSService(Context context)
- Parameters:
context- The app context.
-
-
Method Detail
-
authenticate
@UiThread() final Unit authenticate(AuthenticationParameters authenticationParameters, AuthenticationCallback callback)
Method to start the authentication, passing the values you received in the Sessions API response into authenticationParameters.
- Parameters:
authenticationParameters- The authentication parameters, including sessionId, sessionSecret, and scheme.callback- Lambda that is initialized with the result of authentication.
-
getWarnings
final List<Warning> getWarnings()
Method to check for warnings of any potential security warnings or of rejected configuration requests. Use when initializing the SDK, or any time afterwards.
- Returns:
a collection of any warnings gathered by the 3DS SDK.
-
-
-
-