The classic Checkout SDK integrations are being phased out
This means we are:
- No longer developing the classic Checkout SDK integration.
- Not accepting new classic Checkout SDK integrations.
You have until March 31, 2024 to migrate.
You can configure which fields are collected and how the payment form fields are rendered and behave.
- To collect additional information such as address or number of installments, add a
configuration
object to your/paymentSession
call. - To adjust how fields are rendered and behave, adding settings to
configObject
during checkout initialization.
Add settings on SDK initialization
Add the following parameters to the chckt.checkout
call to your SDK.
Field | Type | Description |
---|---|---|
|
Boolean |
Specifies whether the first field on the payment form is focused when the form is loaded.Default is |
|
Boolean |
Specifies whether the first field on a payment method form should be focused when a payment method is selected. Setting this to |
|
Boolean |
Specifies how credit card payment methods are displayed on the payment form:
|
|
Variable |
Set to |
|
Object |
Allows you to configure specific payment methods on the form. |
|
Object |
Allows you to configure how card payment methods are rendered and behave on the form. |
|
String |
Sets the placeholder text in the payment form field inputs.Example: |
|
Boolean |
Indicates whether a card's month and year of expiry are displayed as separate input fields.When set to |
|
Object |
Used to configure the styling of fields in the payment form. |
|
Boolean |
Indicates whether the cardholder name field appears on the form.When set to |
|
Object |
Allows you to overwrite the default translation strings for the supported languages.For more information, see Localization. |
|
Boolean |
Indicates whether to use the default Adyen CSS for the Checkout form.When set to |
|
Number |
Specifies the initial amount of payment methods displayed by the SDK. When |
Example configuration creation at sdk initialization:
// Create a config object for SDK.
var sdkConfigObj = {
context: 'test',
autoFocusOnLoad: false,
showOptionalHolderNameField: false
};
// Initiate the Checkout form.
var checkout = chckt.checkout(paymentSession, '#your-payment-div', sdkConfigObj);