CheckoutConfiguration
A generic configuration class that allows customizing the Checkout library. You can use the block parameter to add drop-in or payment method specific configurations. For example:
val checkoutConfiguration = CheckoutConfiguration(
environment,
clientKey,
shopperLocale, // optional
amount, // not applicable with the Sessions flow
) {
dropIn {
setEnableRemovingStoredPaymentMethods(true)
}
card {
setHolderNameRequired(true)
}
}
Parameters
The Environment to be used for internal network calls from the SDK to Adyen.
Your Client Key used for internal network calls from the SDK to Adyen.
The Locale used to display information to the shopper. By default 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.
The amount of the transaction. Not applicable for the sessions flow. Check out the Sessions API documentation on how to set this value.
A configuration for the internal analytics of the library.
A block that allows adding drop-in or payment method specific configurations.