Builder

constructor(environment: Environment, clientKey: String)

Initialize a configuration builder with the required fields.

The shopper locale will match the value passed to the API with the sessions flow, or the primary user locale on the device otherwise. Check out the Sessions API documentation on how to set this value.

Parameters

environment

The Environment to be used for internal network calls from the SDK to Adyen.

clientKey

Your Client Key used for internal network calls from the SDK to Adyen.


constructor(shopperLocale: Locale, environment: Environment, clientKey: String)

Initialize a configuration builder with the required fields and a shopper locale.

Parameters

shopperLocale

The Locale of the shopper.

environment

The Environment to be used for internal network calls from the SDK to Adyen.

clientKey

Your Client Key used for internal network calls from the SDK to Adyen.


constructor(context: Context, environment: Environment, clientKey: String)

Deprecated

You can omit the context parameter

Alternative constructor that uses the context to fetch the user locale and use it as a shopper locale.

Parameters

context

A context

environment

The Environment to be used for internal network calls from the SDK to Adyen.

clientKey

Your Client Key used for internal network calls from the SDK to Adyen.