Use Adyen’s prebuilt components to show a checkout page with various payment methods to your users.
Adyen offers several options for integrating online payments in your platform’s user interface (UI). These options include:
Web API only: this integration requires you to implement multiple API calls and to build the checkout UI yourself.
Web Hosted Checkout: with this integration, the shopper is redirected to an Adyen-hosted page to make a payment.
Web Drop-in: this integration offers a prebuilt checkout UI, where you can customize the styling of the list of payment methods.
Web Component: this integration provides prebuilt components that enable you to create your checkout UI. You can add a component for each payment method you want to offer and customize how it appears in your UI.
We recommend using the Web Component integration as it provides the convenience of prebuilt UI and the flexibility of customizing each payment method.This page explains how to create a checkout page in your platform’s UI by using the Checkout components. Select a version of the Web Component integration and follow the integration steps.
Web Components
Use our customizable UI components
Version Update
Introducing Web v6
Improvements
The Web v6 library introduces the following improvements:
For a Components integration, you must implement the following parts:
Your payment server: sends the API requests to get available payment methods, make a payment, and send additional payment details.
Your client website: shows the the Component UI where the shopper makes the payment. The Component uses the data from the API responses to handle the payment flow and additional actions on your client website.
Your webhook server: receives webhooks that include the outcome of each payment.
Subscribe to the following webhooks: Standard webhook with default event codes
Limitations
Make sure that your integration follows our recommended best practices: <iframe>: an <iframe> must be hosted on the same domain as the parent window to support payment flows that use redirects. WebViews: we do not recommend using WebViews in native apps due to security and functionality limitations. Use native equivalents instead. Server-side Rendering (SSR): if you use SSR, ensure the AdyenCheckout instance and Components are initialized on the client side. Browser support: we support recent versions of all major browsers.For 3D Secure 2: A strict Content Security Policy (CSP) can prevent native 3D Secure 2 challenges from being loaded on your website, because loading the 3D Secure 2 interface requires adding more URLs to your CSP. Adyen does not maintain a list of all URLs. You can specify to use the redirect flow when creating a session if you do not want to adjust your CSP.
Payment serverWe provide server-side API libraries for several programming languages, available through common package managers, like Gradle and npm, for easier installation and version management. Our API libraries will save you development time, because they:
Use an API version that is up to date.
Have generated models to help you construct requests.
Send the request to Adyen using their built-in HTTP client, so you do not have to create your own.
You can find the latest version on GitHub. Alternatively, you can download the release on GitHub.
Setting up the client
Create a singleton resource that you use for the API requests to Adyen:Set up your client
// Import the required classes.package com.adyen.service;import com.adyen.Client;import com.adyen.service.checkout.PaymentsApi;import com.adyen.model.checkout.Amount;import com.adyen.model.checkout.CreateCheckoutSessionRequest;import com.adyen.model.checkout.CreateCheckoutSessionResponse;import com.adyen.enums.Environment;import com.adyen.service.exception.ApiException;import java.io.IOException;public class Snippet { public Snippet() throws IOException, ApiException { // Set up the client and service. Client client = new Client("ADYEN_API_KEY", Environment.TEST); }}
Create a singleton resource that you use for the API requests to Adyen:Set up your client
use Adyen\Model\Checkout\Amount;use Adyen\Model\Checkout\CreateCheckoutSessionRequest;use Adyen\Service\Checkout\PaymentsApi;// Include your idempotency key when you make an API request.$requestOptions['idempotencyKey'] = "YOUR_IDEMPOTENCY_KEY";// Set up the client and service.$client = new \Adyen\Client();$client->setXApiKey('ADYEN_API_KEY');$client->setEnvironment(\Adyen\Environment::TEST);$service = new PaymentsApi($client);
Requirements
.NET standard 2.0 or later.
For Terminal API certificate validation, set the application to either of the following:
Create a singleton resource that you use for the API requests to Adyen:Set up your client
using Adyen;using Adyen.Model.Checkout;using Adyen.Service.Checkout;using Environment = Adyen.Model.Environment;class Program{ static void Main() { // Set up the client and service. var config = new Config { XApiKey = "ADYEN_API_KEY", Environment = Environment.Test }; var client = new Client(config); var checkout = new PaymentsService(client); // Include your idempotency key when you make an API request. var requestOptions = new Adyen.Model.RequestOptions { IdempotencyKey = "YOUR_IDEMPOTENCY_KEY" }; }}
Create a singleton resource that you use for the API requests to Adyen:Set up your client
// Require the parts of the module you want to use.const { Client, CheckoutAPI, Types} = require("@adyen/api-library");// Set up the client and service.const client = new Client({ apiKey: "ADYEN_API_KEY", environment: "TEST" });const checkoutApi = new CheckoutAPI(client);// Include your idempotency key when you make an API request.const requestOptions = { idempotencyKey: "YOUR_IDEMPOTENCY_KEY" };
Create a singleton resource that you use for the API requests to Adyen:Set up your client
import Adyen# Set up the client and service.adyen = Adyen.Adyen()adyen.client.xapikey = "ADYEN_API_KEY"adyen.client.platform = "test" # The environment that the library is used in.
Alternatively, you can download the release on GitHub.Run bundle install to install dependencies.
Set up the client
Create a singleton resource that you use for the API requests to Adyen:Set up your client
require 'adyen-ruby-api-library'# Set up the client and service.adyen = Adyen::Client.newadyen.api_key = 'ADYEN_API_KEY'adyen.env = :test # The environment that the library is used in.
Create a session
Payment serverA payment session is a resource with information about a payment flow initiated by the shopper. This resource has all the information required to handle all the stages of a payment flow. You can configure this resource with information like available payment methods, payment amount, or line items.To create a payment session, make a /sessions request, including:
Parameter name
Required
Description
merchantAccount
Your merchant account name.
amount
The currency and value of the payment, in minor units. This is used to filter the list of available payment methods to your shopper.
returnUrl
URL to where the shopper should be taken back to after a redirection. If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. The URL must not include personally identifiable information (PII), for example name or email address.
reference
Your unique reference for the payment. Minimum length: three characters.
countryCode
The shopper’s country code. This is used to filter the list of available payment methods to your shopper. If not set, setting the locale is required in the front-end global configuration.
channel
The platform where the payment is taking place. Use Web.
expiresAt
The session expiry date in ISO8601 format, for example 2023-11-23T12:25:28Z, or 2023-05-27T20:25:28+08:00. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation.
shopperLocale
The language that the payment methods will appear in if the locale in your front-end global configuration isn’t set. Set it to the shopper’s language and country code. The default is en-US.
shopperEmail
The shopper’s email address. Strongly recommended because this field is used in a number of risk checks, and for 3D Secure.
shopperReference
Your reference to uniquely identify this shopper. Strongly recommended because this field is used in a number of risk checks.
import { AdyenCheckout, Card } from '@adyen/adyen-web';import '@adyen/adyen-web/styles/adyen.css';
Use the integrity attribute so browsers can verify that the script and stylesheet have not been changed unexpectedly.The value of the integrity attribute is the Subresource Integrity (SRI) hash which Adyen provides for each version of the Adyen Web JavaScript and CSS files.Get the SRI hashes in the release notes, under Updating to this version.checkout.html
<!-- Embed the Adyen Web script element above any other JavaScript in your checkout page. --><script src="https://checkoutshopper-test.cdn.adyen.com/sdk/VERSION/adyen.js" integrity="JS_INTEGRITY_HASH_FOR_YOUR_VERSION" crossorigin="anonymous"></script><!-- Embed the Adyen Web stylesheet. You can add your own styling by overriding the rules in the CSS file --><link rel="stylesheet" href="https://checkoutshopper-test.cdn.adyen.com/checkoutshopper/sdk/VERSION/adyen.css" integrity="CSS_INTEGRITY_HASH_FOR_YOUR_VERSION" crossorigin="anonymous">
Components resources are available on the window global variable.
Create Dom Element
Create a DOM element for the Component
Create a DOM container element on your checkout page where you want the Component to be rendered and give it a descriptive id. We strongly recommend that you do not put it in an iframe element, because it may cause issues.For example, if you are implementing the Card Component:Create a DOM element
<div id="card-container"></div>
If you are using JavaScript frameworks such as Vue or React, make sure that you use references instead of selectors and that you do not re-render the DOM element.
Configure And Create Instances
Create the Component
Client websiteComponents consists of:
AdyenCheckout: represents one payment and is linked to a payment session, environment, and amount to be paid.
Components: represent the payment method-specific interface a shopper completes their payment with.
With the AdyenCheckout instance, you can create one or multiple Components.
Create your instance of AdyenCheckout
Create a global configuration object that you use to create the instance of AdyenCheckout. The object contains configuration parameters and event handlers.
Add configuration parameters.
Parameter name
Required
Description
session
The payment session object from your call to /sessions. Contains a session.id and session.sessionData.
environment
Use test. When you are ready to accept live payments, change the value to one of our live environments.
amount
An object representing the amount to be displayed on the Pay Button. Its properties are value (the amount in the currencies smallest unit, for example cents for EUR) and currency.
countryCode
The shopper’s country code. This is used to filter the list of available payment methods to your shopper.
locale
The language used in the the Component UI. For possible values, see the list of available languages. By default, this is the either the shopperLocale from your /sessions request or, if this locale is not available on Components, en-US.
showPayButton
Shows or hides a Pay Button for each payment method. Defaults to true. The Pay button triggers the onSubmit event when payment details are valid. If you want to disable the button and then trigger the submit flow on your own, set this to false and call the .submit() method from your own button implementation. PayPal Smart Payment Buttons doesn’t support the .submit() method.
secondaryAmount
Shows the payment amount in an additional currency on the Pay button. You must do the currency conversion and set the amount. This object has properties: currency: The three-character ISO currency code. value: The amount of the transaction, in minor units. currencyDisplay: Sets the currency formatting. Default: symbol.
Add event handlers, to handle events that get triggered during the payment.
Event handler name
Required
Description
onPaymentCompleted(result, component)
Create an event handler, called when the payment is completed.
onPaymentFailed(result, component)
Create an event handler, called when the payment failed. A failed payment has result code Cancelled, Error or Refused.
onError(error)
Create an event handler, called when an error occurs in Components.
beforeSubmit(data, component, actions)
Create an event handler, called when the shopper selects the Pay button. Do not use if you are implementing an additional use case. Allows you to add parameters to the payment request that the Component makes. For example, you can add shopper details like billingAddress, deliveryAddress, shopperEmail, or shopperName. When the beforeSubmit event is triggered, you need to continue or stop the payment flow using methods available in the event handler: Continue the payment flow (actions.resolve()): You should call the actions.resolve() method regardless of the resultCode, including when the payment is unsuccessful. Stop the payment flow (actions.reject()): Stop the payment flow only when your server-side API request to Adyen failed, or when experiencing network connection issues.
onSubmit(state, component, actions)
Required if you need to update the payment amount after rendering the Component. For this additional use case, you need to integrate additional endpoints. Creates an event handler, called when the shopper selects the Pay button and payment details are valid. When the onSubmit event is triggered, you need to continue or stop the payment flow using methods available in the event handler: Continue the payment flow (actions.resolve()): You should call the actions.resolve() method regardless of the resultCode, including when the payment is unsuccessful. Stop the payment flow (actions.reject()): Stop the payment flow only when your server-side API request to Adyen failed, or when experiencing network connection issues.
onActionHandled
Create an event handler, called when an action, for example a QR code or 3D Secure 2 authentication screen, is shown to the shopper. The following action.type values trigger this callback: threeDSqrawaitReturns data that contains: componentType: The type of component that shows the action to the shopper. actionDescription: A description of the action shown to the shopper.
onAdditionalDetails(state, component, actions)
Required if you need to confirm an additional action on your server. For this additional use case, you need to integrate additional endpoints. Create an event handler, called when a payment method requires more details, for example for native 3D Secure 2, or native QR code payment methods.
onChange(state, component)
Create an event handler, called when a change happens in the payment form.
If an error occurs, the onError event returns an object which contains details about the error:
Error field
Description
error.name
The type of error. Use the values it returns to configure localized error messages for your shoppers: NETWORK_ERROR: a call that the Component made to the server has failed, for example because of a timeout, or if there is missing information in the request. Ask the shopper to try again. CANCEL: the shopper canceled the payment. Only applies for payment methods that allow explicit cancellation in the UI, for example Apple Pay or PayPal. IMPLEMENTATION_ERROR: the method or parameter is incorrect or not supported. ERROR: generic catch-all error. Tell the shopper something went wrong and ask them to try paying again, maybe with a different payment method.
error.message
Gives more information for each type of error. The message is technical so you shouldn’t show it to your shoppers. For error.name: NETWORK_ERROR, the information in the message field depends on the environment: test: you get a message with a generic error code to help you troubleshoot. live: the message from the response.
The error object may contain additional fields inherited from the Error() constructor.Combine the configuration parameters and event handlers into your global configuration object.Create a global configuration object
const globalConfiguration = { session: { id: 'CSD9CAC3...', // Unique identifier for the payment session. sessionData: 'Ab02b4c...' // The payment session data. }, environment: 'test', // Change to 'live' for the live environment. amount: { value: 1000, currency: 'EUR' }, locale: 'nl-NL', countryCode: 'NL', clientKey: 'test_870be2...', // Public key used for client-side authentication: https://docs.adyen.com/development-resources/client-side-authentication onPaymentCompleted: (result, component) => { console.info(result, component); }, onPaymentFailed: (result, component) => { console.info(result, component); }, onError: (error, component) => { console.error(error.name, error.message, error.stack, component); }};
Use this global configuration object to create an instance of AdyenCheckout.Create an instance of AdyenCheckout
// All of the resources that you imported are properties of the window.// In this example you imported Card.const { AdyenCheckout, Card } = window.AdyenWeb;const checkout = await AdyenCheckout(globalConfiguration);
Initializing in a reactive framework
Modern frameworks can re-render UI components, which can cause unexpected behavior in the checkout. As a rule, initialize AdyenCheckout and mount your Components only once when you are ready to display the payment methods.
Create your instance of Components
Optionally create another configuration object for the Component. For some payment methods, you must add additional configuration. You can also add optional configuration for some payment methods. For example, you can add additional configuration for cards.Payment method configuration
const cardConfiguration = { // Optional configuration. billingAddressRequired: true, // Show the billing address input fields and mark them as required. brandsConfiguration: { visa: { icon: 'https://...' } // Custom icon for Visa. }};
Configuration for payment methods overrides global configuration. In the following example, the onError() configuration for card overrides the global onError() configuration.Override global configuration
// Global configuration object.const globalConfiguration = { // Global configuration for onError. onError: () => {},};// Card configuration object.const componentConfiguration = { // onError configuration for card payments. Overrides the global configuration. onError: () => {}};
Use the paymentMethodsResponse property of the AdyenCheckout instance to check the available payment methods.
If the payment method is available, create an instance of the Component and mount it to the container element you created.The Component you use depends on the payment method. You can find which Component to use for which payment method on the payment method pages. For example, for cards, use Card.checkout.js
// 1. Check the available payment methods from the AdyenCheckout instance.console.log(checkout.paymentMethodsResponse); // => { paymentMethods: [...], storedPaymentMethods: [...] }// 2. Create an instance of the Component and mount it to the container you created.const cardComponent = new Card(checkout, cardConfiguration).mount('#card-container')
The Github repository also includes a Components map that shows which payment methods use which Components.
Mounts the the Component into the DOM returned by the selector. The selector must be either a valid CSS selector string or an HTMLElement reference.
unmount()
Unmounts the the Component from the DOM. We recommend to unmount in case the payment amount changes after the initial mount.
update()
Updates the properties and remounts the Component into the DOM, for example, if you want to change the properties of the configuration object after the Component is mounted.
Optional Localization (optional)
**
Localization
Supported languages
We include UI localizations for some languages. The fields and text are in the files for the included locales.To use a language or localization that isn’t included, create your own.
Change the language
The language of the UI is based on the locale set when creating your instance of AdyenCheckout.If no locale is set when creating an instance of AdyenCheckout, the language displayed matches the shopperLocale from your /sessions request.If neither language is set or supported, the UI language defaults to US English.
Customize the localization
The text displayed in each localization can be customized, allowing you to replace the default text with your own.To customize a localization:
Create a translations object on your payments page.
In this object, specify the locale you want to customize, and add key-value pairs corresponding to any text you want to customize.The following example shows how to customize the US English (en-US) translation so that:
Shipping Address appears instead of Delivery Address (the default en-US text).
State appears instead of State or Province (the default en-US text).
To use a language or localization that we do not included, create your own.
Create a translations object on your payments page.
In this object, specify the locale you want to create. For example, you can use the locale nl-BE to create a Belgian Dutch localization, and add key-value pairs corresponding to text shown in the UI.The example below shows a translation object for creating a nl-BE localization.British English translations example
const translations = { "nl-BE": { "paymentMethods.moreMethodsButton": "Meer betaalmethoden", "payButton": "Betaal", "storeDetails": "Bewaar voor mijn volgende betaling", ... }};
The ellipsis (…) in the translations object above indicate the code sample isn’t complete. For missing key-value pairs in your configuration, the translation defaults to en-US.
To use your localization in your payment form, provide the following parameters in the configuration object:
Parameter name
Required
Description
locale
The locale you created in the previous step.
translations
Use translations
The example below shows how to use a created localization for nl-BE.
The default text direction is left-to-right. Text direction is independent from the locale you set in the configuration object. So even if you set the locale to a right-to-left language, like Arabic, you still need to set the text direction.To change the text direction to right-to-left, use the HTML dir attribute on the parent element for the checkout container.
Handle the payment
Client websiteWhen you create and mount the Component, the shopper interacts with the interface to complete the payment. The whole payment flow is handled by the Component you configured and created, except for when a redirect happens.
Handle The Redirect Result
Handle the redirect
Some payment methods, like iDEAL and some 3D Secure flows, will redirect the shopper back to your website. When the shopper comes back to your website, show them the payment result, based on the result code. To get the resultCode, you can either:
Create an instance of AdyenCheckout after the redirect, as described below.
The shopper comes back to the returnUrl specified when creating the payment session. The returnUrl has query parameters appended to it, which you need to handle the redirect:
sessionId: the unique identifier for the shopper’s payment session.
redirectResult: details you need to submit to handle the redirect.
If the shopper doesn’t return to you website, you do not get a redirectResult. You do not need to do anything to handle the redirect in this case. Instead, wait for the webhook that we send to your server.Example return URL
// The return URL has query parameters related to the payment session.https://your-company.example.com/?sessionId=CSD9CAC34EBAE225DD&redirectResult=X6XtfGC3!Y...
Extract the values from the query string parameters and create a function which handles the redirect result. The function needs to:
Create an instance of Adyen Checkout using the sessionId value you extracted.
Submit the redirectResult value you extracted from the returnUrl.
handleRedirectResult
// Create an instance of AdyenCheckout to handle the shopper returning to your website.// Configure the instance with the sessionId you extracted from the returnUrl.const checkout = await AdyenCheckout(configuration);// Submit the redirectResult value you extracted from the returnUrl.checkout.submitDetails({ details: { redirectResult: redirectResult } });
If the shopper doesn’t return to your website, do not call submitDetails, because the result doesn’t change when you attempt the request.After you submit the redirectResult value, the Component calls the onPaymentCompleted(result, component) event. Use the result code in result.resultCode to inform the shopper.To update your order management system, wait for the webhook that we send to your server.
Get The Outcome
Get the payment outcome
After the Component finishes the payment flow, you can show the shopper the current payment status. Adyen sends a webhook with the outcome of the payment.
Inform the shopper
Client websiteDepending on whether the payment was successful, the onPaymentCompleted or onPaymentFailed event is triggered.From the relevant event, you can get the resultCodeto inform the shopper about the current payment status.**
Optional: Get the result of the payment session on your server
Payment serverYou can also get the result of the payment session on your server.
Get sessionResult from the onPaymentCompleted or onPaymentFailed event.
Make a GET/sessions/{id}?sessionResult={sessionResult} request including the id and sessionResult. For example:The response includes the result of the payment session (status). For example:Response with result of the payment session
The additionalData attributes in the response depend on the type of payment made.Possible statuses:
status
Description
completed
The shopper completed the payment. This means that the payment was authorized.
paymentPending
The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow.
canceled
The shopper canceled the payment.
expired
The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this sessionId.
The status included in the response doesn’t get updated. Do not make the request again to check for payment status updates. Instead, check webhooks or the Transactions list in your Customer Area.
Update your order management system
Webhook serverYou get the outcome of each payment asynchronously, in an AUTHORISATIONwebhook. Use the merchantReference from the webhook to match it to your order reference.
For a successful payment, the event contains success: true.Example webhook for a successful payment
For an unsuccessful payment, you get success: false, and the reason field has details about why the payment was unsuccessful.Example webhook for an unsuccessful payment
Before going live, use our list of test cards and other payment methods to test your integration. We recommend testing each payment method that you intend to offer to your shoppers.You can check the status of a test payment in your Customer Area, under Transactions > Payments.To debug or troubleshoot test payments, you can also use API logs in your test environment.When you are ready to go live, you need to:
Switch from test to our live endpoints.Make sure that all API requests you make for the same payment session use the same live endpoint region. Using different regions for /payments and /payments/details requests may result in errors, for example, when authenticating with 3D Secure 2.
Load Components from one of our live environments and set the environment to match your live endpoints:
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Adyen Docs","colors":{"primary":"#0abf53","light":"#0abf53","dark":"#0abf53"},"logo":{"light":"https://mintcdn.com/adyen-preview/lASzPax-5LijrTyv/logo/adyen-logo-light.svg?fit=max\u0026auto=format\u0026n=lASzPax-5LijrTyv\u0026q=85\u0026s=2c1afa7588316f526e65513e790f5095","dark":"https://mintcdn.com/adyen-preview/QZBUuz3DUfNRdN58/logo/adyen-logo-dark.svg?fit=max\u0026auto=format\u0026n=QZBUuz3DUfNRdN58\u0026q=85\u0026s=8b91a67b637458bd8d4469256fdea66d","href":"/"},"favicon":"https://mintcdn.com/adyen-preview/QZBUuz3DUfNRdN58/icon.svg?fit=max\u0026auto=format\u0026n=QZBUuz3DUfNRdN58\u0026q=85\u0026s=0c1b1d9cd8ef6f2d1c87e52efbd25c3d","navbar":{"links":[{"href":"https://docs.adyen.com/api-explorer","label":"API Explorer"},{"href":"https://help.adyen.com/contact","label":"Support"}],"primary":{"type":"button","label":"Sign up","href":"https://www.adyen.com/signup"}},"seo":{"metatags":{"robots":"noindex"}},"fonts":{"heading":{"family":"Adyen","weight":700,"source":"fonts/Adyen-Variable.woff2","format":"woff2"},"body":{"family":"Adyen","weight":400,"source":"fonts/Adyen-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","cursor","vscode","devin-mcp","download-spec","download-pdf"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"adyen-preview","hasAudioNarration":false,"actualSubdomain":"adyen-preview","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-onboarding","repo":"adyen-preview","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6acfda162114076d94919f9a","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"In-person payments","count":532},{"language":"default","tag":"Payments","count":442},{"language":"default","tag":"Adyen for Platforms","count":392},{"language":"default","tag":"Platforms","count":282},{"language":"default","tag":"Marketplaces","count":228},{"language":"default","tag":"Online payments","count":188},{"language":"default","tag":"More development resources","count":154},{"language":"default","tag":"Enterprise issuing","count":146},{"language":"default","tag":"Business accounts","count":122},{"language":"default","tag":"Plugins","count":120}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".sidebar-group-header{font-weight:600!important}.sidebar-group-header .sidebar-title{font-weight:inherit!important}h1#page-title{font-weight:600!important}img[src*=\"/user/data/smileys/emoji/\"]{width:20px;height:20px;display:inline-block;vertical-align:middle}#content-area img,#content img,mdx-content img{cursor:default!important}"}]}
{"page":{"pagePath":"platforms/online-payments/checkout-components","slug":"/platforms/online-payments/checkout-components","pageMetadata":{"title":"Checkout Components","description":"Use Adyen's prebuilt components to show a checkout page with various payment methods to your users.","href":"/platforms/online-payments/checkout-components"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use Adyen’s prebuilt components to show a checkout page with various payment methods to your users.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,h5:`h5`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Icon,OptimizedImage,Tab,Table,Tabs}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Adyen offers several options for integrating online payments in your platform’s user interface (UI). These options include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web API only`}),`: this integration requires you to implement multiple API calls and to build the checkout UI yourself.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web Hosted Checkout`}),`: with this integration, the shopper is redirected to an Adyen-hosted page to make a payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web Drop-in`}),`: this integration offers a prebuilt checkout UI, where you can customize the styling of the list of payment methods.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web Component`}),`: this integration provides prebuilt components that enable you to create your checkout UI. You can add a component for each payment method you want to offer and customize how it appears in your UI.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`We recommend using the Web Component integration as it provides the convenience of prebuilt UI and the flexibility of customizing each payment method.`}),`\n`,_jsx(_components.p,{children:`This page explains how to create a checkout page in your platform’s UI by using the Checkout components. Select a version of the Web Component integration and follow the integration steps.`}),`\n`,_jsx(Heading,{level:`2`,id:`web-components`,children:`Web Components`}),`\n`,_jsx(_components.p,{children:`Use our customizable UI components`}),`\n`,_jsx(Heading,{level:`3`,id:`version-update`,children:`Version Update`}),`\n`,_jsx(Heading,{level:`2`,id:`introducing-web-v6`,children:`Introducing Web v6`}),`\n`,_jsx(Heading,{level:`3`,id:`improvements`,children:`Improvements`}),`\n`,_jsx(_components.p,{children:`The Web v6 library introduces the following improvements:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Reduced bundle size through tree shaking`}),`\n`,_jsx(_components.li,{children:`Enhanced design`}),`\n`,_jsx(_components.li,{children:`Enhanced Typescript developer experience`}),`\n`,_jsx(_components.li,{children:`Better alignment of express payment methods`}),`\n`,_jsx(_components.li,{children:`Added support for 6 localizations`}),`\n`,_jsx(_components.li,{children:`Support for Apple Pay Order tracking`}),`\n`,_jsx(_components.li,{children:`Improve AVS checks for Google Pay and Apple Pay`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To upgrade your existing integration, see `,_jsx(_components.a,{href:`/online-payments/upgrade-your-integration/upgrade-to-web-v6`,children:`Upgrade to Adyen Web v6`})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(_components.p,{children:`For a Components integration, you must implement the following parts:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your payment server`}),`: sends the API requests to get available payment methods, make a payment, and send additional payment details.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your client website`}),`: shows the the Component UI where the shopper makes the payment. The Component uses the data from the API responses to handle the payment flow and additional actions on your client website.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your webhook server`}),`: receives webhooks that include the outcome of each payment.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`integration-steps`,children:`Integration steps`}),`\n`,_jsx(_components.p,{children:`To integrate Components in your web application:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#install-api-library`,children:`Install an API library`}),` on your server.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#create-payment-session`,children:`Create a session`}),` from your server.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#install-adyen-web`,children:`Install the Adyen Web library`}),` on your front end.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#create-container-element`,children:`Create a DOM element`}),` for Components.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.a,{href:`#configure`,children:[`Configure and create an instance of `,_jsx(_components.code,{children:`AdyenCheckout`})]}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#create-instance`,children:`Configure and create an instance of the Component`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#handle-the-redirect`,children:`Handle redirects`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#inform-the-shopper`,children:`Show the payment status`}),` to your shopper.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#update-your-order-management-system`,children:`Update your order management system`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#test-and-go-live`,children:`Test your integration and go live`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`payment-flow`,children:`Payment flow`}),`\n`,_jsx(_components.p,{children:`The parts of your integration work together to complete the payment flow. The payment flow is the same for all payments:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The shopper goes to the checkout page.`}),`\n`,_jsx(_components.li,{children:`Your server uses the shopper’s country and currency information from your client to create a payment session.`}),`\n`,_jsx(_components.li,{children:`Your client creates an instance of the Component using the session data from the server.`}),`\n`,_jsx(_components.li,{children:`The Component collects the shopper’s payment details, handles additional actions, and presents the payment result to the shopper.`}),`\n`,_jsx(_components.li,{children:`Your webhook server receives the notification containing the payment outcome.`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/pages/filters/sessions-flow-integration/web/5-12-0/02.how-it-works/sessions-components.svg`,alt:``})}),`\n`,_jsx(_components.p,{children:`If you are integrating these parts separately, you can start at the corresponding part of this integration guide:`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Payment server`,href:`/#install-api-library`,icon:`server`,children:_jsx(_components.p,{children:`Go to the integration steps for your server.`})}),_jsx(Card,{title:`Client website`,href:`/#prepare-your-front-end`,icon:`desktop`,children:_jsx(_components.p,{children:`Go to the integration steps for your client website.`})}),_jsx(Card,{title:`Webhook server`,href:`/#update-your-order-management-system`,icon:`bell`,children:_jsx(_components.p,{children:`Go to the integration steps for your webhook server.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`before-you-begin`,children:`Before You Begin`}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsx(_components.p,{children:`Before you begin, take into account the following requirements, limitations, and preparations.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Requirement`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Integration type`})}),_jsx(_components.td,{children:`Use this information to build an online payments integration.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/account/user-roles`,children:`Customer Area roles`})})}),_jsxs(_components.td,{children:[`Make sure that you have the following roles:`,_jsx(`br`,{}),_jsx(_components.strong,{children:`Merchant admin role`}),` `,_jsx(_components.strong,{children:`Manage API credentials`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/development-resources/api-credentials`,children:`Adyen API credentials`})})}),_jsxs(_components.td,{children:[`Make sure that you have created the following:`,_jsx(`br`,{}),_jsx(_components.a,{href:`/development-resources/api-credentials#new-credential`,children:`API credential`}),` `,_jsx(_components.a,{href:`/development-resources/api-credentials#generate-api-key`,children:`API key`}),` `,_jsx(_components.a,{href:`/development-resources/client-side-authentication#get-your-client-key`,children:`Client key`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/development-resources/api-credentials/roles`,children:`Adyen API credential roles`})})}),_jsxs(_components.td,{children:[`Make sure that you have the `,_jsx(_components.a,{href:`/development-resources/api-credentials/roles#roles-for-payments`,children:`roles for payments`}),` that are assigned by default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/development-resources/webhooks`,children:`Webhooks`})})}),_jsxs(_components.td,{children:[`Subscribe to the following webhooks:`,_jsx(`br`,{}),`Standard webhook with `,_jsx(_components.a,{href:`/development-resources/webhooks/webhook-types#default-event-codes`,children:`default event codes`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Limitations`})}),_jsxs(_components.td,{children:[`Make sure that your integration follows our recommended best practices:`,_jsx(`br`,{}),_jsx(_components.strong,{children:_jsx(_components.a,{href:`/online-payments/web-best-practices#avoid-iframe-elements`,children:`\u0026lt;iframe>`})}),`: an \u0026lt;iframe> must be hosted on the same domain as the parent window to support payment flows that use redirects. `,_jsx(_components.strong,{children:_jsx(_components.a,{href:`/online-payments/web-best-practices#avoid-webviews`,children:`WebViews`})}),`: we do not recommend using WebViews in native apps due to security and functionality limitations. Use native equivalents instead. `,_jsx(_components.strong,{children:_jsx(_components.a,{href:`/online-payments/web-best-practices#manage-server-side-rendering-ssr`,children:`Server-side Rendering (SSR)`})}),`: if you use SSR, ensure the `,_jsx(_components.code,{children:`AdyenCheckout`}),` instance and Components are initialized on the client side. `,_jsx(_components.strong,{children:_jsx(_components.a,{href:`/online-payments/web-best-practices#ensure-browser-compatibility`,children:`Browser support`})}),`: we support recent versions of all major browsers.For `,_jsx(_components.a,{href:`/online-payments/3d-secure`,children:`3D Secure 2`}),`:`,_jsx(`br`,{}),`A strict `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP`,children:`Content Security Policy (CSP)`}),` can prevent native 3D Secure 2 challenges from being loaded on your website, because loading the 3D Secure 2 interface requires adding more URLs to your CSP. Adyen does not maintain a list of all URLs. You can specify to use the redirect flow when creating a session if you do not want to adjust your CSP.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Setup steps`})}),_jsxs(_components.td,{children:[`Make sure that you have done the following:`,_jsx(`br`,{}),_jsx(_components.a,{href:`/online-payments/integration-checklist#set-up-your-test-account`,children:`Set up your test account`}),`. `,_jsx(_components.a,{href:`/online-payments/integration-checklist#set-up-your-test-account`,children:`Got an overview of what is required before you accept live payments`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`install-api-library`,children:`Install Api Library`}),`\n`,_jsx(Heading,{level:`2`,id:`install-an-api-library`,children:`Install an API library`}),`\n`,_jsx(_components.p,{children:`Payment server`}),`\n`,_jsx(_components.p,{children:`We provide server-side API libraries for several programming languages, available through common package managers, like Gradle and npm, for easier installation and version management. Our API libraries will save you development time, because they:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Use an API version that is up to date.`}),`\n`,_jsx(_components.li,{children:`Have generated models to help you construct requests.`}),`\n`,_jsx(_components.li,{children:`Send the request to Adyen using their built-in HTTP client, so you do not have to create your own.`}),`\n`]}),`\n`,_jsxs(Tabs,{sync:false,children:[_jsxs(Tab,{title:`Java`,id:`java`,\"data-child-heading-ids\":`[\"requirements-2\",\"installation\",\"setting-up-the-client\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-java-spring-online-payments#checkout-example`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-java-spring-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-2`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Java 11 or later.`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use `,_jsx(_components.a,{href:`https://maven.apache.org`,children:`Maven`}),`, adding this dependency to your project’s POM.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`com.adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen-java-api-library`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`LATEST_VERSION`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`You can find the latest version on GitHub. Alternatively, you can download the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-java-api-library/releases`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`setting-up-the-client`,children:`Setting up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Import the required classes.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.service;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.Client;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.service.checkout.PaymentsApi;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.model.checkout.Amount;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.model.checkout.CreateCheckoutSessionRequest;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.model.checkout.CreateCheckoutSessionResponse;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.enums.Environment;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.adyen.service.exception.ApiException;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.io.IOException;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Snippet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Snippet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`throws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` IOException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`ApiException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ADYEN_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TEST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`PHP`,id:`php`,\"data-child-heading-ids\":`[\"requirements-3\",\"installation-2\",\"set-up-the-client\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-php-online-payments#run-this-integration-in-seconds-using-gitpod`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-php-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-3`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`PHP 7.3 or later.`}),`\n`,_jsx(_components.li,{children:`cURL with SSL support.`}),`\n`,_jsx(_components.li,{children:`The JSON PHP extension.`}),`\n`,_jsx(_components.li,{children:`The list of dependencies from the composer require list.`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-2`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use `,_jsx(_components.a,{href:`https://getcomposer.org/`,children:`Composer`}),`. Follow the `,_jsx(_components.a,{href:`https://getcomposer.org/doc/00-intro.md`,children:`installation instructions`}),` if you do not already have composer installed.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` adyen/php-api-library`})]}),`\n`]})})}),_jsx(_components.p,{children:`In your PHP script, make sure you include the autoloader:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Include the autoloader`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`require`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` __DIR__`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/vendor/autoload.php'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-php-api-library/releases`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`set-up-the-client`,children:`Set up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Adyen\\\\Model\\\\Checkout\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Amount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Adyen\\\\Model\\\\Checkout\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`CreateCheckoutSessionRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Adyen\\\\Service\\\\Checkout\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`PaymentsApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Include your idempotency key when you make an API request.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$requestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'idempotencyKey'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_IDEMPOTENCY_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\Adyen\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setXApiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ADYEN_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setEnvironment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`\\\\Adyen\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Environment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`TEST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$service`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentsApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),_jsxs(Tab,{title:_jsx(_Fragment,{children:`C#`}),id:`c%23`,\"data-child-heading-ids\":`[\"requirements-4\",\"installation-3\",\"set-up-the-client-2\"]`,children:[_jsx(Heading,{level:`4`,id:`requirements-4`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`.NET standard 2.0 or later.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`For Terminal API certificate validation, set the application to either of the following:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`.NET core 2.1 or later`}),`\n`,_jsx(_components.li,{children:`.NET framework 4.6.1 or later`}),`\n`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-3`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use `,_jsx(_components.a,{href:`https://www.nuget.org/packages/Adyen/`,children:`NuGet`}),`:`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`PM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Install-Package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -Version`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` LATEST_VERSION`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the\\xA0`,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-dotnet-api-library`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`set-up-the-client-2`,children:`Set up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Service`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Environment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Program`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Config`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` XApiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ADYEN_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Environment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Test`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentsService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Include your idempotency key when you make an API request.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` requestOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`RequestOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`IdempotencyKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_IDEMPOTENCY_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`NodeJS`,id:`nodejs`,\"data-child-heading-ids\":`[\"requirements-5\",\"installation-4\",\"setting-up-the-client-2\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-node-online-payments#checkout-example`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-node-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-5`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Node.js version 18 or later.`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-4`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use `,_jsx(_components.a,{href:`https://www.npmjs.com/`,children:`npm`}),`:`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @adyen/api-library`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @adyen/api-library`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-node-api-library/releases`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`setting-up-the-client-2`,children:`Setting up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Require the parts of the module you want to use.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`CheckoutAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`Types`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@adyen/api-library\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ADYEN_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`environment:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TEST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` checkoutApi`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` CheckoutAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Include your idempotency key when you make an API request.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` requestOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`idempotencyKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_IDEMPOTENCY_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Go`,id:`go`,\"data-child-heading-ids\":`[\"requirements-6\",\"installation-5\",\"set-up-the-client-3\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-golang-online-payments#run-this-integration-in-seconds-using-gitpod`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-golang-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-6`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Go 1.13 or later.`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-5`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use\\xA0`,_jsx(_components.a,{href:`https://github.com/golang/go/wiki/Modules`,children:`Go modules`}),`:`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` github.com/adyen/adyen-go-api-library/vLATEST_VERSION`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the\\xA0`,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-go-api-library`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`set-up-the-client-3`,children:`Set up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/adyen/adyen-go-api-library/vLATEST_VERSION/src/adyen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/adyen/adyen-go-api-library/vLATEST_VERSION/src/checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/adyen/adyen-go-api-library/vLATEST_VERSION/src/common`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create a payment object.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tclient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`common`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tApiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ADYEN_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tEnvironment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`common`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TestEnv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tservice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Python`,id:`python`,\"data-child-heading-ids\":`[\"requirements-7\",\"installation-6\",\"set-up-the-client-4\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-python-online-payments#run-this-integration-in-seconds-using-gitpod`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-python-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-7`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Python 3.6 or later.`}),`\n`,_jsx(_components.li,{children:`(Optional) Packages: Requests or PycURL`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-6`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use\\xA0`,_jsx(_components.a,{href:`https://pip.pypa.io/en/stable/`,children:`pip`}),`:`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`pip install Adyen`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the\\xA0`,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-python-api-library`,children:`release on GitHub`}),`.`]}),_jsx(Heading,{level:`4`,id:`set-up-the-client-4`,children:`Set up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Adyen`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Adyen.Adyen()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen.client.xapikey `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ADYEN_API_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen.client.platform `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"test\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # The environment that the library is used in.`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Ruby`,id:`ruby`,\"data-child-heading-ids\":`[\"requirements-8\",\"installation-7\",\"set-up-the-client-5\",\"create-a-session\",\"api-error-handling\",\"prepare-front-end\",\"prepare-your-front-end\",\"get-adyen-web\",\"install-adyen-web\"]`,children:[_jsx(_components.h5,{children:`Try our example integration`}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-start mint-gap-2`,children:[_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{src:`/images/gitpod.svg`,className:`!mint-my-0`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-rails-online-payments#run-this-integration-in-seconds-using-gitpod`,children:`Run it in Gitpod`}),`.`]})]}),_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-2`,children:[_jsx(Icon,{icon:`github`,iconType:`brands`}),_jsxs(`span`,{children:[_jsx(`a`,{href:`https://github.com/adyen-examples/adyen-rails-online-payments`,children:`Clone the repository`}),`.`]})]})]}),_jsx(Heading,{level:`4`,id:`requirements-8`,children:`Requirements`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Ruby 2.7 or later.`}),`\n`]}),_jsx(Heading,{level:`4`,id:`installation-7`,children:`Installation`}),_jsxs(_components.p,{children:[`You can use `,_jsx(_components.a,{href:`https://rubygems.org/`,children:`RubyGems`}),`:`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install the API library`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gem`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` adyen-ruby-api-library`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Alternatively, you can download the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-ruby-api-library/releases`,children:`release on GitHub`}),`.`]}),_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`bundle install`}),` to install dependencies.`]}),_jsx(Heading,{level:`4`,id:`set-up-the-client-5`,children:`Set up the client`}),_jsx(_components.p,{children:`Create a singleton resource that you use for the API requests to Adyen:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set up your client`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'adyen-ruby-api-library'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Set up the client and service.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`adyen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Adyen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ADYEN_API_KEY'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`adyen.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` :test`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # The environment that the library is used in.`})]}),`\n`]})})}),_jsx(Heading,{level:`2`,id:`create-a-session`,children:`Create a session`}),_jsx(_components.p,{children:`Payment server`}),_jsx(_components.p,{children:`A payment session is a resource with information about a payment flow initiated by the shopper. This resource has all the information required to handle all the stages of a payment flow. You can configure this resource with information like available payment methods, payment amount, or line items.`}),_jsxs(_components.p,{children:[`To create a payment session, make a `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions`,children:`/sessions`}),` request, including:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter name`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`merchantAccount`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`Your merchant account name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The\\xA0`,_jsx(_components.code,{children:`currency`}),`\\xA0and\\xA0`,_jsx(_components.code,{children:`value`}),`\\xA0of the payment, in `,_jsx(_components.a,{href:`/development-resources/currency-codes`,children:`minor units`}),`. This is used to filter the list of available payment methods to your shopper.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`returnUrl`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`URL to where the shopper should be taken back to after a redirection. If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. The URL must not include personally identifiable information (PII), for example name or email address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`Your unique reference for the payment. Minimum length: three characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`countryCode`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The shopper’s country code. This is used to filter the list of available payment methods to your shopper. If not set, setting the `,_jsx(_components.code,{children:`locale`}),` is required in the front-end `,_jsx(_components.a,{href:`#configure`,children:`global configuration`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`channel`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The platform where the payment is taking place. Use `,_jsx(_components.strong,{children:`Web`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expiresAt`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The session expiry date in ISO8601 format, for example `,_jsx(_components.strong,{children:`2023-11-23T12:25:28Z`}),`, or `,_jsx(_components.strong,{children:`2023-05-27T20:25:28+08:00`}),`. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shopperLocale`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The language that the payment methods will appear in if the `,_jsx(_components.code,{children:`locale`}),` in your front-end `,_jsx(_components.a,{href:`#configure`,children:`global configuration`}),` isn’t set. Set it to the shopper’s language and country code. The default is `,_jsx(_components.strong,{children:`en-US`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shopperEmail`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The shopper’s email address. Strongly recommended because this field is used in a number of `,_jsx(_components.a,{href:`/risk-management/configure-your-risk-profile/risk-field-reference`,children:`risk checks`}),`, and for 3D Secure.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shopperReference`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Your reference to uniquely identify this shopper. Strongly recommended because this field is used in a number of `,_jsx(_components.a,{href:`/risk-management/configure-your-risk-profile/risk-field-reference`,children:`risk checks`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/partners/application-information`,children:_jsx(_components.code,{children:`applicationInfo`})})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`If you are building an Adyen solution for multiple merchants, include some basic identifying information, so that we can offer you better support.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-authenticationData-threeDSRequestData-nativeThreeDS`,children:`nativeThreeDS`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`When set to `,_jsx(_components.strong,{children:`disabled`}),`, the redirect flow is used for `,_jsx(_components.a,{href:`/online-payments/3d-secure`,children:`3D Secure 2 authentication`}),`. This lets you use the redirect flow to avoid adjusting your `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP`,children:`Content Security Policy (CSP)`}),` to load the 3D Secure 2 interfaces.`]})]})]})]}),_jsxs(_components.p,{children:[`Here is an example of how to create a session for a payment of `,_jsx(_components.strong,{children:`10`}),` EUR:`]}),_jsx(_components.p,{children:`The response contains:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sessionData`}),`: the payment session data you need to pass to your front end.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`id`}),`: a unique identifier for the session data.`]}),`\n`,_jsx(_components.li,{children:`The request body.`}),`\n`]}),_jsx(Heading,{level:`3`,id:`api-error-handling`,children:`API error handling`}),_jsxs(_components.p,{children:[`If you do not get an HTTP 201 response, use the `,_jsx(_components.code,{children:`errorCode`}),` field and the list of `,_jsx(_components.a,{href:`/development-resources/error-codes`,children:`API error codes`}),` to troubleshoot.`]}),_jsx(Heading,{level:`3`,id:`prepare-front-end`,children:`Prepare Front End`}),_jsx(Heading,{level:`2`,id:`prepare-your-front-end`,children:`Prepare your front end`}),_jsx(_components.p,{children:`Client website`}),_jsx(_components.p,{children:`Use a Component to show each available payment method, and to collect payment details from your shoppers.`}),_jsx(Heading,{level:`3`,id:`get-adyen-web`,children:`Get Adyen Web`}),_jsx(Heading,{level:`3`,id:`install-adyen-web`,children:`Install Adyen Web`}),_jsx(_components.p,{children:`Use the Adyen Web npm package, or embed the Adyen Web script and stylesheet into your HTML file:`})]}),_jsxs(Tab,{title:`npm (recommended)`,id:`npm-recommended`,children:[_jsxs(_components.p,{children:[`Install the `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@adyen/adyen-web`,children:`Adyen Web Node package`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @adyen/adyen-web`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`})]}),`\n`]})})}),_jsx(_components.p,{children:`Import Adyen Web into your application.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AdyenCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Card`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@adyen/adyen-web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@adyen/adyen-web/styles/adyen.css'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Embed script and stylesheet`,id:`embed-script-and-stylesheet`,\"data-child-heading-ids\":`[\"create-dom-element\",\"create-a-dom-element-for-the-component\",\"configure-and-create-instances\",\"create-the-component\",\"create-your-instance-of-adyencheckout\",\"create-your-instance-of-components\",\"components-methods\",\"optional-localization-optional\",\"localization\",\"supported-languages\",\"change-the-language\",\"customize-the-localization\",\"create-your-custom-localization\",\"text-direction\",\"handle-the-payment\",\"handle-the-redirect-result\",\"handle-the-redirect\",\"get-the-outcome\",\"get-the-payment-outcome\",\"inform-the-shopper\",\"optional%3A-get-the-result-of-the-payment-session-on-your-server\",\"update-your-order-management-system\",\"test-and-go-live\",\"staying-up-to-date\",\"next-steps\",\"see-also\"]`,children:[_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`integrity`}),` attribute so browsers can verify that the script and stylesheet have not been changed unexpectedly.`]}),_jsxs(_components.p,{children:[`The value of the `,_jsx(_components.code,{children:`integrity`}),` attribute is the `,_jsx(_components.a,{href:`/online-payments/web-best-practices#implement-subresource-integrity-hashes`,children:`Subresource Integrity (SRI) hash`}),` which Adyen provides for each version of the Adyen Web JavaScript and CSS files.`]}),_jsxs(_components.p,{children:[`Get the SRI hashes in the `,_jsx(_components.a,{href:`/online-payments/release-notes`,children:`release notes`}),`, under `,_jsx(_components.strong,{children:`Updating to this version`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`checkout.html`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\u003c!-- Embed the Adyen Web script element above any other JavaScript in your checkout page. -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://checkoutshopper-test.cdn.adyen.com/sdk/VERSION/adyen.js\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` integrity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"JS_INTEGRITY_HASH_FOR_YOUR_VERSION\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` crossorigin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"anonymous\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\u003c!-- Embed the Adyen Web stylesheet. You can add your own styling by overriding the rules in the CSS file -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`link`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` rel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stylesheet\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` href`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://checkoutshopper-test.cdn.adyen.com/checkoutshopper/sdk/VERSION/adyen.css\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` integrity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CSS_INTEGRITY_HASH_FOR_YOUR_VERSION\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` crossorigin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"anonymous\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Components resources are available on the `,_jsx(_components.code,{children:`window`}),` global variable.`]}),_jsx(Heading,{level:`3`,id:`create-dom-element`,children:`Create Dom Element`}),_jsx(Heading,{level:`3`,id:`create-a-dom-element-for-the-component`,children:`Create a DOM element for the Component`}),_jsxs(_components.p,{children:[`Create a DOM container element on your checkout page where you want the Component to be rendered and give it a descriptive `,_jsx(_components.code,{children:`id`}),`. We strongly recommend that you do not put it in an `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe`,children:`iframe element`}),`, because it may cause issues.`]}),_jsx(_components.p,{children:`For example, if you are implementing the Card Component:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Create a DOM element`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"card-container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(_components.p,{children:`If you are using JavaScript frameworks such as Vue or React, make sure that you use references instead of selectors and that you do not re-render the DOM element.`}),_jsx(Heading,{level:`3`,id:`configure-and-create-instances`,children:`Configure And Create Instances`}),_jsx(Heading,{level:`2`,id:`create-the-component`,children:`Create the Component`}),_jsx(_components.p,{children:`Client website`}),_jsx(_components.p,{children:`Components consists of:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`AdyenCheckout`}),`: represents one payment and is linked to a payment session, environment, and amount to be paid.`]}),`\n`,_jsx(_components.li,{children:`Components: represent the payment method-specific interface a shopper completes their payment with.`}),`\n`]}),_jsxs(_components.p,{children:[`With the `,_jsx(_components.code,{children:`AdyenCheckout`}),` instance, you can create one or multiple Components.`]}),_jsx(Heading,{level:`3`,id:`create-your-instance-of-adyencheckout`,children:`Create your instance of AdyenCheckout`}),_jsxs(_components.p,{children:[`Create a global configuration object that you use to create the instance of `,_jsx(_components.code,{children:`AdyenCheckout`}),`. The object contains configuration parameters and event handlers.`]}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add configuration parameters.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter name`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`session`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The payment session object from your call to `,_jsx(_components.code,{children:`/sessions`}),`. Contains a `,_jsx(_components.code,{children:`session.id`}),` and `,_jsx(_components.code,{children:`session.sessionData`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`environment`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.strong,{children:`test`}),`. When you are ready to accept live payments, change the value to one of our `,_jsx(_components.a,{href:`#test-and-go-live`,children:`live environments`}),`.\\xA0`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`An object representing the amount to be displayed on the `,_jsx(_components.strong,{children:`Pay`}),` Button. Its properties are `,_jsx(_components.code,{children:`value`}),` (the amount in the currencies smallest unit, for example cents for EUR) and `,_jsx(_components.code,{children:`currency`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`countryCode`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`The shopper’s country code. This is used to filter the list of available payment methods to your shopper.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`locale`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The language used in the the Component UI. For possible values, see the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-web/tree/main/packages/server/translations`,children:`list of available languages`}),`. By default, this is the either the `,_jsx(_components.code,{children:`shopperLocale`}),` from your `,_jsx(_components.code,{children:`/sessions`}),` request or, if this locale is not available on Components, `,_jsx(_components.strong,{children:`en-US`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`showPayButton`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Shows or hides a `,_jsx(_components.strong,{children:`Pay`}),` Button for each payment method. Defaults to `,_jsx(_components.strong,{children:`true`}),`. The `,_jsx(_components.strong,{children:`Pay`}),` button triggers the `,_jsx(_components.code,{children:`onSubmit`}),` event when payment details are valid. If you want to disable the button and then trigger the submit flow on your own, set this to `,_jsx(_components.strong,{children:`false`}),` and call the `,_jsx(_components.code,{children:`.submit()`}),` method from your own button implementation. PayPal Smart Payment Buttons doesn’t support the `,_jsx(_components.code,{children:`.submit()`}),` method.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`secondaryAmount`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Shows the payment amount in an additional currency on the `,_jsx(_components.strong,{children:`Pay`}),` button. You must do the currency conversion and set the amount. This object has properties:`,_jsx(`br`,{}),_jsx(_components.code,{children:`currency`}),`: The three-character `,_jsx(_components.a,{href:`/development-resources/currency-codes`,children:`ISO currency code`}),`. `,_jsx(_components.code,{children:`value`}),`: The amount of the transaction, in `,_jsx(_components.a,{href:`/development-resources/currency-codes`,children:`minor units`}),`. `,_jsx(_components.code,{children:`currencyDisplay`}),`: Sets the `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay`,children:`currency formatting`}),`. Default: `,_jsx(_components.strong,{children:`symbol`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{}),_jsx(_components.td,{}),_jsx(_components.td,{})]})]})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add event handlers, to handle events that get triggered during the payment.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event handler name`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onPaymentCompleted(result, component)`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`Create an event handler, called when the payment is completed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onPaymentFailed(result, component)`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`Create an event handler, called when the payment failed. A failed payment has result code `,_jsx(_components.strong,{children:`Cancelled`}),`, `,_jsx(_components.strong,{children:`Error`}),` or `,_jsx(_components.strong,{children:`Refused`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onError(error)`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Create an event handler, called when an error occurs in Components.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beforeSubmit(data, component, actions)`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Create an event handler, called when the shopper selects the `,_jsx(_components.strong,{children:`Pay`}),` button. Do not use if you are implementing an `,_jsx(_components.a,{href:`/online-payments/build-your-integration#supported-use-cases`,children:`additional use case`}),`. Allows you to add parameters to the payment request that the Component makes. For example, you can add shopper details like `,_jsxs(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-billingAddress`,children:[_jsx(_components.code,{children:`billingAddress`}),` `]}),`, `,_jsxs(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-deliveryAddress`,children:[_jsx(_components.code,{children:`deliveryAddress`}),` `]}),`, `,_jsxs(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/payments#request-shopperEmail`,children:[_jsx(_components.code,{children:`shopperEmail`}),` `]}),`, or `,_jsxs(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/payments#request-shopperName`,children:[_jsx(_components.code,{children:`shopperName`}),` `]}),`. When the `,_jsx(_components.code,{children:`beforeSubmit`}),` event is triggered, you need to continue or stop the payment flow using methods available in the event handler:`,_jsx(`br`,{}),`Continue the payment flow (`,_jsx(_components.code,{children:`actions.resolve()`}),`): You should call the `,_jsx(_components.code,{children:`actions.resolve()`}),` method regardless of the `,_jsx(_components.code,{children:`resultCode`}),`, including when the payment is unsuccessful. Stop the payment flow (`,_jsx(_components.code,{children:`actions.reject()`}),`): Stop the payment flow only when your server-side API request to Adyen failed, or when experiencing network connection issues.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onSubmit(state, component, actions)`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Required if you need to `,_jsx(_components.a,{href:`/online-payments/build-your-integration#supported-use-cases`,children:`update the payment amount after rendering the Component`}),`. For this additional use case, you need to integrate additional endpoints. Creates an event handler, called when the shopper selects the `,_jsx(_components.strong,{children:`Pay`}),` button and payment details are valid. When the `,_jsx(_components.code,{children:`onSubmit`}),` event is triggered, you need to continue or stop the payment flow using methods available in the event handler:`,_jsx(`br`,{}),`Continue the payment flow (`,_jsx(_components.code,{children:`actions.resolve()`}),`): You should call the `,_jsx(_components.code,{children:`actions.resolve()`}),` method regardless of the `,_jsx(_components.code,{children:`resultCode`}),`, including when the payment is unsuccessful. Stop the payment flow (`,_jsx(_components.code,{children:`actions.reject()`}),`): Stop the payment flow only when your server-side API request to Adyen failed, or when experiencing network connection issues.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:``}),_jsx(_components.code,{children:`onActionHandled`})]}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Create an event handler, called when an action, for example a QR code or 3D Secure 2 authentication screen, is shown to the shopper. The following `,_jsx(_components.code,{children:`action.type`}),` values trigger this callback:`,_jsx(`br`,{}),_jsx(_components.code,{children:`threeDS`}),` `,_jsx(_components.code,{children:`qr`}),` `,_jsx(_components.code,{children:`await`}),`Returns data that contains:`,_jsx(`br`,{}),_jsx(_components.code,{children:`componentType`}),`: The type of component that shows the action to the shopper. `,_jsx(_components.code,{children:`actionDescription`}),`: A description of the action shown to the shopper.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onAdditionalDetails(state, component, actions)`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Required if you need to `,_jsx(_components.a,{href:`/online-payments/build-your-integration#supported-use-cases`,children:`confirm an additional action on your server`}),`. For this additional use case, you need to integrate additional endpoints. Create an event handler, called when a payment method requires more details, for example for native 3D Secure 2, or native QR code payment methods.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onChange(state, component)`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Create an event handler, called when a change happens in the payment form.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`If an error occurs, the `,_jsx(_components.code,{children:`onError`}),` event returns an object which contains details about the error:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error.name`})}),_jsxs(_components.td,{children:[`The type of error. Use the values it returns to configure localized error messages for your shoppers:`,_jsx(`br`,{}),_jsx(_components.strong,{children:`NETWORK_ERROR`}),`: a call that the Component made to the server has failed, for example because of a timeout, or if there is missing information in the request. Ask the shopper to try again. `,_jsx(_components.strong,{children:`CANCEL`}),`: the shopper canceled the payment. Only applies for payment methods that allow explicit cancellation in the UI, for example Apple Pay or PayPal. `,_jsx(_components.strong,{children:`IMPLEMENTATION_ERROR`}),`: the method or parameter is incorrect or not supported. `,_jsx(_components.strong,{children:`ERROR`}),`: generic catch-all error. Tell the shopper something went wrong and ask them to try paying again, maybe with a different payment method.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error.message`})}),_jsxs(_components.td,{children:[`Gives more information for each type of error. The message is technical so you shouldn’t show it to your shoppers. For `,_jsx(_components.code,{children:`error.name`}),`: `,_jsx(_components.strong,{children:`NETWORK_ERROR`}),`, the information in the `,_jsx(_components.code,{children:`message`}),` field depends on the environment:`,_jsx(`br`,{}),_jsx(_components.strong,{children:`test`}),`: you get a message with a `,_jsx(_components.a,{href:`/development-resources/error-codes#generic-error-codes`,children:`generic error code`}),` to help you troubleshoot. `,_jsx(_components.strong,{children:`live`}),`: the message from the response.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`component`})}),_jsxs(_components.td,{children:[`The name of the variable where you `,_jsx(_components.a,{href:`#create-and-mount-instance`,children:`created the instance of the Component`}),`, for example `,_jsx(_components.strong,{children:`cardComponent`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`error`}),` object may contain additional fields inherited from the `,_jsxs(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error`,children:[_jsx(_components.code,{children:`Error()`}),` constructor`]}),`.`]}),`\n`,_jsx(_components.p,{children:`Combine the configuration parameters and event handlers into your global configuration object.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Create a global configuration object`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` globalConfiguration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` session:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'CSD9CAC3...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Unique identifier for the payment session.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sessionData:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Ab02b4c...'`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // The payment session data.`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` environment:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'test'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Change to 'live' for the live environment.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` value:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` currency:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'EUR'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` locale:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'nl-NL'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` countryCode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'NL'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clientKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'test_870be2...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Public key used for client-side authentication: https://docs.adyen.com/development-resources/client-side-authentication`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onPaymentCompleted`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onPaymentFailed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Use this global configuration object to create an instance of `,_jsx(_components.code,{children:`AdyenCheckout`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Create an instance of AdyenCheckout`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// All of the resources that you imported are properties of the window.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// In this example you imported Card.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`AdyenCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`Card`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AdyenWeb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AdyenCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`globalConfiguration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Initializing in a reactive framework`}),_jsx(_components.br,{}),`\n`,`Modern frameworks can re-render UI components, which can cause unexpected behavior in the checkout. As a rule, `,_jsxs(_components.a,{href:`/online-payments/web-best-practices#handle-web-framework-re-renders`,children:[`initialize `,_jsx(_components.code,{children:`AdyenCheckout`}),` and mount your Components only once`]}),` when you are ready to display the payment methods.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`create-your-instance-of-components`,children:`Create your instance of Components`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Optionally create another configuration object for the Component. For some payment methods, you must add additional configuration. You can also add optional configuration for some payment methods. For example, you can add `,_jsx(_components.a,{href:`/payment-methods/cards/web-drop-in#optional-configurationn`,children:`additional configuration for cards`}),`.`,_jsx(_components.a,{href:``})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Payment method configuration`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cardConfiguration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Optional configuration.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` billingAddressRequired:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Show the billing address input fields and mark them as required.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` brandsConfiguration:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` visa:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`icon:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Custom icon for Visa.`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Configuration for payment methods overrides global configuration. In the following example, the `,_jsx(_components.code,{children:`onError()`}),` configuration for `,_jsx(_components.code,{children:`card`}),` overrides the global `,_jsx(_components.code,{children:`onError()`}),` configuration.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Override global configuration`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Global configuration object.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` globalConfiguration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Global configuration for onError.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Card configuration object.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` componentConfiguration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // onError configuration for card payments. Overrides the global configuration.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`paymentMethodsResponse`}),` property of the `,_jsx(_components.code,{children:`AdyenCheckout`}),` instance to check the available payment methods.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If the payment method is available, create an instance of the Component and mount it to the `,_jsx(_components.a,{href:`#create-container-element`,children:`container element`}),` you created.`]}),`\n`,_jsxs(_components.p,{children:[`The Component you use depends on the payment method. You can find which Component to use for which payment method on the `,_jsx(_components.a,{href:`/payment-methods`,children:`payment method pages`}),`. For example, for cards, use `,_jsx(_components.code,{children:`Card`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`checkout.js`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1. Check the available payment methods from the AdyenCheckout instance.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paymentMethodsResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// => { paymentMethods: [...], storedPaymentMethods: [...] }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 2. Create an instance of the Component and mount it to the container you created.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cardComponent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Card`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cardConfiguration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'#card-container'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The Github repository also includes a `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-web/blob/main/packages/lib/src/components/components-name-map.ts`,children:`Components map`}),` that shows which payment methods use which Components.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`3`,id:`components-methods`,children:`Components methods`}),_jsxs(_components.p,{children:[`The following methods are available on `,_jsx(_components.a,{href:`#create-instance`,children:`your instance of Components`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method name`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mount(selector)`})}),_jsxs(_components.td,{children:[`Mounts the the Component into the DOM returned by the `,_jsx(_components.code,{children:`selector`}),`. The `,_jsx(_components.code,{children:`selector`}),` must be either a `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector#parameters`,children:`valid CSS selector string`}),` or an `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement`,children:`HTMLElement`}),` reference.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unmount()`})}),_jsx(_components.td,{children:`Unmounts the the Component from the DOM. We recommend to unmount in case the payment amount changes after the initial mount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`update()`})}),_jsx(_components.td,{children:`Updates the properties and remounts the Component into the DOM, for example, if you want to change the properties of the configuration object after the Component is mounted.`})]})]})]}),_jsx(Heading,{level:`3`,id:`optional-localization-optional`,children:`Optional Localization (optional)`}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`3`,id:`localization`,children:`Localization`}),_jsx(Heading,{level:`4`,id:`supported-languages`,children:`Supported languages`}),_jsxs(_components.p,{children:[`We include UI localizations for some languages. The fields and text are in the `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-web/tree/main/packages/server/translations`,children:`files for the included locales`}),`.`]}),_jsxs(_components.p,{children:[`To use a language or localization that isn’t included, `,_jsx(_components.a,{href:`#create-localization`,children:`create your own`}),`.`]}),_jsx(Heading,{level:`4`,id:`change-the-language`,children:`Change the language`}),_jsxs(_components.p,{children:[`The language of the UI is based on the `,_jsx(_components.code,{children:`locale`}),` set when creating your instance of `,_jsx(_components.code,{children:`AdyenCheckout`}),`.`]}),_jsxs(_components.p,{children:[`If no `,_jsx(_components.code,{children:`locale`}),` is set when creating an instance of `,_jsx(_components.code,{children:`AdyenCheckout`}),`, the language displayed matches the `,_jsx(_components.code,{children:`shopperLocale`}),` from your `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions`,children:`/sessions`}),` request.`]}),_jsx(_components.p,{children:`If neither language is set or supported, the UI language defaults to US English.`}),_jsx(Heading,{level:`4`,id:`customize-the-localization`,children:`Customize the localization`}),_jsx(_components.p,{children:`The text displayed in each localization can be customized, allowing you to replace the default text with your own.`}),_jsx(_components.p,{children:`To customize a localization:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a\\xA0`,_jsx(_components.code,{children:`translations`}),`\\xA0object on your payments page.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In this object, specify the `,_jsx(_components.code,{children:`locale`}),` you want to customize, and add key-value pairs corresponding to any text you want to customize.`]}),`\n`,_jsxs(_components.p,{children:[`The following example shows how to customize the US English (`,_jsx(_components.code,{children:`en-US`}),`) translation so that:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Shipping Address`}),`\\xA0appears instead of `,_jsx(_components.strong,{children:`Delivery Address`}),` (the default `,_jsx(_components.strong,{children:`en-US`}),` text).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`State`}),`\\xA0appears instead of\\xA0`,_jsx(_components.strong,{children:`State or Province`}),` (the default `,_jsx(_components.strong,{children:`en-US`}),` text).`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Customize translations`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` translations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"en-US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"deliveryAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Shipping Address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stateOrProvince\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"State\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To use the customized localization in your payment form, provide the following parameters in the `,_jsxs(_components.a,{href:`#configure`,children:[_jsx(_components.code,{children:`configuration`}),` object`]}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter name`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`locale`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`locale`}),` you customized in the previous step.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`translations`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.strong,{children:`translations`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The following example shows how to use a customized `,_jsx(_components.strong,{children:`en-US`}),` localization in Drop-in.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example of US English localization`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` configuration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` locale:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"en-US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` translations:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` translations`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`4`,id:`create-your-custom-localization`,children:`Create your custom localization`}),_jsx(_components.p,{children:`To use a language or localization that we do not included, create your own.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a\\xA0`,_jsx(_components.code,{children:`translations`}),`\\xA0object on your payments page.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In this object, specify the `,_jsx(_components.code,{children:`locale`}),` you want to create. For example, you can use the locale `,_jsx(_components.strong,{children:`nl-BE`}),` to create a Belgian Dutch localization, and add key-value pairs corresponding to text shown in the UI.`]}),`\n`,_jsxs(_components.p,{children:[`The example below shows a `,_jsx(_components.code,{children:`translation`}),` object for creating a `,_jsx(_components.strong,{children:`nl-BE`}),` localization.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`British English translations example`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` translations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nl-BE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentMethods.moreMethodsButton\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Meer betaalmethoden\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payButton\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Betaal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"storeDetails\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bewaar voor mijn volgende betaling\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The ellipsis (…) in the `,_jsx(_components.code,{children:`translations`}),` object above indicate the code sample isn’t complete. For missing key-value pairs in your configuration, the translation defaults to `,_jsx(_components.strong,{children:`en-US`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To use your localization in your payment form, provide the following parameters in the `,_jsxs(_components.a,{href:`#configure`,children:[_jsx(_components.code,{children:`configuration`}),` object`]}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter name`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`locale`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`locale`}),` you created in the previous step.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`translations`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.strong,{children:`translations`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The example below shows how to use a created localization for `,_jsx(_components.strong,{children:`nl-BE`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` configuration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` locale:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nl-BE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` translations:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` translations`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AdyenCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`4`,id:`text-direction`,children:`Text direction`}),_jsxs(_components.p,{children:[`The default text direction is left-to-right. Text direction is independent from the `,_jsx(_components.code,{children:`locale`}),` you set in the `,_jsx(_components.code,{children:`configuration`}),` object. So even if you set the locale to a right-to-left language, like Arabic, you still need to set the text direction.`]}),_jsxs(_components.p,{children:[`To change the text direction to right-to-left, use the `,_jsxs(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir`,children:[`HTML `,_jsx(_components.code,{children:`dir`}),` attribute`]}),` on the parent element for the checkout container.`]}),_jsx(Heading,{level:`2`,id:`handle-the-payment`,children:`Handle the payment`}),_jsx(_components.p,{children:`Client website`}),_jsx(_components.p,{children:`When you create and mount the Component, the shopper interacts with the interface to complete the payment. The whole payment flow is handled by the Component you configured and created, except for when a redirect happens.`}),_jsx(Heading,{level:`3`,id:`handle-the-redirect-result`,children:`Handle The Redirect Result`}),_jsx(Heading,{level:`3`,id:`handle-the-redirect`,children:`Handle the redirect`}),_jsxs(_components.p,{children:[`Some payment methods, like iDEAL and some 3D Secure flows, will redirect the shopper back to your website. When the shopper comes back to your website, show them the payment result, based on the result code. To get the `,_jsx(_components.code,{children:`resultCode`}),`, you can either:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Create an instance of `,_jsx(_components.code,{children:`AdyenCheckout`}),` after the redirect, as described below.`]}),`\n`,_jsxs(_components.li,{children:[`Confirm the redirect result on your server, for which you need to `,_jsx(_components.a,{href:`/online-payments/build-your-integration`,children:`implement an extra API endpoint`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`The shopper comes back to the `,_jsx(_components.code,{children:`returnUrl`}),` specified when `,_jsx(_components.a,{href:`#create-payment-session`,children:`creating the payment session`}),`. The `,_jsx(_components.code,{children:`returnUrl`}),` has query parameters appended to it, which you need to handle the redirect:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sessionId`}),`: the unique identifier for the shopper’s payment session.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`redirectResult`}),`: details you need to submit to handle the redirect.`]}),`\n`]}),_jsxs(_components.p,{children:[`If the shopper doesn’t return to you website, you do not get a `,_jsx(_components.code,{children:`redirectResult`}),`. You do not need to do anything to handle the redirect in this case. Instead, wait for the `,_jsx(_components.a,{href:`#get-payment-outcome`,children:`webhook`}),` that we send to your server.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example return URL`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`// The return URL has query parameters related to the payment session.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://your-company.example.com/?sessionId=CSD9CAC34EBAE225DD\u0026redirectResult=X6XtfGC3!Y...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Extract the values from the query string parameters and create a function which handles the redirect result. The function needs to:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create an instance of Adyen Checkout using the `,_jsx(_components.code,{children:`sessionId`}),` value you extracted.`]}),`\n`,_jsxs(_components.li,{children:[`Submit the `,_jsx(_components.code,{children:`redirectResult`}),` value you extracted from the `,_jsx(_components.code,{children:`returnUrl`}),`.`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`handleRedirectResult`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create an instance of AdyenCheckout to handle the shopper returning to your website.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Configure the instance with the sessionId you extracted from the returnUrl.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AdyenCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Submit the redirectResult value you extracted from the returnUrl.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`submitDetails`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`details:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`redirectResult:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` redirectResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } });`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`If the shopper doesn’t return to your website, do not call `,_jsx(_components.code,{children:`submitDetails`}),`, because the result doesn’t change when you attempt the request.`]}),_jsxs(_components.p,{children:[`After you submit the `,_jsx(_components.code,{children:`redirectResult`}),` value, the Component calls the `,_jsx(_components.code,{children:`onPaymentCompleted(result, component)`}),` event. Use the `,_jsx(_components.a,{href:`/online-payments/build-your-integration/payment-result-codes#final-payment-status`,children:`result code`}),` in `,_jsx(_components.code,{children:`result.resultCode`}),` to inform the shopper.`]}),_jsxs(_components.p,{children:[`To update your order management system, wait for the `,_jsx(_components.a,{href:`#update-your-order-management-system`,children:`webhook`}),` that we send to your server.`]}),_jsx(Heading,{level:`3`,id:`get-the-outcome`,children:`Get The Outcome`}),_jsx(Heading,{level:`2`,id:`get-the-payment-outcome`,children:`Get the payment outcome`}),_jsx(_components.p,{children:`After the Component finishes the payment flow, you can show the shopper the current payment status. Adyen sends a webhook with the outcome of the payment.`}),_jsx(Heading,{level:`3`,id:`inform-the-shopper`,children:`Inform the shopper`}),_jsx(_components.p,{children:`Client website`}),_jsxs(_components.p,{children:[`Depending on whether the payment was successful, the `,_jsx(_components.code,{children:`onPaymentCompleted`}),` or `,_jsx(_components.code,{children:`onPaymentFailed`}),` event is triggered.`]}),_jsxs(_components.p,{children:[`From the relevant event, you can get the `,_jsxs(_components.a,{href:`/online-payments/build-your-integration/payment-result-codes#final-state-result-codes`,children:[_jsx(_components.code,{children:`resultCode`}),` `]}),`to inform the shopper about the current payment status.`]}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`3`,id:`optional-get-the-result-of-the-payment-session-on-your-server`,children:`Optional: Get the result of the payment session on your server`}),_jsx(_components.p,{children:`Payment server`}),_jsx(_components.p,{children:`You can also get the result of the payment session on your server.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Get the `,_jsx(_components.code,{children:`id`}),` from the `,_jsxs(_components.a,{href:`#sessions-response`,children:[_jsx(_components.code,{children:`/sessions`}),` response`]}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Get `,_jsx(_components.code,{children:`sessionResult`}),` from the `,_jsx(_components.code,{children:`onPaymentCompleted`}),` or `,_jsx(_components.code,{children:`onPaymentFailed`}),` event.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Make a `,_jsx(_components.strong,{children:`GET`}),` `,_jsx(_components.code,{children:`/sessions/{id}?sessionResult={sessionResult}`}),` request including the `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`sessionResult`}),`. For example:`]}),`\n`,_jsxs(_components.p,{children:[`The response includes the result of the payment session (`,_jsx(_components.code,{children:`status`}),`). For example:`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response with result of the payment session`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"additionalData\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CSD9CAC34EBAE225DD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scheme\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pspReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TG9SNBJJNXRKDM92\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resultCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorised\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_PAYMENT_REFERENCE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/get/sessions/(sessionId)#responses-200-additionalData`,children:`additionalData`}),` attributes in the response depend on the type of payment made.`]}),`\n`,_jsx(_components.p,{children:`Possible statuses:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`completed`})}),_jsx(_components.td,{children:`The shopper completed the payment. This means that the payment was authorized.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`paymentPending`})}),_jsx(_components.td,{children:`The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`canceled`})}),_jsx(_components.td,{children:`The shopper canceled the payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`expired`})}),_jsxs(_components.td,{children:[`The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this `,_jsx(_components.code,{children:`sessionId`}),`.`]})]})]})]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`status`}),` included in the response doesn’t get updated. Do not make the request again to check for payment status updates. Instead, check webhooks or the `,_jsx(_components.strong,{children:`Transactions`}),` list in your `,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`Customer Area`}),`.`]}),_jsx(Heading,{level:`3`,id:`update-your-order-management-system`,children:`Update your order management system`}),_jsx(_components.p,{children:`Webhook server`}),_jsxs(_components.p,{children:[`You get the outcome of each payment asynchronously, in an `,_jsx(_components.strong,{children:`AUTHORISATION`}),` `,_jsx(_components.a,{href:`/development-resources/webhooks`,children:`webhook`}),`. Use the `,_jsx(_components.code,{children:`merchantReference`}),` from the webhook to match it to your order reference.`,_jsx(_components.br,{}),`\n`,`For a successful payment, the event contains `,_jsx(_components.code,{children:`success`}),`: `,_jsx(_components.strong,{children:`true`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example webhook for a successful payment`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"live\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"notificationItems\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"NotificationRequestItem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AUTHORISATION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantAccountCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_MERCHANT_ACCOUNT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"033899:1111:03/2030\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"operations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CANCEL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CAPTURE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"REFUND\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"true\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"additionalData\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiryDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"03/2030\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"033899\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardBin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"411111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardSummary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CSF46729982237A879\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_REFERENCE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pspReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NC6HT9CRT65ZGN82\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2021-09-13T14:10:22+02:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`For an unsuccessful payment, you get `,_jsx(_components.code,{children:`success`}),`: `,_jsx(_components.strong,{children:`false`}),`, and the `,_jsx(_components.code,{children:`reason`}),` field has details about why the payment was unsuccessful.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example webhook for an unsuccessful payment`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"live\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"notificationItems\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"NotificationRequestItem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AUTHORISATION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantAccountCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_MERCHANT_ACCOUNT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation 101 Invalid card number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unknowncard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"additionalData\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expiryDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"03/2030\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardBin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"411111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardSummary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1112\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"861631540104159H\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_REFERENCE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pspReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KHQC5N7G84BLNK43\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2021-09-13T14:14:05+02:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`2`,id:`test-and-go-live`,children:`Test and go live`}),_jsxs(_components.p,{children:[`Before going live, use our list of `,_jsx(_components.a,{href:`/development-resources/test-cards-and-credentials/test-card-numbers`,children:`test cards and other payment methods`}),` to\\xA0test your integration. We recommend testing each payment method that you intend to offer to your shoppers.`]}),_jsxs(_components.p,{children:[`You can check the status of a test payment in your\\xA0`,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`Customer Area`}),`, under `,_jsx(_components.strong,{children:`Transactions`}),` >\\xA0`,_jsx(_components.strong,{children:`Payments`}),`.`]}),_jsxs(_components.p,{children:[`To debug or troubleshoot test payments, you can also use `,_jsx(_components.a,{href:`/development-resources/logs-resources/api-logs`,children:`API logs`}),` in your test environment.`]}),_jsx(_components.p,{children:`When you are ready to go live, you need to:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/get-started-with-adyen/application-requirements`,children:`Apply for a live account`}),`. Review the process to start accepting payments on `,_jsx(_components.a,{href:`/get-started-with-adyen`,children:`Get started with Adyen`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Assess your `,_jsx(_components.a,{href:`/development-resources/pci-dss-compliance-guide#online-payments`,children:`PCI DSS compliance`}),` by submitting the `,_jsx(_components.a,{href:`https://www.pcisecuritystandards.org/documents/PCI-DSS-v3_2_1-SAQ-A.pdf`,children:`Self-Assessment Questionnaire-A`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/online-payments/go-live-checklist`,children:`Configure your live account`}),`.\\xA0`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Ensure your checkout is served over HTTPS. Non-HTTPS connections can result in payment processing failures.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Submit a request to add payment methods in your `,_jsx(_components.a,{href:`https://ca-live.adyen.com/`,children:`live Customer Area`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Switch from test to our `,_jsx(_components.a,{href:`/development-resources/live-endpoints#checkout-endpoints`,children:`live endpoints`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Make sure that all API requests you make for the same payment session use the same live endpoint region. Using different regions for `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/payments`,children:`/payments`}),` and `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details`,children:`/payments/details`}),` requests may result in errors, for example, when authenticating with 3D Secure 2.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Load Components from one of our live environments and set the `,_jsx(_components.code,{children:`environment`}),` to match your live endpoints:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint region`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Europe (EU) live`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`live`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`United States (US) live`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`live-us`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Australia (AU) live`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`live-au`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Northeast Asia (NEA) live`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`live-nea`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`India (IN) live`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`live-in`})})]})]})]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`staying-up-to-date`,children:`Staying up to date`}),_jsxs(_components.p,{children:[`After you go live, `,_jsx(_components.a,{href:`/online-payments/upgrade-your-integration#staying-up-to-date`,children:`keep your integration up-to-date`}),`. Regular updates help you:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Access new features as they are released.`}),`\n`,_jsx(_components.li,{children:`Improve checkout performance and accessibility for your customers.`}),`\n`,_jsx(_components.li,{children:`Update security to protect your business and your data.`}),`\n`]}),_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Modify payments`,href:`https://docs.adyen.com/online-payments/modify-payments`,children:_jsx(_components.p,{children:`Find out how to cancel, refund, or capture a payment using our API.`})}),_jsx(Card,{title:`Add payment methods`,href:`/payment-methods/add-payment-methods`,children:_jsx(_components.p,{children:`Learn about payment methods and how to add them to your account.`})}),_jsx(Card,{title:`Tokenization`,href:`/online-payments/tokenization`,children:_jsx(_components.p,{children:`Save shopper payment details for later payments.`})}),_jsx(Card,{title:`3D Secure authentication`,href:`/online-payments/3d-secure`,children:_jsx(_components.p,{children:`Comply with regulations such as PSD2 SCA in Europe.`})})]}),_jsxs(_components.p,{children:[_jsx(OptimizedImage,{src:`https://docs.adyen.com/user/pages/filters/checkout-web-component/components/visual/web-components.png`,alt:``,width:`24`,height:`24`,className:`mint-inline mint-align-text-bottom`,inline:true}),` `,_jsx(_components.img,{src:`https://docs.adyen.com/user/pages/filters/salesforce/github/github-mark.png`,alt:``})]}),_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/platforms/online-payments`,children:`Process online payments`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/platforms/components-overview`,children:`Component libraries`})}),`\n`]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Checkout Components","description":"Use Adyen's prebuilt components to show a checkout page with various payment methods to your users.","href":"/platforms/online-payments/checkout-components"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Web Components","slug":"web-components","depth":2,"children":[{"title":"Version Update","slug":"version-update","depth":3,"children":[]}]},{"title":"Introducing Web v6","slug":"introducing-web-v6","depth":2,"children":[{"title":"Improvements","slug":"improvements","depth":3,"children":[]}]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[{"title":"Integration steps","slug":"integration-steps","depth":3,"children":[]},{"title":"Payment flow","slug":"payment-flow","depth":3,"children":[]},{"title":"Before You Begin","slug":"before-you-begin","depth":3,"children":[]}]},{"title":"Requirements","slug":"requirements","depth":2,"children":[{"title":"Install Api Library","slug":"install-api-library","depth":3,"children":[]}]},{"title":"Install an API library","slug":"install-an-api-library","depth":2,"children":[{"title":"Requirements","slug":"requirements-2","depth":4,"children":[],"tabId":"java"},{"title":"Installation","slug":"installation","depth":4,"children":[],"tabId":"java"},{"title":"Setting up the client","slug":"setting-up-the-client","depth":4,"children":[],"tabId":"java"},{"title":"Requirements","slug":"requirements-3","depth":4,"children":[],"tabId":"php"},{"title":"Installation","slug":"installation-2","depth":4,"children":[],"tabId":"php"},{"title":"Set up the client","slug":"set-up-the-client","depth":4,"children":[],"tabId":"php"},{"title":"Requirements","slug":"requirements-4","depth":4,"children":[],"tabId":"c%23"},{"title":"Installation","slug":"installation-3","depth":4,"children":[],"tabId":"c%23"},{"title":"Set up the client","slug":"set-up-the-client-2","depth":4,"children":[],"tabId":"c%23"},{"title":"Requirements","slug":"requirements-5","depth":4,"children":[],"tabId":"nodejs"},{"title":"Installation","slug":"installation-4","depth":4,"children":[],"tabId":"nodejs"},{"title":"Setting up the client","slug":"setting-up-the-client-2","depth":4,"children":[],"tabId":"nodejs"},{"title":"Requirements","slug":"requirements-6","depth":4,"children":[],"tabId":"go"},{"title":"Installation","slug":"installation-5","depth":4,"children":[],"tabId":"go"},{"title":"Set up the client","slug":"set-up-the-client-3","depth":4,"children":[],"tabId":"go"},{"title":"Requirements","slug":"requirements-7","depth":4,"children":[],"tabId":"python"},{"title":"Installation","slug":"installation-6","depth":4,"children":[],"tabId":"python"},{"title":"Set up the client","slug":"set-up-the-client-4","depth":4,"children":[],"tabId":"python"},{"title":"Requirements","slug":"requirements-8","depth":4,"children":[],"tabId":"ruby"},{"title":"Installation","slug":"installation-7","depth":4,"children":[],"tabId":"ruby"},{"title":"Set up the client","slug":"set-up-the-client-5","depth":4,"children":[],"tabId":"ruby"}]},{"title":"Create a session","slug":"create-a-session","depth":2,"children":[{"title":"API error handling","slug":"api-error-handling","depth":3,"children":[],"tabId":"ruby"},{"title":"Prepare Front End","slug":"prepare-front-end","depth":3,"children":[],"tabId":"ruby"}],"tabId":"ruby"},{"title":"Prepare your front end","slug":"prepare-your-front-end","depth":2,"children":[{"title":"Get Adyen Web","slug":"get-adyen-web","depth":3,"children":[],"tabId":"ruby"},{"title":"Install Adyen Web","slug":"install-adyen-web","depth":3,"children":[],"tabId":"ruby"}],"tabId":"ruby"},{"title":"Create Dom Element","slug":"create-dom-element","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Create a DOM element for the Component","slug":"create-a-dom-element-for-the-component","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Configure And Create Instances","slug":"configure-and-create-instances","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Create the Component","slug":"create-the-component","depth":2,"children":[{"title":"Create your instance of AdyenCheckout","slug":"create-your-instance-of-adyencheckout","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Create your instance of Components","slug":"create-your-instance-of-components","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Components methods","slug":"components-methods","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Optional Localization (optional)","slug":"optional-localization-optional","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Localization","slug":"localization","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Supported languages","slug":"supported-languages","depth":4,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Change the language","slug":"change-the-language","depth":4,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Customize the localization","slug":"customize-the-localization","depth":4,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Create your custom localization","slug":"create-your-custom-localization","depth":4,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Text direction","slug":"text-direction","depth":4,"children":[],"tabId":"embed-script-and-stylesheet"}],"tabId":"embed-script-and-stylesheet"},{"title":"Handle the payment","slug":"handle-the-payment","depth":2,"children":[{"title":"Handle The Redirect Result","slug":"handle-the-redirect-result","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Handle the redirect","slug":"handle-the-redirect","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Get The Outcome","slug":"get-the-outcome","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"}],"tabId":"embed-script-and-stylesheet"},{"title":"Get the payment outcome","slug":"get-the-payment-outcome","depth":2,"children":[{"title":"Inform the shopper","slug":"inform-the-shopper","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Optional: Get the result of the payment session on your server","slug":"optional-get-the-result-of-the-payment-session-on-your-server","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"Update your order management system","slug":"update-your-order-management-system","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"}],"tabId":"embed-script-and-stylesheet"},{"title":"Test and go live","slug":"test-and-go-live","depth":2,"children":[{"title":"Staying up to date","slug":"staying-up-to-date","depth":3,"children":[],"tabId":"embed-script-and-stylesheet"}],"tabId":"embed-script-and-stylesheet"},{"title":"Next steps","slug":"next-steps","depth":2,"children":[],"tabId":"embed-script-and-stylesheet"},{"title":"See also","slug":"see-also","depth":2,"children":[],"tabId":"embed-script-and-stylesheet"}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/adyen-preview/60f49d66a6c7e631/disable-image-open.js"],"dynamicCss":".\\!mint-my-0 {\n margin-top: 0px !important;\n margin-bottom: 0px !important\n}\n.mint-inline {\n display: inline\n}\n.mint-flex {\n display: flex\n}\n.mint-flex-col {\n flex-direction: column\n}\n.mint-items-start {\n align-items: flex-start\n}\n.mint-items-center {\n align-items: center\n}\n.mint-gap-2 {\n gap: 0.5rem\n}\n.mint-align-text-bottom {\n vertical-align: text-bottom\n}","subdomain":"adyen-preview","siteName":"Adyen Docs","title":"Checkout Components - Adyen Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-14T19:38:54.395Z","originalFileLocation":"platforms/online-payments/checkout-components.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use Adyen\u0026#x27;s prebuilt components to show a checkout page with various payment methods to your users.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Adyen Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Checkout Components - Adyen Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use Adyen\u0026#x27;s prebuilt components to show a checkout page with various payment methods to your users.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Adyen Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://adyen-preview.mintlify.site/_mintlify/api/og/v2?division=Process+online+payments\u0026amp;title=Checkout+Components\u0026amp;description=Use+Adyen%27s+prebuilt+components+to+show+a+checkout+page+with+various+payment+methods+to+your+users.\u0026amp;theme=8534ab0e95bc3dedc267edec\u0026amp;signature=f9f5bb2179ca4c611b248c9584527920b0d341c2336016873a65ffb4e7ed4039\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Checkout Components - Adyen Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use Adyen\u0026#x27;s prebuilt components to show a checkout page with various payment methods to your users.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://adyen-preview.mintlify.site/_mintlify/api/og/v2?division=Process+online+payments\u0026amp;title=Checkout+Components\u0026amp;description=Use+Adyen%27s+prebuilt+components+to+show+a+checkout+page+with+various+payment+methods+to+your+users.\u0026amp;theme=8534ab0e95bc3dedc267edec\u0026amp;signature=f9f5bb2179ca4c611b248c9584527920b0d341c2336016873a65ffb4e7ed4039\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Adyen Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0abf53\">\u003clink data-mint-head rel=\"canonical\" href=\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platforms/online-payments/checkout-components.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://adyen-preview.mintlify.app/#organization\",\"name\":\"Adyen Docs\",\"url\":\"https://adyen-preview.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/adyen-preview/lASzPax-5LijrTyv/logo/adyen-logo-light.svg?fit=max\u0026auto=format\u0026n=lASzPax-5LijrTyv\u0026q=85\u0026s=2c1afa7588316f526e65513e790f5095\"}},{\"@type\":\"WebSite\",\"@id\":\"https://adyen-preview.mintlify.app#website\",\"name\":\"Adyen Docs\",\"url\":\"https://adyen-preview.mintlify.app\",\"publisher\":{\"@id\":\"https://adyen-preview.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components#webpage\",\"url\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components\",\"name\":\"Checkout Components\",\"description\":\"Use Adyen's prebuilt components to show a checkout page with various payment methods to your users.\",\"dateModified\":\"2026-10-14T19:38:54.395Z\",\"isPartOf\":{\"@id\":\"https://adyen-preview.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platforms\",\"item\":\"https://adyen-preview.mintlify.app/platforms\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Process online payments\",\"item\":\"https://adyen-preview.mintlify.app/platforms/online-payments\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Checkout Components\",\"item\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components#article\",\"headline\":\"Checkout Components\",\"name\":\"Checkout Components\",\"description\":\"Use Adyen's prebuilt components to show a checkout page with various payment methods to your users.\",\"url\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components\",\"mainEntityOfPage\":{\"@id\":\"https://adyen-preview.mintlify.app/platforms/online-payments/checkout-components#webpage\"},\"dateModified\":\"2026-10-14T19:38:54.395Z\",\"publisher\":{\"@id\":\"https://adyen-preview.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://adyen-preview.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Adyen Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Adyen Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/platforms/online-payments/checkout-components.md","siteName":"Adyen Docs","nav":{"global":null,"tabs":[{"tab":"Payments","menu":[{"item":"Get started","description":"Start accepting payments with Adyen.","pages":[{"title":"Get started","href":"/get-started-with-adyen"}]},{"item":"Online payments","description":"Accept ecommerce payments on your website or in your mobile app.","pages":[{"title":"Online payments","href":"/online-payments"}]},{"item":"In-person payments","description":"Accept point-of-sale payments with our terminals and Tap to Pay.","pages":[{"title":"In-person payments","href":"/point-of-sale"}]},{"item":"Omnichannel","description":"Get insights and build customer journeys across sales channels.","pages":[{"title":"Omnichannel","href":"/unified-commerce"}]},{"item":"Plugins","description":"Connect your existing commerce system to our payments platform.","pages":[{"title":"Plugins","href":"/plugins"}]}],"pages":[{"title":"Payments","href":"/get-started-with-adyen"}]},{"tab":"Adyen for Platforms","menu":[{"item":"Get started","description":"Discover which Adyen for Platforms offering is the best for you.","pages":[{"title":"Get started","href":"/adyen-for-platforms-model"}]},{"item":"Platforms","description":"Enable your users to accept online and in-person payments.","groups":[{"group":"Platforms","pages":[{"title":"Platforms","href":"/platforms"},{"title":"Get Started","href":"/platforms/get-started"},{"group":"Account structure","root":{"title":"Account Structure","href":"/platforms/account-structure-resources"},"pages":[{"title":"Platform Account Structure","href":"/platforms/account-structure-resources/platform-structure"},{"title":"Account Structure with Financial Products","href":"/platforms/account-structure-resources/financial-products"},{"title":"Legal Entity Management","href":"/platforms/account-structure-resources/legal-entity-management"}]},{"title":"Integration and Go-live Checklist","href":"/platforms/integration-checklist"},{"group":"Quickstart guide","root":{"title":"Quickstart Guide","href":"/platforms/quickstart-guide"},"pages":[{"title":"Payments","href":"/platforms/quickstart-guide/payments"},{"title":"Onboarding and Verification","href":"/platforms/quickstart-guide/onboarding-and-kyc"},{"title":"Payouts","href":"/platforms/quickstart-guide/payouts"},{"title":"Terminals","href":"/platforms/quickstart-guide/terminals"},{"title":"Reporting","href":"/platforms/quickstart-guide/reporting"},{"title":"Customer Area","href":"/platforms/quickstart-guide/customer-area"},{"title":"Support","href":"/platforms/quickstart-guide/support"}]},{"title":"Build Your Interface with UI Component Libraries","href":"/platforms/components-overview"},{"group":"Manage access for your team","root":{"title":"Manage Access for Your Team","href":"/platforms/manage-access"},"pages":[{"title":"API Credentials for Your Balance Platform","href":"/platforms/manage-access/api-credentials-web-service"},{"title":"Roles for API Credentials","href":"/platforms/manage-access/webservice-roles"}]},{"group":"Onboard and verify users","root":{"title":"Onboard and Verify Users","href":"/platforms/onboard-users"},"pages":[{"title":"Onboarding Steps for Platforms","href":"/platforms/onboard-users/onboarding-steps"},{"group":"Onboarding versions","root":{"title":"Onboarding Versions","href":"/platforms/onboard-users/onboarding-versions"},"pages":[{"title":"Onboarding v4","href":"/platforms/onboard-users/onboarding-versions/onboarding-v4"}]},{"title":"Compliance with PCI DSS Requirements","href":"/platforms/onboard-users/pci-forms"},{"title":"Terms of Service","href":"/platforms/onboard-users/terms-of-service"},{"title":"Customize and Test Hosted Onboarding","href":"/platforms/onboard-users/customize-hosted-onboarding"},{"title":"Onboarding Components","href":"/platforms/onboard-users/components"}]},{"group":"Verification process","root":{"title":"Verification Process","href":"/platforms/verification-overview"},"pages":[{"title":"Verification Types","href":"/platforms/verification-overview/verification-types"},{"title":"User Capabilities","href":"/platforms/verification-overview/capabilities"},{"title":"Periodic Data Reviews","href":"/platforms/verification-overview/data-review-process"}]},{"group":"Determine the verification requirements","root":{"title":"Determine the Verification Requirements","href":"/platforms/verification-requirements"},"pages":[{"title":"Data Formats per Country/region","href":"/platforms/verification-requirements/data-formats-per-country"},{"title":"Requirements for Document Uploads","href":"/platforms/verification-requirements/document-requirements"},{"title":"Onboarding Guidelines","href":"/platforms/verification-requirements/onboarding-guidelines"},{"group":"Reference for additional capabilities","root":{"title":"Reference for Additional Capabilities","href":"/platforms/verification-requirements/reference-additional-products"},"pages":[{"title":"Brand-specific Industry Codes List","href":"/platforms/verification-requirements/reference-additional-products/brand-specific-industry-codes"},{"title":"Industry Codes List","href":"/platforms/verification-requirements/reference-additional-products/industry-codes"}]},{"title":"Upload a Bank Document in Hosted Onboarding","href":"/platforms/verification-requirements/upload-bank-document"}]},{"group":"Verification codes","root":{"title":"Verification Codes","href":"/platforms/kyc-verification-codes"},"pages":[{"title":"Remediating Action Codes","href":"/platforms/kyc-verification-codes/remediating-actions"},{"title":"General Error Codes","href":"/platforms/kyc-verification-codes/general-verification-errors"},{"title":"Suberror Codes","href":"/platforms/kyc-verification-codes/sub-errors"}]},{"title":"Test verification/KYC Scenarios","href":"/platforms/test-verification-errors"},{"title":"Manage Legal Entities","href":"/platforms/manage-legal-entities"},{"title":"Account Holder Status","href":"/platforms/account-holder-status"},{"title":"Manage Account Holders","href":"/platforms/manage-account-holders"},{"title":"Manage Balance Accounts","href":"/platforms/manage-balance-accounts"},{"title":"Manage Stores","href":"/platforms/manage-stores"},{"title":"Manage Liable Balance Accounts","href":"/platforms/manage-liable-accounts"},{"title":"Manage Transfer Instruments","href":"/platforms/manage-transfer-instruments"},{"title":"Process Payments","href":"/platforms/process-payments"},{"group":"Payment methods","root":{"title":"Payment Methods","href":"/platforms/payment-methods"},"pages":[{"title":"Manage Payment Methods with API","href":"/platforms/payment-methods/api"},{"title":"Manage Payment Methods in Customer Area","href":"/platforms/payment-methods/customer-area"}]},{"group":"Process online payments","root":{"title":"Process Online Payments","description":"Learn how to process online payments on behalf of your users.","href":"/platforms/online-payments"},"pages":[{"title":"Checkout Components","href":"/platforms/online-payments/checkout-components"},{"title":"Payment Facilitators","description":"Learn what additional information you must send in your requests if you are a payment facilitator.","href":"/platforms/online-payments/payment-facilitators"},{"group":"Split transactions between balance accounts","root":{"title":"Split Transactions Between Balance Accounts","href":"/platforms/online-payments/split-transactions"},"pages":[{"title":"Split Payments at Authorization","href":"/platforms/online-payments/split-transactions/split-payments-at-authorization"},{"title":"Split Payments at Capture","href":"/platforms/online-payments/split-transactions/split-payments-at-capture"},{"title":"Split Refunds","href":"/platforms/online-payments/split-transactions/split-refunds"},{"title":"Split Chargebacks","href":"/platforms/online-payments/split-transactions/split-chargebacks"}]},{"title":"Transaction Fees","href":"/platforms/online-payments/transaction-fees"},{"group":"Currency conversion","root":{"title":"Currency Conversion","href":"/platforms/online-payments/currency-conversion"},"pages":[{"group":"Convert the currency of a payment","root":{"title":"Convert the Currency of a Payment","href":"/platforms/online-payments/currency-conversion/payments"},"pages":[{"title":"Fix the Cost of Goods in the Settlement Currency","href":"/platforms/online-payments/currency-conversion/payments/fix-settlement-currency"},{"title":"Fix the Cost of Goods in the Processing Currency","href":"/platforms/online-payments/currency-conversion/payments/fix-processing-currency"}]},{"group":"Convert the currency of a refund","root":{"title":"Convert the Currency of a Refund","href":"/platforms/online-payments/currency-conversion/refunds"},"pages":[{"title":"Book the Remainder to Your User","href":"/platforms/online-payments/currency-conversion/refunds/your-user"},{"title":"Book the Remainder to Your Platform","href":"/platforms/online-payments/currency-conversion/refunds/your-platform"}]}]},{"title":"Online Donations Using Adyen Giving","href":"/platforms/online-payments/donations-online"},{"title":"Surcharge","href":"/platforms/online-payments/surcharge"}]},{"group":"Process in-person payments","root":{"title":"Process In-person Payments","href":"/platforms/in-person-payments"},"pages":[{"title":"Payment Facilitators","href":"/platforms/in-person-payments/payment-facilitators"},{"group":"Split transactions between balance accounts","root":{"title":"Split Transactions Between Balance Accounts","href":"/platforms/in-person-payments/split-transactions"},"pages":[{"title":"Split Payments at Authorization","href":"/platforms/in-person-payments/split-transactions/split-payments-at-authorization"},{"title":"Split Payments at Capture","href":"/platforms/in-person-payments/split-transactions/split-payments-at-capture"},{"group":"Split refunds","root":{"title":"Split Refunds","href":"/platforms/in-person-payments/split-transactions/split-refunds"},"pages":[{"title":"Refund with Original Split Ratio","href":"/platforms/in-person-payments/split-transactions/split-refunds/refund-original-split"},{"title":"Refund with Split Instructions","href":"/platforms/in-person-payments/split-transactions/split-refunds/refund-split-instructions"}]}]},{"title":"Transaction Fees","href":"/platforms/in-person-payments/transaction-fees"},{"group":"Surcharge","root":{"title":"Surcharge","href":"/platforms/in-person-payments/surcharge"},"pages":[{"title":"Configuration-based Surcharge","href":"/platforms/in-person-payments/surcharge/configuration"},{"title":"Dynamic Surcharge","href":"/platforms/in-person-payments/surcharge/dynamic"}]},{"title":"Tipping","href":"/platforms/in-person-payments/tipping"},{"title":"In-person Donations Using Adyen Giving","href":"/platforms/in-person-payments/donations-in-person"},{"title":"Dynamic Currency Conversion (DCC)","href":"/platforms/in-person-payments/dynamic-currency-conversion"}]},{"group":"Split payments automatically","root":{"title":"Split Payments Automatically","href":"/platforms/automatic-split-configuration"},"pages":[{"title":"Create Split Configuration Profiles","href":"/platforms/automatic-split-configuration/create-split-configuration"},{"group":"Manage split configuration profiles","root":{"title":"Manage Split Configuration Profiles","href":"/platforms/automatic-split-configuration/manage-split-configurations"},"pages":[{"title":"Manage Split Configuration Profiles in Your Customer Area","href":"/platforms/automatic-split-configuration/manage-split-configurations/customer-area"},{"title":"Manage Split Configuration Profiles","href":"/platforms/automatic-split-configuration/manage-split-configurations/api"}]}]},{"group":"Multi pay-in","root":{"title":"Multi Pay-in","href":"/platforms/multi-pay-in"},"pages":[{"title":"Receive Funds","href":"/platforms/multi-pay-in/receive-funds"},{"title":"Top up Multi Pay-in Account","href":"/platforms/multi-pay-in/top-up-multi-pay-in"},{"title":"Allocate Third-party Payments","href":"/platforms/multi-pay-in/payments"},{"title":"Refund Third-party Payments","href":"/platforms/multi-pay-in/refunds"}]},{"group":"Settle funds","root":{"title":"Settle Funds","href":"/platforms/settle-funds"},"pages":[{"title":"Configure Sales Day Closing Time","href":"/platforms/settle-funds/configure-closing-time"},{"title":"Pass-through Settlement","href":"/platforms/settle-funds/pass-through-settlement"}]},{"group":"Transfer funds internally","root":{"title":"Transfer Funds Internally","href":"/platforms/internal-fund-transfers"},"pages":[{"title":"Schedule Internal Funds Transfers","href":"/platforms/internal-fund-transfers/scheduled-fund-transfers"},{"title":"Initiate On-demand Internal Funds Transfers","href":"/platforms/internal-fund-transfers/on-demand-fund-transfers"},{"title":"Return Transferred Funds","href":"/platforms/internal-fund-transfers/return-transfers"},{"title":"Webhooks for Internal Funds Transfers","href":"/platforms/internal-fund-transfers/internal-transfer-webhooks"},{"title":"Approve or Cancel Transfers","href":"/platforms/internal-fund-transfers/approve-cancel-transfers"}]},{"group":"Cash out pending funds instantly","root":{"title":"Cash Out Pending Funds Instantly","href":"/platforms/cash-out-instantly"},"pages":[{"title":"Make a Cashout Request","href":"/platforms/cash-out-instantly/cashout-request"},{"title":"Webhooks for Cashouts","href":"/platforms/cash-out-instantly/cashout-webhooks"}]},{"group":"Track transactions","root":{"title":"Track Transactions","href":"/platforms/transfer-transactions"},"pages":[{"title":"Track Transactions with API Requests","href":"/platforms/transfer-transactions/track-api"},{"title":"Track Transactions with Webhooks","href":"/platforms/transfer-transactions/track-webhooks"}]},{"title":"View Transfer Details","href":"/platforms/view-transfers-details"},{"title":"Balance Types","href":"/platforms/balance-types"},{"group":"Track balance updates","root":{"title":"Track Balance Updates","href":"/platforms/balance-updates"},"pages":[{"title":"Configure Balance Webhooks","href":"/platforms/balance-updates/configure-balance-webhook"},{"title":"Manage Your Balance Webhook Settings","href":"/platforms/balance-updates/manage-balance-webhook"},{"title":"Example Use Cases","href":"/platforms/balance-updates/use-cases"}]},{"group":"Top up balance accounts","root":{"title":"Top up Balance Accounts","href":"/platforms/top-up-balance-account"},"pages":[{"title":"Top up on a Schedule","href":"/platforms/top-up-balance-account/scheduled-top-ups"},{"title":"Top up on Demand","href":"/platforms/top-up-balance-account/on-demand-top-ups"},{"title":"Webhooks","href":"/platforms/top-up-balance-account/top-up-webhooks"}]},{"title":"KYC Verification Insights","href":"/platforms/kyc-insights"},{"title":"Identify and Mitigate User Risk","href":"/platforms/identify-account-holder-risk"},{"group":"Reports and fee types","root":{"title":"Reports and Fee Types","href":"/platforms/reports-and-fees"},"pages":[{"title":"Balance Platform Accounting Report","href":"/platforms/reports-and-fees/balance-platform-accounting-report"},{"title":"Balance Platform Balance Report","href":"/platforms/reports-and-fees/balance-report"},{"title":"Balance Platform Statement Report","href":"/platforms/reports-and-fees/statement-report"},{"title":"Balance Platform Payout Report","href":"/platforms/reports-and-fees/payout-report"},{"title":"Balance Platform Fee Report","href":"/platforms/reports-and-fees/fee-report"}]},{"group":"Prepare the reports","root":{"title":"Prepare the Reports","href":"/platforms/prepare-reports"},"pages":[{"title":"Get Platform Reports","href":"/platforms/prepare-reports/generate-download-reports"}]},{"group":"Common reconciliation processes","root":{"title":"Common Reconciliation Processes","href":"/platforms/reconciliation-use-cases"},"pages":[{"title":"Reconcile Payments","href":"/platforms/reconciliation-use-cases/reconcile-payments"},{"title":"Verify Balances","href":"/platforms/reconciliation-use-cases/verify-balances"},{"title":"Reconcile Fund Transfers","href":"/platforms/reconciliation-use-cases/reconcile-transfers"},{"title":"Reconcile Fees","href":"/platforms/reconciliation-use-cases/reconcile-fees"},{"group":"First year operational tasks","root":{"title":"First Year Operational Tasks","href":"/platforms/reconciliation-use-cases/first-year-focus"},"pages":[{"title":"Platform-level Reporting","href":"/platforms/reconciliation-use-cases/first-year-focus/platform-level-reporting"},{"title":"User-level Reporting","href":"/platforms/reconciliation-use-cases/first-year-focus/platform-user-level-reporting"}]},{"title":"Liable Account Summary","href":"/platforms/reconciliation-use-cases/liable-account-summary"}]},{"title":"Provide Tax Forms (US Only)","href":"/platforms/us-tax-forms"},{"title":"Register Consent for Paperless Delivery of Tax Forms (US Only)","href":"/platforms/us-tax-forms-edelivery-consent"},{"title":"Build User Dashboards with UI Components","href":"/platforms/build-user-dashboards"},{"title":"Financial Products","href":"/platforms/financial-products"},{"group":"Compliance guidelines for financial products","root":{"title":"Compliance Guidelines for Financial Products","href":"/platforms/compliance-financial-products"},"pages":[{"group":"User application and interface","root":{"title":"User Application and Interface","href":"/platforms/compliance-financial-products/user-interface"},"pages":[{"title":"Additional User Interface Requirements for Capital","href":"/platforms/compliance-financial-products/user-interface/capital-requirements"}]},{"title":"Account Statements for Business Accounts and Issuing","href":"/platforms/compliance-financial-products/account-statements"},{"title":"Material for Marketing and Communication with Users","href":"/platforms/compliance-financial-products/marketing-user-communication"},{"title":"Customer Service and Support","href":"/platforms/compliance-financial-products/customer-service-support"},{"title":"Customer Complaints and Escalation","href":"/platforms/compliance-financial-products/customer-complaints"},{"title":"Pricing and Eligibility","href":"/platforms/compliance-financial-products/pricing-and-eligibility"},{"title":"Notification and Reporting to Adyen","href":"/platforms/compliance-financial-products/reporting-to-adyen"},{"title":"Keeping Records","href":"/platforms/compliance-financial-products/keeping-records"},{"title":"Registration as an Intermediary in France","href":"/platforms/compliance-financial-products/french-intermediary"},{"title":"EU Depositor Information Sheet","href":"/platforms/compliance-financial-products/eu-depositor-info-sheet"},{"title":"Foreign Exchange Fees","href":"/platforms/compliance-financial-products/foreign-exchange-fees"},{"title":"Vulnerable Users (UK and Ireland Only)","href":"/platforms/compliance-financial-products/vulnerable-users"}]},{"group":"Custom payouts","root":{"title":"Custom Payouts","href":"/platforms/custom-payouts"},"pages":[{"title":"Configure Settlement Delay","href":"/platforms/custom-payouts/configure-settlement-delay"},{"group":"Initiate on-demand payouts","root":{"title":"Initiate On-demand Payouts","href":"/platforms/custom-payouts/on-demand-payouts"},"pages":[{"title":"Approve or Cancel Payouts","href":"/platforms/custom-payouts/on-demand-payouts/approve-cancel-payouts"}]},{"group":"Configure custom payout schedules","root":{"title":"Configure Custom Payout Schedules","href":"/platforms/custom-payouts/scheduled-payouts"},"pages":[{"title":"View the Executions of a Custom Payout Schedule","href":"/platforms/custom-payouts/scheduled-payouts/view-custom-payout-executions"}]},{"title":"Transfer Routes","href":"/platforms/custom-payouts/transfer-routes"}]},{"title":"Donations Using Giving","href":"/platforms/donations"},{"title":"Manage Account Holder Risk","href":"/platforms/manage-account-holder-risk"},{"title":"Manage Your Reserve Account","href":"/platforms/manage-reserve-account"},{"group":"Managed payouts","root":{"title":"Managed Payouts","href":"/platforms/managed-payouts"},"pages":[{"title":"Use Managed Payouts","href":"/platforms/managed-payouts/use-managed-payouts"},{"title":"View Payout Executions","href":"/platforms/managed-payouts/view-payout-executions"}]},{"title":"Calculating the Payout Amount","href":"/platforms/payout-amount"},{"title":"Payout Descriptions","href":"/platforms/payout-descriptions"},{"title":"Payout Reconciliation","href":"/platforms/payout-reconciliation"},{"title":"Payout Transfer Webhooks","href":"/platforms/payout-webhooks"},{"title":"View Payout Transfer Details","href":"/platforms/view-payout-transfers-details"},{"title":"Webhook Structures and Types for Platforms","href":"/platforms/webhook-types"}]}]},{"item":"Marketplaces","description":"Allow sellers to accept online payments on your marketplace.","pages":[{"title":"Marketplaces","href":"/marketplaces"}]},{"item":"Business accounts","description":"Offer business accounts to your users.","pages":[{"title":"Business accounts","href":"/business-accounts"}]},{"item":"Capital","description":"Enable fast business financing for your users.","pages":[{"title":"Capital","href":"/capital"}]},{"item":"Embedded issuing","description":"Create physical and virtual cards for your users.","pages":[{"title":"Embedded issuing","href":"/issuing"}]},{"item":"Classic platforms","description":"Adyen for Platforms integrations before Aug 1, 2022.","pages":[{"title":"Classic platforms","href":"/classic-platforms"}]}]},{"tab":"Enterprise financial products","menu":[{"item":"Enterprise accounts","description":"Store and manage your business funds using an account with financial capabilities.","pages":[{"title":"Enterprise accounts","href":"/payouts/payout-service/enterprise-accounts"}]},{"item":"Enterprise issuing","description":"Create physical and virtual cards to manage your expenses.","pages":[{"title":"Enterprise issuing","href":"/issuing"}]},{"item":"Payouts","description":"Make payouts to third parties in multiple locations and currencies.","pages":[{"title":"Payouts","href":"/payouts"}]}],"pages":[{"title":"Enterprise financial products","href":"/payouts/payout-service/enterprise-accounts"}]},{"tab":"Business operations","menu":[{"item":"Account","description":"Manage your Adyen account configuration in your dashboard.","pages":[{"title":"Account","href":"/account"}]},{"item":"Reporting","description":"Get financial or operational reports for your business.","pages":[{"title":"Reporting","href":"/reporting"}]},{"item":"Risk management","description":"Detect payment fraud, reduce risk, and handle disputes.","pages":[{"title":"Risk management","href":"/risk-management"}]},{"item":"Adyen Uplift","description":"Optimize your integration by balancing payment conversion, fraud, and cost.","pages":[{"title":"Adyen Uplift","href":"/uplift"}]}],"pages":[{"title":"Business operations","href":"/account"}]},{"tab":"Development resources","menu":[{"item":"API credentials","description":"Authenticate your API requests with Adyen.","pages":[{"title":"API credentials","href":"/development-resources/api-credentials"}]},{"item":"Webhooks","description":"Get updates about your account, payments, and other integration aspects.","pages":[{"title":"Webhooks","href":"/development-resources/webhooks"}]},{"item":"Error codes and messages","description":"Learn about error responses to API requests.","pages":[{"title":"Error codes and messages","href":"/development-resources/error-codes"}]},{"item":"Release notes","description":"Keep track of the updates and changes in our products.","pages":[{"title":"Release notes","href":"/release-notes"}]},{"item":"More development resources","description":"Learn about testing, integration, and security best practices.","pages":[{"title":"More development resources","href":"/development-resources"}]}],"pages":[{"title":"Development resources","href":"/development-resources/api-credentials"}]},{"tab":"Industries and markets","menu":[{"item":"Industries","description":"See what features we recommend.","pages":[{"title":"Industries","href":"/industries"}]},{"item":"Markets","description":"Dive into discussions about specific markets.","pages":[{"title":"Markets","href":"/industries/markets"}]},{"item":"Peak season readiness","description":"Prepare for the busiest period in the year.","pages":[{"title":"Peak season readiness","href":"/industries/peak-season"}]}],"pages":[{"title":"Industries and markets","href":"/industries"}]}]},"basePath":"","title":"Checkout Components - Adyen Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BA_UUN68.js","lightbox-handle-r17bVUz3.js"]}