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)
        }
    }