Settings

You can configure how the payment form fields are rendered and behave. Send a configObject using the following parameters to the chckt.checkout call to your SDK.

Field Type Description
consolidateCards Boolean

Specifies how credit card payment methods are displayed on the payment form:

  • True: Credit card payment methods are displayed as a single payment method.
  • False: Credit card payment methods are displayed as separate payment methods.

Default is true.

context Variable

Set to test to load the securedFields from your Adyen test account.

Default is live.

paymentMethods Object Allows you to configure specific payment methods on the form.
  card Object Allows you to configure how card payment methods are rendered and behave on the form.
    placeholders
String

Sets the placeholder text in the securedFields inputs.

Example:

"hostedCardNumberField": "Card number"

For more information, see Using Secured Fields.

    separateDateInputs Boolean

Indicates whether a card's month and year of expiry are displayed as separate input fields.

When set to true, the month and year appear as separate fields.

    sfStyles Object

Used to configure the styling of securedFields in the payment form.

For more information, see Styling.

    showOptionalHolderNameField Boolean

Indicates whether the cardholder name field appears on the form.

When set to true, the Cardholder Name field will appear on the form as an optional field.

translations Object

Allows you to overwrite the default translation strings for the supported languages.

For more information, see Translations.

useDefaultCSS Boolean

Indicates whether to use the default Adyen CSS for the Checkout form.

When set to false, the standard Adyen CSS will not be used.