Class CheckoutConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable,com.adyen.checkout.components.core.internal.Configuration
public final class CheckoutConfiguration implements Configuration
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) } }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCheckoutConfiguration.CREATOR
-
Field Summary
Fields Modifier and Type Field Description private final Environmentenvironmentprivate final StringclientKeyprivate final LocaleshopperLocaleprivate final Amountamountprivate final AnalyticsConfigurationanalyticsConfigurationpublic final static CheckoutConfiguration.CREATORCREATOR
-
Constructor Summary
Constructors Constructor Description CheckoutConfiguration(Environment environment, String clientKey, Locale shopperLocale, Amount amount, AnalyticsConfiguration analyticsConfiguration, Function1<CheckoutConfiguration, Unit> configurationBlock)
-
Method Summary
Modifier and Type Method Description EnvironmentgetEnvironment()StringgetClientKey()LocalegetShopperLocale()AmountgetAmount()AnalyticsConfigurationgetAnalyticsConfiguration()final UnitaddConfiguration(String key, Configuration configuration)final UnitaddActionConfiguration(Configuration configuration)final <T extends Configuration> TgetConfiguration(String key)final <T extends Configuration> TgetActionConfiguration(Class<T> configClass)UnitwriteToParcel(Parcel dest, Integer flags)IntegerdescribeContents()-
-
Constructor Detail
-
CheckoutConfiguration
CheckoutConfiguration(Environment environment, String clientKey, Locale shopperLocale, Amount amount, AnalyticsConfiguration analyticsConfiguration, Function1<CheckoutConfiguration, Unit> configurationBlock)
- 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.shopperLocale- The Locale used to display information to the shopper.amount- The amount of the transaction.analyticsConfiguration- A configuration for the internal analytics of the library.configurationBlock- A block that allows adding drop-in or payment method specific configurations.
-
-
Method Detail
-
getEnvironment
Environment getEnvironment()
-
getClientKey
String getClientKey()
-
getShopperLocale
Locale getShopperLocale()
-
getAnalyticsConfiguration
AnalyticsConfiguration getAnalyticsConfiguration()
-
addConfiguration
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit addConfiguration(String key, Configuration configuration)
-
addActionConfiguration
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit addActionConfiguration(Configuration configuration)
-
getConfiguration
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final <T extends Configuration> T getConfiguration(String key)
-
getActionConfiguration
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final <T extends Configuration> T getActionConfiguration(Class<T> configClass)
-
writeToParcel
Unit writeToParcel(Parcel dest, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-