{"title":"Redirect 3DS Drop-in integration","category":"default","creationDate":1693431120,"content":"<div class=\"additional-info-block output-inline\">\n<div class=\"additional-info-block__body\"><p><img style=\"width: 25px;\" alt=\"\" src=\"\/user\/pages\/reuse\/development-resources\/additional-info-resources\/postman-logo-vertical-orange-2021.svg?decoding=auto&amp;fetchpriority=auto\" \/>&nbsp;&nbsp;<a href=\"https:\/\/www.postman.com\/adyendev\/workspace\/adyen-apis\/collection\/25716737-46ad970e-dc9e-4246-bac2-769c6083e7b5\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Postman collection<\/a><\/p><p><strong>Implementation examples<\/strong><br \/><img style=\"width: 25px;\" alt=\"\" src=\"\/user\/pages\/reuse\/development-resources\/additional-info-resources\/nodejs-original.svg?decoding=auto&amp;fetchpriority=auto\" \/>&nbsp;&nbsp;<a href=\"https:\/\/github.com\/adyen-examples\/adyen-node-online-payments\/tree\/main\/3ds2-example\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Node.js<\/a><\/p>\n&nbsp;&nbsp;\n&nbsp;&nbsp;\n\n    <\/div><\/div>\n\n<p>Our <a href=\"\/pt\/online-payments\/drop-in-web\">Web Drop-in<\/a> renders the available cards in your payment form, and securely collects any sensitive card information, so it doesn't touch your server. Drop-in also redirects the shopper to perform the 3D Secure 2 authentication.<\/p>\n<div class=\"sc-notice info\"><div>\n<p>Follow the instructions on this page if your integration uses the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> or  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> endpoint, and Checkout API 49 or later.<br \/>\n<br>If your integration uses only the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/sessions\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/sessions<\/a> endpoint, you do not need additional configuration for 3D Secure. If you are using Checkout API 46 or earlier, follow instructions in the <a href=\"\/pt\/online-payments\/3d-secure\/native-3ds2\/api-integration\">3D Secure 2 integration guide for v46 or earlier<\/a>.<\/p>\n<\/div><\/div>\n<p>When adding card payments with redirect 3D Secure authentication to your integration, you additionally need to:<\/p>\n<ol>\n<li><a href=\"#configure-drop-in\">Configure Drop-in<\/a> to collect the card holder name.<\/li>\n<li><a href=\"#make-a-payment\">Provide the required 3D Secure parameters<\/a> when making a payment request.<\/li>\n<li><a href=\"#handle-the-redirect\">Handle the redirect result<\/a> after the shopper returns to your website.<\/li>\n<\/ol>\n<h2>Requirements<\/h2>\n<p>This page explains how to add cards with redirect 3D Secure authentication to an existing Web Drop-in integration. The Web Drop-in integration works the same way for all payment methods. If you haven't done this integration yet, refer to our <a href=\"\/pt\/online-payments\/drop-in-web\">Drop-in integration guide<\/a>.<\/p>\n<p>Before starting your integration:<\/p>\n<ol>\n<li>Make sure that you have <a href=\"\/pt\/online-payments\/drop-in-web#step-1-get-available-payment-methods\">set up your back end implementation<\/a>, and <a href=\"\/pt\/online-payments\/drop-in-web#step-2-add-drop-in\">added Drop-in to your payments form<\/a>.<\/li>\n<li><a href=\"\/pt\/payment-methods\/add-payment-methods\">Add the cards that you want to accept in your test Customer Area<\/a>.<\/li>\n<li>If you are using 3D Secure for PSD2 compliance, read our <a href=\"\/pt\/online-payments\/psd2-sca-compliance-and-implementation-guide\">comprehensive PSD2 SCA guide<\/a>.<\/li>\n<\/ol>\n<h2>Show the available cards in your payment form<\/h2>\n<div class=\"additional-info-block output-inline\">\n<div class=\"additional-info-block__body\"><p>For information about the supported countries\/regions and currencies for each card, refer to <a href=\"https:\/\/www.adyen.com\/payment-methods\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Payment methods<\/a>.<\/p><\/div><\/div>\n\n<p>Drop-in uses the combination of  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a> and  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a> from your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> request to show the available cards to your shopper.<\/p>\n<p>When the shopper is entering their card details, Drop-in tries to recognize the card brand. When successful, Drop-in renders the brand icon and the corresponding input field for the card security code (CVC, CVV, or CID).<\/p>\n<h2>Collect additional parameters in your payment form<\/h2>\n<p>For higher authentication rates, we strongly recommend that you collect the card holder name, billing address, and email address for payments with 3D Secure authentication.<\/p>\n<h3 id=\"configure-drop-in\">Configure Drop-in<\/h3>\n<p>When <a href=\"\/pt\/online-payments\/drop-in-web#init-drop-in\">creating an instance of Drop-in<\/a>, you can optionally specify the following fields:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Description<\/th>\n<th>Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>hasHolderName<\/code><\/td>\n<td>Set to\u00a0<strong>true<\/strong>\u00a0to show the input field for the card holder name.<\/td>\n<td><strong>false<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>holderNameRequired<\/code><\/td>\n<td>Set to\u00a0<strong>true<\/strong>\u00a0to make the card holder name a required field. To show the field, you additionally need to set <code>hasHolderName<\/code> to <strong>true<\/strong>.<\/td>\n<td><strong>false<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>enableStoreDetails<\/code><\/td>\n<td>Set to\u00a0<strong>true<\/strong>\u00a0to show the checkbox for saving the card details for recurring payments.<\/td>\n<td><strong>false<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>name<\/code><\/td>\n<td>String that is used to display the payment method name to the shopper.<\/td>\n<td>Depends on the <code>shopperLocale<\/code> specified in <code>\/paymentMethods<\/code> request.<\/td>\n<\/tr>\n<tr>\n<td><code>billingAddressRequired<\/code><\/td>\n<td><div data-component-wrapper=\"tag\">\n    <tag :variant=&quot;success&quot;>\n        v 3.5.0\n    <\/tag>\n<\/div>\n Set to <strong>true<\/strong> to collect the shopper's billing address.<\/td>\n<td><strong>false<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code class=\"language-js\">const dropin = checkout\n   .create('dropin', {\n       paymentMethodsConfiguration: {\n           card: { \/\/ Sample Drop-in configuration for 3D Secure\n               hasHolderName: true,\n               holderNameRequired: true,\n               enableStoreDetails: true,\n               name: 'Credit or debit card',\n               billingAddressRequired: true\n           },\n           ...\n       }\n   })\n   .mount('#dropin');<\/code><\/pre>\n<p>You can also customize your shopper's experience with optional <a href=\"\/pt\/payment-methods\/cards\/web-drop-in#optional-configuration\">configuration parameters<\/a> and specific <a href=\"\/pt\/payment-methods\/cards\/web-drop-in#events\">events<\/a>.<\/p>\n<h3>Collect shopper email in your payment form<\/h3>\n<p>We also recommend that you collect the shopper email in advance in your payment form. Deliver this parameter to your backend when <a href=\"#make-a-payment\">making a payment<\/a>, because it is required by the card schemes.<\/p>\n<h2 id=\"make-a-payment\">Make a payment<\/h2>\n<p>When the shopper selects to pay, Drop-in calls the <code>onSubmit<\/code> event, which contains a <code>state.data<\/code>.<\/p>\n<ol>\n<li>\n<p>Pass the <code>state.data<\/code> to your server.<\/p>\n<\/li>\n<li>\n<p>When you <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow?platform=Web&amp;integration=Drop-in&amp;version=latest#make-a-payment\">make a payment request<\/a>, include the following additional 3D Secure 2 parameters.<\/p>\n<div class=\"notices green\">\n<p>See additional 3D Secure 2 parameters that we recommend to include in your request to increase authentication performance in our <a href=\"\/pt\/online-payments\/3d-secure\/api-reference\">API reference<\/a>.<\/p>\n<\/div>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter name<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-paymentMethod\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">paymentMethod<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The type and required details for a card payment method. This is the <code>state.data.paymentMethod<\/code> object from the <code>onSubmit<\/code> event.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-paymentMethod-CardDetails-holderName\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">paymentMethod.holderName<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Conditionally required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Conditionally required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/conditionally-required\/conditionally-required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\"><strong>Use case<\/strong>: required for Visa and JCB transactions. <br> The cardholder's name.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-browserInfo\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">browserInfo<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The shopper's browser information. All sub-fields of this object are required for <code>channel<\/code>: <strong>Web<\/strong>. This is the <code>state.data.browserInfo<\/code> object from the <code>onSubmit<\/code> event.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-channel\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">channel<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The platform where the transaction takes place. Set to <strong>Web<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-origin\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">origin<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The origin URL of the page where you are rendering Drop-in. To get the origin, open the browser console and call <code>window.location.origin<\/code>. <br> When this field is not set, or set incorrectly, the 3D Secure 2 action can not be handled correctly.  <br> <strong>Format<\/strong>: <ul><li markdown=\"1\">Maximum characters: 80.<\/li><li markdown=\"1\">Do not include subdirectories and a trailing slash.<\/li><\/ul> <strong>Example<\/strong>: if you render Drop-in on <code>https:\/\/your-company.example.com\/checkout\/payment<\/code>, set to <code>https:\/\/your-company.example.com<\/code>. <br><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-returnUrl\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">returnUrl<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/required\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\">The URL where the shopper is redirected back to after completing authentication, including the protocol <code>http:\/\/<\/code> or <code>https:\/\/<\/code>. You can also include your own additional query parameters, for example, shopper ID or order reference number.  <br> <strong>Format<\/strong>: <ul><li markdown=\"1\">The return URL must not include <code>\/\/<\/code> (double slash) after the top-level domain.<\/li><li markdown=\"1\">Maximum characters: 1024. We recommend that you keep the number of characters as small as possible.<\/li><\/ul> <strong>Example<\/strong>: <code>https:\/\/your-company.example.com\/checkout\/<\/code>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperEmail\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperEmail<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Conditionally required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Conditionally required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/conditionally-required\/conditionally-required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\"><strong>Use case<\/strong>: required for Visa and JCB transactions. <Br> The cardholder's email address. If you do not include the shopper email, you must include the shopper's phone number in your request.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperIP\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperIP<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Conditionally required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Conditionally required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/conditionally-required\/conditionally-required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\"><strong>Use case<\/strong>: required for Visa and JCB transactions on the web. <br> The shopper's IP address.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-telephoneNumber\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">telephoneNumber<\/a><\/td>\n<td style=\"text-align: center;\"><span class=\"hint--bottom\" data-hint=\"Conditionally required\" markdown=\"1\"><img style=\"width: 25px;\" alt=\"Conditionally required\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/conditionally-required\/conditionally-required.svg?decoding=auto&amp;fetchpriority=auto\" \/><\/span><\/td>\n<td style=\"text-align: left;\"><strong>Use case<\/strong>: required for Visa and JCB transactions if you did not include the <code>shopperEmail<\/code> field. <br>The shopper's phone number. To be more specific, you can use the <code>mobilePhone<\/code>, <code>homePhone<\/code>, and <code>workPhone<\/code> fields in the <code>threeDS2RequestData<\/code> object.  <br> <strong>Format<\/strong>: The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). <br>  <strong>Example<\/strong>: <strong>+4912345678901<\/strong> <div class=\"sc-notice note\"><div> If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. <\/div><\/div><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img alt=\"This is the required icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/requirements-legend\/required.svg?decoding=auto&amp;fetchpriority=auto\" \/> Required for all transactions. <br><img alt=\"This is the conditionally required icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/requirements-legend\/conditionally-required.svg?decoding=auto&amp;fetchpriority=auto\" \/> Required for particular setups, or issuers and card schemes. <br><img alt=\"This is the recommended icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/requirements-legend\/recommended.svg?decoding=auto&amp;fetchpriority=auto\" \/> Recommended for all transactions, but not required.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"''\" :id=\"'payments-request-3ds-redirect-web'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n   \\&quot;amount\\&quot;:{\\n      \\&quot;currency\\&quot;:\\&quot;EUR\\&quot;,\\n      \\&quot;value\\&quot;:1000\\n   },\\n   \\&quot;reference\\&quot;:\\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n   \\&quot;shopperReference\\&quot;:\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n   \\&quot;{hint:state.data.paymentMethod from onSubmit}paymentMethod{\\\/hint}\\&quot;:{\\n      \\&quot;type\\&quot;:\\&quot;scheme\\&quot;,\\n      \\&quot;encryptedCardNumber\\&quot;:\\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;,\\n      \\&quot;encryptedExpiryMonth\\&quot;:\\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;,\\n      \\&quot;encryptedExpiryYear\\&quot;:\\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;,\\n      \\&quot;encryptedSecurityCode\\&quot;:\\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;,\\n      \\&quot;holderName\\&quot;:\\&quot;S. Hopper\\&quot;\\n   },\\n   \\&quot;{hint:state.data.browserInfo from onSubmit}browserInfo{\\\/hint}\\&quot;:{\\n      \\&quot;userAgent\\&quot;:\\&quot;Mozilla\\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\\/70.0.3538.110 Safari\\\\\\\/537.36\\&quot;,\\n      \\&quot;acceptHeader\\&quot;:\\&quot;text\\\\\\\/html,application\\\\\\\/xhtml+xml,application\\\\\\\/xml;q=0.9,image\\\\\\\/webp,image\\\\\\\/apng,*\\\\\\\/*;q=0.8\\&quot;,\\n      \\&quot;language\\&quot;:\\&quot;nl-NL\\&quot;,\\n      \\&quot;colorDepth\\&quot;:24,\\n      \\&quot;screenHeight\\&quot;:723,\\n      \\&quot;screenWidth\\&quot;:1536,\\n      \\&quot;timeZoneOffset\\&quot;:0,\\n      \\&quot;javaEnabled\\&quot;:true\\n   },\\n   \\&quot;{hint:state.data.billingAddress from onSubmit}billingAddress{\\\/hint}\\&quot;: {\\n       \\&quot;street\\&quot;: \\&quot;Infinite Loop\\&quot;,\\n       \\&quot;houseNumberOrName\\&quot;: \\&quot;1\\&quot;,\\n       \\&quot;postalCode\\&quot;: \\&quot;1011DJ\\&quot;,\\n       \\&quot;city\\&quot;: \\&quot;Amsterdam\\&quot;,\\n       \\&quot;country\\&quot;: \\&quot;NL\\&quot;\\n  },\\n   \\&quot;shopperEmail\\&quot;:\\&quot;s.hopper@example.com\\&quot;,\\n   \\&quot;shopperIP\\&quot;:\\&quot;192.0.2.1\\&quot;,\\n   \\&quot;channel\\&quot;:\\&quot;web\\&quot;,\\n   \\&quot;origin\\&quot;:\\&quot;https:\\\/\\\/your-company.example.com\\&quot;,\\n   \\&quot;returnUrl\\&quot;:\\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n   \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v27.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount()\\n  .currency(\\&quot;EUR\\&quot;)\\n  .value(1000L);\\n\\nCardDetails cardDetails = new CardDetails()\\n  .encryptedCardNumber(\\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;)\\n  .holderName(\\&quot;S. Hopper\\&quot;)\\n  .encryptedSecurityCode(\\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;)\\n  .encryptedExpiryYear(\\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;)\\n  .encryptedExpiryMonth(\\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;)\\n  .type(CardDetails.TypeEnum.SCHEME);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n  .country(\\&quot;NL\\&quot;)\\n  .city(\\&quot;Amsterdam\\&quot;)\\n  .street(\\&quot;Infinite Loop\\&quot;)\\n  .houseNumberOrName(\\&quot;1\\&quot;)\\n  .postalCode(\\&quot;1011DJ\\&quot;);\\n\\nBrowserInfo browserInfo = new BrowserInfo()\\n  .acceptHeader(\\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;)\\n  .screenWidth(1536)\\n  .javaEnabled(true)\\n  .screenHeight(723)\\n  .timeZoneOffset(0)\\n  .userAgent(\\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;)\\n  .language(\\&quot;nl-NL\\&quot;)\\n  .colorDepth(24);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .reference(\\&quot;YOUR_ORDER_NUMBER\\&quot;)\\n  .amount(amount)\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  .origin(\\&quot;https:\\\/\\\/your-company.example.com\\&quot;)\\n  .channel(PaymentRequest.ChannelEnum.WEB)\\n  .paymentMethod(new CheckoutPaymentMethod(cardDetails))\\n  .shopperEmail(\\&quot;s.hopper@example.com\\&quot;)\\n  .shopperIP(\\&quot;192.0.2.1\\&quot;)\\n  .billingAddress(billingAddress)\\n  .returnUrl(\\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;)\\n  .browserInfo(browserInfo)\\n  .shopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n\\\/\\\/ Send the request\\nPaymentsApi service = new PaymentsApi(client);\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v19.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\CheckoutPaymentMethod;\\nuse Adyen\\\\Model\\\\Checkout\\\\BillingAddress;\\nuse Adyen\\\\Model\\\\Checkout\\\\BrowserInfo;\\nuse Adyen\\\\Model\\\\Checkout\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Checkout\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;EUR\\&quot;)\\n  -&gt;setValue(1000);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setEncryptedCardNumber(\\&quot;adyenjs_0_1_18\\\\$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;)\\n  -&gt;setHolderName(\\&quot;S. Hopper\\&quot;)\\n  -&gt;setEncryptedSecurityCode(\\&quot;adyenjs_0_1_24\\\\$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;)\\n  -&gt;setEncryptedExpiryYear(\\&quot;adyenjs_0_1_18\\\\$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;)\\n  -&gt;setEncryptedExpiryMonth(\\&quot;adyenjs_0_1_18\\\\$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;)\\n  -&gt;setType(\\&quot;scheme\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n  -&gt;setCountry(\\&quot;NL\\&quot;)\\n  -&gt;setCity(\\&quot;Amsterdam\\&quot;)\\n  -&gt;setStreet(\\&quot;Infinite Loop\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;1\\&quot;)\\n  -&gt;setPostalCode(\\&quot;1011DJ\\&quot;);\\n\\n$browserInfo = new BrowserInfo();\\n$browserInfo\\n  -&gt;setAcceptHeader(\\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;)\\n  -&gt;setScreenWidth(1536)\\n  -&gt;setJavaEnabled(true)\\n  -&gt;setScreenHeight(723)\\n  -&gt;setTimeZoneOffset(0)\\n  -&gt;setUserAgent(\\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;)\\n  -&gt;setLanguage(\\&quot;nl-NL\\&quot;)\\n  -&gt;setColorDepth(24);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setReference(\\&quot;YOUR_ORDER_NUMBER\\&quot;)\\n  -&gt;setAmount($amount)\\n  -&gt;setMerchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setOrigin(\\&quot;https:\\\/\\\/your-company.example.com\\&quot;)\\n  -&gt;setChannel(\\&quot;web\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setShopperEmail(\\&quot;s.hopper@example.com\\&quot;)\\n  -&gt;setShopperIP(\\&quot;192.0.2.1\\&quot;)\\n  -&gt;setBillingAddress($billingAddress)\\n  -&gt;setReturnUrl(\\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;)\\n  -&gt;setBrowserInfo($browserInfo)\\n  -&gt;setShopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v17.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;EUR\\&quot;,\\n  Value = 1000\\n};\\n\\nCardDetails cardDetails = new CardDetails\\n{\\n  EncryptedCardNumber = \\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;,\\n  HolderName = \\&quot;S. Hopper\\&quot;,\\n  EncryptedSecurityCode = \\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;,\\n  EncryptedExpiryYear = \\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;,\\n  EncryptedExpiryMonth = \\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;,\\n  Type = CardDetails.TypeEnum.Scheme\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n  Country = \\&quot;NL\\&quot;,\\n  City = \\&quot;Amsterdam\\&quot;,\\n  Street = \\&quot;Infinite Loop\\&quot;,\\n  HouseNumberOrName = \\&quot;1\\&quot;,\\n  PostalCode = \\&quot;1011DJ\\&quot;\\n};\\n\\nBrowserInfo browserInfo = new BrowserInfo\\n{\\n  AcceptHeader = \\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;,\\n  ScreenWidth = 1536,\\n  JavaEnabled = true,\\n  ScreenHeight = 723,\\n  TimeZoneOffset = 0,\\n  UserAgent = \\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;,\\n  Language = \\&quot;nl-NL\\&quot;,\\n  ColorDepth = 24\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Reference = \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount = amount,\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  Origin = \\&quot;https:\\\/\\\/your-company.example.com\\&quot;,\\n  Channel = PaymentRequest.ChannelEnum.Web,\\n  PaymentMethod = new CheckoutPaymentMethod(cardDetails),\\n  ShopperEmail = \\&quot;s.hopper@example.com\\&quot;,\\n  ShopperIP = \\&quot;192.0.2.1\\&quot;,\\n  BillingAddress = billingAddress,\\n  ReturnUrl = \\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n  BrowserInfo = browserInfo,\\n  ShopperReference = \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentsService(client);\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&quot;});&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  amount: {\\n    currency: \\&quot;EUR\\&quot;,\\n    value: 1000\\n  },\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  paymentMethod: {\\n    type: \\&quot;scheme\\&quot;,\\n    encryptedCardNumber: \\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;,\\n    encryptedExpiryMonth: \\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;,\\n    encryptedExpiryYear: \\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;,\\n    encryptedSecurityCode: \\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;,\\n    holderName: \\&quot;S. Hopper\\&quot;\\n  },\\n  browserInfo: {\\n    userAgent: \\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;,\\n    acceptHeader: \\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;,\\n    language: \\&quot;nl-NL\\&quot;,\\n    colorDepth: 24,\\n    screenHeight: 723,\\n    screenWidth: 1536,\\n    timeZoneOffset: 0,\\n    javaEnabled: true\\n  },\\n  billingAddress: {\\n    street: \\&quot;Infinite Loop\\&quot;,\\n    houseNumberOrName: \\&quot;1\\&quot;,\\n    postalCode: \\&quot;1011DJ\\&quot;,\\n    city: \\&quot;Amsterdam\\&quot;,\\n    country: \\&quot;NL\\&quot;\\n  },\\n  shopperEmail: \\&quot;s.hopper@example.com\\&quot;,\\n  shopperIP: \\&quot;192.0.2.1\\&quot;,\\n  channel: \\&quot;web\\&quot;,\\n  origin: \\&quot;https:\\\/\\\/your-company.example.com\\&quot;,\\n  returnUrl: \\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v10.4.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\namount := checkout.Amount{\\n  Currency: \\&quot;EUR\\&quot;,\\n  Value: 1000,\\n}\\n\\ncardDetails := checkout.CardDetails{\\n  EncryptedCardNumber: common.PtrString(\\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;),\\n  HolderName: common.PtrString(\\&quot;S. Hopper\\&quot;),\\n  EncryptedSecurityCode: common.PtrString(\\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;),\\n  EncryptedExpiryYear: common.PtrString(\\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;),\\n  EncryptedExpiryMonth: common.PtrString(\\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;),\\n  Type: common.PtrString(\\&quot;scheme\\&quot;),\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n  Country: \\&quot;NL\\&quot;,\\n  City: \\&quot;Amsterdam\\&quot;,\\n  Street: \\&quot;Infinite Loop\\&quot;,\\n  HouseNumberOrName: \\&quot;1\\&quot;,\\n  PostalCode: \\&quot;1011DJ\\&quot;,\\n}\\n\\nbrowserInfo := checkout.BrowserInfo{\\n  AcceptHeader: \\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;,\\n  ScreenWidth: 1536,\\n  JavaEnabled: true,\\n  ScreenHeight: 723,\\n  TimeZoneOffset: 0,\\n  UserAgent: \\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;,\\n  Language: \\&quot;nl-NL\\&quot;,\\n  ColorDepth: 24,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount: amount,\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  Origin: common.PtrString(\\&quot;https:\\\/\\\/your-company.example.com\\&quot;),\\n  Channel: common.PtrString(\\&quot;web\\&quot;),\\n  PaymentMethod: checkout.CardDetailsAsCheckoutPaymentMethod(&amp;cardDetails),\\n  ShopperEmail: common.PtrString(\\&quot;s.hopper@example.com\\&quot;),\\n  ShopperIP: common.PtrString(\\&quot;192.0.2.1\\&quot;),\\n  BillingAddress: &amp;billingAddress,\\n  ReturnUrl: \\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n  BrowserInfo: &amp;browserInfo,\\n  ShopperReference: common.PtrString(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;),\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\&quot;UUID\\&quot;).PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.5.1\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;: 1000\\n  },\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;shopperReference\\&quot;: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;scheme\\&quot;,\\n    \\&quot;encryptedCardNumber\\&quot;: \\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;,\\n    \\&quot;encryptedExpiryMonth\\&quot;: \\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;,\\n    \\&quot;encryptedExpiryYear\\&quot;: \\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;,\\n    \\&quot;encryptedSecurityCode\\&quot;: \\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;,\\n    \\&quot;holderName\\&quot;: \\&quot;S. Hopper\\&quot;\\n  },\\n  \\&quot;browserInfo\\&quot;: {\\n    \\&quot;userAgent\\&quot;: \\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;,\\n    \\&quot;acceptHeader\\&quot;: \\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;,\\n    \\&quot;language\\&quot;: \\&quot;nl-NL\\&quot;,\\n    \\&quot;colorDepth\\&quot;: 24,\\n    \\&quot;screenHeight\\&quot;: 723,\\n    \\&quot;screenWidth\\&quot;: 1536,\\n    \\&quot;timeZoneOffset\\&quot;: 0,\\n    \\&quot;javaEnabled\\&quot;: True\\n  },\\n  \\&quot;billingAddress\\&quot;: {\\n    \\&quot;street\\&quot;: \\&quot;Infinite Loop\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;1011DJ\\&quot;,\\n    \\&quot;city\\&quot;: \\&quot;Amsterdam\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;NL\\&quot;\\n  },\\n  \\&quot;shopperEmail\\&quot;: \\&quot;s.hopper@example.com\\&quot;,\\n  \\&quot;shopperIP\\&quot;: \\&quot;192.0.2.1\\&quot;,\\n  \\&quot;channel\\&quot;: \\&quot;web\\&quot;,\\n  \\&quot;origin\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\&quot;,\\n  \\&quot;returnUrl\\&quot;: \\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.5.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :amount =&gt; {\\n    :currency =&gt; 'EUR',\\n    :value =&gt; 1000\\n  },\\n  :reference =&gt; 'YOUR_ORDER_NUMBER',\\n  :shopperReference =&gt; 'YOUR_UNIQUE_SHOPPER_ID',\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'scheme',\\n    :encryptedCardNumber =&gt; 'adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..',\\n    :encryptedExpiryMonth =&gt; 'adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..',\\n    :encryptedExpiryYear =&gt; 'adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..',\\n    :encryptedSecurityCode =&gt; 'adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..',\\n    :holderName =&gt; 'S. Hopper'\\n  },\\n  :browserInfo =&gt; {\\n    :userAgent =&gt; 'Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36',\\n    :acceptHeader =&gt; 'text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8',\\n    :language =&gt; 'nl-NL',\\n    :colorDepth =&gt; 24,\\n    :screenHeight =&gt; 723,\\n    :screenWidth =&gt; 1536,\\n    :timeZoneOffset =&gt; 0,\\n    :javaEnabled =&gt; true\\n  },\\n  :billingAddress =&gt; {\\n    :street =&gt; 'Infinite Loop',\\n    :houseNumberOrName =&gt; '1',\\n    :postalCode =&gt; '1011DJ',\\n    :city =&gt; 'Amsterdam',\\n    :country =&gt; 'NL'\\n  },\\n  :shopperEmail =&gt; 's.hopper@example.com',\\n  :shopperIP =&gt; '192.0.2.1',\\n  :channel =&gt; 'web',\\n  :origin =&gt; 'https:\\\/\\\/your-company.example.com',\\n  :returnUrl =&gt; 'https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..',\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT'\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;EUR\\&quot;,\\n  value: 1000\\n};\\n\\nconst cardDetails: Types.checkout.CardDetails = {\\n  encryptedCardNumber: \\&quot;adyenjs_0_1_18$k7s65M5V0KdPxTErhBIPoMPI8HlC..\\&quot;,\\n  holderName: \\&quot;S. Hopper\\&quot;,\\n  encryptedSecurityCode: \\&quot;adyenjs_0_1_24$XUyMJyHebrra\\\/TpSda9fha978+..\\&quot;,\\n  encryptedExpiryYear: \\&quot;adyenjs_0_1_18$CkCOLYZsdqpxGjrALWHj3QoGHqe+..\\&quot;,\\n  encryptedExpiryMonth: \\&quot;adyenjs_0_1_18$p2OZxW2XmwAA8C1Avxm3G9UB6e4..\\&quot;,\\n  type: Types.checkout.CardDetails.TypeEnum.Scheme\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n  country: \\&quot;NL\\&quot;,\\n  city: \\&quot;Amsterdam\\&quot;,\\n  street: \\&quot;Infinite Loop\\&quot;,\\n  houseNumberOrName: \\&quot;1\\&quot;,\\n  postalCode: \\&quot;1011DJ\\&quot;\\n};\\n\\nconst browserInfo: Types.checkout.BrowserInfo = {\\n  acceptHeader: \\&quot;text\\\/html,application\\\/xhtml+xml,application\\\/xml;q=0.9,image\\\/webp,image\\\/apng,*\\\/*;q=0.8\\&quot;,\\n  screenWidth: 1536,\\n  javaEnabled: true,\\n  screenHeight: 723,\\n  timeZoneOffset: 0,\\n  userAgent: \\&quot;Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36\\&quot;,\\n  language: \\&quot;nl-NL\\&quot;,\\n  colorDepth: 24\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: amount,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  origin: \\&quot;https:\\\/\\\/your-company.example.com\\&quot;,\\n  channel: Types.checkout.PaymentRequest.ChannelEnum.Web,\\n  paymentMethod: cardDetails,\\n  shopperEmail: \\&quot;s.hopper@example.com\\&quot;,\\n  shopperIP: \\&quot;192.0.2.1\\&quot;,\\n  billingAddress: billingAddress,\\n  returnUrl: \\&quot;https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..\\&quot;,\\n  browserInfo: browserInfo,\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>In the response, check if there is an <code>action<\/code> object.<\/p>\n\n<div id=\"tabR2Lt7\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Checkout API v67 and later&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Your next steps depend on whether the response contains an &lt;code&gt;action&lt;\\\/code&gt; object, and on the &lt;code&gt;action.type&lt;\\\/code&gt;.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;th&gt;Next steps&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;No &lt;code&gt;action&lt;\\\/code&gt; object&lt;\\\/td&gt;\\n&lt;td&gt;The transaction was either exempted or out-of-scope for 3D Secure authentication.&lt;\\\/td&gt;\\n&lt;td&gt;Use the &lt;code&gt;resultCode&lt;\\\/code&gt; to &lt;a href=\\&quot;#present-the-payment-result\\&quot;&gt;present the payment result to your shopper&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;action&lt;\\\/code&gt; object &lt;br&gt;&lt;code&gt;type&lt;\\\/code&gt;:&lt;strong&gt;redirect&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The payment qualifies for 3D Secure.&lt;\\\/td&gt;\\n&lt;td&gt;1. Pass the &lt;code&gt;action&lt;\\\/code&gt; object to your front end.&lt;br&gt; 2. &lt;a href=\\&quot;#handle-the-redirect\\&quot;&gt;Use &lt;code&gt;dropin.handleAction&lt;\\\/code&gt;&lt;\\\/a&gt; to handle the redirect.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;The following example shows a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; response with &lt;code&gt;action.type&lt;\\\/code&gt;: &lt;strong&gt;redirect&lt;\\\/strong&gt;.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;\\\/payments response&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n  \\\\\\&quot;resultCode\\\\\\&quot;: \\\\\\&quot;RedirectShopper\\\\\\&quot;,\\\\n  \\\\\\&quot;action\\\\\\&quot;: {\\\\n    \\\\\\&quot;paymentMethodType\\\\\\&quot;: \\\\\\&quot;scheme\\\\\\&quot;,\\\\n    \\\\\\&quot;url\\\\\\&quot;: \\\\\\&quot;https:\\\\\\\/\\\\\\\/checkoutshopper-test.adyen.com\\\\\\\/checkoutshopper\\\\\\\/identifyShopper.shtml\\\\\\&quot;,\\\\n    \\\\\\&quot;data\\\\\\&quot;: {\\\\n      \\\\\\&quot;MD\\\\\\&quot;: \\\\\\&quot;OEVudmZVMUlkWjd0MDNwUWs2bmhSdz09...\\\\\\&quot;,\\\\n      \\\\\\&quot;PaReq\\\\\\&quot;: \\\\\\&quot;eNpVUttygjAQ\\\\\\\/RXbDyAXBYRZ00HpTH3wUosPfe...\\\\\\&quot;\\\\n    },\\\\n    \\\\\\&quot;method\\\\\\&quot;: \\\\\\&quot;POST\\\\\\&quot;,\\\\n    \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;redirect\\\\\\&quot;\\\\n  }\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;v67&quot;,&quot;oldTabId&quot;:&quot;v67-payment-response_1&quot;,&quot;relation&quot;:&quot;v67&quot;},{&quot;title&quot;:&quot;Checkout API v66 and earlier&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Your next steps depend on whether the response contains an &lt;code&gt;action&lt;\\\/code&gt; object, and on the &lt;code&gt;action.type&lt;\\\/code&gt;.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;th&gt;Next steps&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;No &lt;code&gt;action&lt;\\\/code&gt; object&lt;\\\/td&gt;\\n&lt;td&gt;The transaction was either exempted or out-of-scope for 3D Secure authentication.&lt;\\\/td&gt;\\n&lt;td&gt;Use the &lt;code&gt;resultCode&lt;\\\/code&gt; to &lt;a href=\\&quot;#present-the-payment-result\\&quot;&gt;present the payment result to your shopper&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;action&lt;\\\/code&gt; object &lt;br&gt;&lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;redirect&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The payment qualifies for 3D Secure.&lt;\\\/td&gt;\\n&lt;td&gt;1. Store &lt;code&gt;action.paymentData&lt;\\\/code&gt; on your server. &lt;br&gt; 2. Pass the &lt;code&gt;action&lt;\\\/code&gt; object to your front end.&lt;br&gt; 3. &lt;a href=\\&quot;#handle-the-redirect\\&quot;&gt;Use &lt;code&gt;dropin.handleAction&lt;\\\/code&gt;&lt;\\\/a&gt; to handle the redirect.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;A sample  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/66\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; response with &lt;code&gt;action.type&lt;\\\/code&gt;: &lt;strong&gt;redirect&lt;\\\/strong&gt;:&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;\\\/payments response&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n   \\\\\\&quot;resultCode\\\\\\&quot;:\\\\\\&quot;RedirectShopper\\\\\\&quot;,\\\\n   \\\\\\&quot;action\\\\\\&quot;:{\\\\n      \\\\\\&quot;data\\\\\\&quot;:{\\\\n         \\\\\\&quot;MD\\\\\\&quot;:\\\\\\&quot;OEVudmZVMUlkWjd0MDNwUWs2bmhSdz09...\\\\\\&quot;,\\\\n         \\\\\\&quot;PaReq\\\\\\&quot;:\\\\\\&quot;eNpVUttygjAQ\\\\\\\/RXbDyAXBYRZ00HpTH3wUosPfe...\\\\\\&quot;,\\\\n         \\\\\\&quot;TermUrl\\\\\\&quot;:\\\\\\&quot;\\\\\\&quot;\\\\n      },\\\\n      \\\\\\&quot;method\\\\\\&quot;:\\\\\\&quot;POST\\\\\\&quot;,\\\\n      \\\\\\&quot;{hint: Store this on your server.}paymentData{\\\\\\\/hint}\\\\\\&quot;:\\\\\\&quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\\\&quot;,\\\\n      \\\\\\&quot;paymentMethodType\\\\\\&quot;:\\\\\\&quot;scheme\\\\\\&quot;,\\\\n      \\\\\\&quot;type\\\\\\&quot;:\\\\\\&quot;redirect\\\\\\&quot;,\\\\n      \\\\\\&quot;url\\\\\\&quot;:\\\\\\&quot;https:\\\\\\\/\\\\\\\/checkoutshopper-test.adyen.com\\\\\\\/checkoutshopper\\\\\\\/identifyShopper.shtml\\\\\\&quot;\\\\n   },\\\\n   \\\\\\&quot;details\\\\\\&quot;:[\\\\n      {\\\\n         \\\\\\&quot;key\\\\\\&quot;:\\\\\\&quot;MD\\\\\\&quot;,\\\\n         \\\\\\&quot;type\\\\\\&quot;:\\\\\\&quot;text\\\\\\&quot;\\\\n      },\\\\n      {\\\\n         \\\\\\&quot;key\\\\\\&quot;:\\\\\\&quot;PaRes\\\\\\&quot;,\\\\n         \\\\\\&quot;type\\\\\\&quot;:\\\\\\&quot;text\\\\\\&quot;\\\\n      }\\\\n   ],\\\\n   ...\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;v66&quot;,&quot;oldTabId&quot;:&quot;v66-payment-response_2&quot;,&quot;relation&quot;:&quot;v66&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<\/li>\n<\/ol>\n<h2 id=\"handle-the-redirect\">Handle the redirect<\/h2>\n<p>Drop-in uses <code>dropin.handleAction(action)<\/code> to redirect the shopper to a page where we render the issuer's DOM element (the <code>action.url<\/code> from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> response) to perform 3D Secure authentication.<\/p>\n<p>In our test environment, this is the page: <code>https:\/\/checkoutshopper-test.adyen.com\/checkoutshopper\/identifyShopper.shtml<\/code>, and you perform the authentication using the 3D Secure test credentials:<\/p>\n<ul>\n<li><strong>Username<\/strong>: user<\/li>\n<li><strong>Password<\/strong>: password<\/li>\n<\/ul>\n\n<div id=\"tabB9Qkf\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Checkout API v67 and later&quot;,&quot;content&quot;:&quot;\\n&lt;h3&gt;Verify the payment result&lt;\\\/h3&gt;\\n&lt;p&gt;When the shopper successfully authenticates on the page where they are redirected to complete the authentication, the payment is authorized. The shopper is redirected back to the  &lt;code&gt;returnUrl&lt;\\\/code&gt; from your  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; request. The redirect is via an HTTP GET and is appended with the Base64-encoded &lt;code&gt;redirectResult&lt;\\\/code&gt;.&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-raw\\&quot;&gt;GET \\\/?shopperOrder=12xy...&amp;amp;&amp;amp;redirectResult=X6XtfGC3%21Y.... HTTP\\\/1.1\\nHost: www.your-company.example.com\\\/checkout&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;To verify the payment result, make another API request with the &lt;code&gt;redirectResult&lt;\\\/code&gt; parameter:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;URL-decode the &lt;code&gt;redirectResult&lt;\\\/code&gt;, and pass it to your server.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; request specifying:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;details&lt;\\\/code&gt;: Object that contains the decoded &lt;code&gt;redirectResult&lt;\\\/code&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;\\\/payments\\\/details request&#039;\\&quot; :id=\\&quot;&#039;payments-details-request-4210734392&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v68\\\\\\\/payments\\\\\\\/details \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;details\\\\&amp;quot;: {\\\\n      \\\\&amp;quot;redirectResult\\\\&amp;quot;: \\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;\\\\n  }\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v32.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nPaymentCompletionDetails paymentCompletionDetails = new PaymentCompletionDetails()\\\\n  .redirectResult(\\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;);\\\\n\\\\nPaymentDetailsRequest paymentDetailsRequest = new PaymentDetailsRequest()\\\\n  .details(paymentCompletionDetails);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nPaymentDetailsResponse response = service.paymentsDetails(paymentDetailsRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;&amp;lt;?php\\\\n\\\\\\\/\\\\\\\/ Adyen PHP API Library v23.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentCompletionDetails;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentDetailsRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$paymentCompletionDetails = new PaymentCompletionDetails();\\\\n$paymentCompletionDetails\\\\n  -&amp;gt;setRedirectResult(\\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;);\\\\n\\\\n$paymentDetailsRequest = new PaymentDetailsRequest();\\\\n$paymentDetailsRequest\\\\n  -&amp;gt;setDetails($paymentCompletionDetails);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;paymentsDetails($paymentDetailsRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v26.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nPaymentCompletionDetails paymentCompletionDetails = new PaymentCompletionDetails\\\\n{\\\\n  RedirectResult = \\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;\\\\n};\\\\n\\\\nPaymentDetailsRequest paymentDetailsRequest = new PaymentDetailsRequest\\\\n{\\\\n  Details = paymentCompletionDetails\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.PaymentsDetails(paymentDetailsRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v22.1.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nconst client = new Client({ apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot; });\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentDetailsRequest = {\\\\n  details: {\\\\n    redirectResult: \\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;\\\\n  }\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.paymentsDetails(paymentDetailsRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v16.1.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\npaymentCompletionDetails := checkout.PaymentCompletionDetails{\\\\n  RedirectResult: common.PtrString(\\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;),\\\\n}\\\\n\\\\npaymentDetailsRequest := checkout.PaymentDetailsRequest{\\\\n  Details: paymentCompletionDetails,\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.PaymentsDetailsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).PaymentDetailsRequest(paymentDetailsRequest)\\\\nres, httpRes, err := service.PaymentsApi.PaymentsDetails(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v13.2.0\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;details\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;redirectResult\\\\&amp;quot;: \\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;\\\\n  }\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments_details(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v10.1.0\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :details =&amp;gt; {\\\\n    :redirectResult =&amp;gt; &#039;eyJ0cmFuc1N0YXR1cyI6IlkifQ==&#039;\\\\n  }\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments_details(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v22.1.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nconst client = new Client({ apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot; });\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentCompletionDetails: Types.checkout.PaymentCompletionDetails = {\\\\n  redirectResult: \\\\&amp;quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\\\&amp;quot;\\\\n};\\\\n\\\\nconst paymentDetailsRequest: Types.checkout.PaymentDetailsRequest = {\\\\n  details: paymentCompletionDetails\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.paymentsDetails(paymentDetailsRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;p&gt;The  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; response contains:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;resultCode&lt;\\\/code&gt;: Use this to &lt;a href=\\&quot;#present-the-payment-result\\&quot;&gt;present the result to your shopper&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;pspReference&lt;\\\/code&gt;: Our unique identifier for the transaction.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;\\\/payments\\\/details response&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n \\\\\\&quot;resultCode\\\\\\&quot;: \\\\\\&quot;Authorised\\\\\\&quot;,\\\\n \\\\\\&quot;pspReference\\\\\\&quot;: \\\\\\&quot;V4HZ4RBFJGXXGN82\\\\\\&quot;\\\\n   }\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;v67&quot;,&quot;oldTabId&quot;:&quot;handle-redirect-v67_1&quot;,&quot;relation&quot;:&quot;v67&quot;},{&quot;title&quot;:&quot;Checkout API v66 and earlier&quot;,&quot;content&quot;:&quot;\\n&lt;h3&gt;Complete the payment&lt;\\\/h3&gt;\\n&lt;p&gt;When the shopper has completed the authentication, the issuer (or our back end, if you are using the test environment) redirects them back to the &lt;code&gt;returnUrl&lt;\\\/code&gt; from your  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/66\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; request. The redirect uses HTTP POST, and is appended with the &lt;code&gt;MD&lt;\\\/code&gt; and &lt;code&gt;PaRes&lt;\\\/code&gt; variables:&lt;\\\/p&gt;\\n&lt;div class=\\&quot;notices green\\&quot;&gt;\\n&lt;p&gt;If, due to technical limitations, you need to use the GET method instead of HTTP POST, use the &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/v66\\\/post\\\/payments__reqParam_redirectFromIssuerMethod\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;redirectFromIssuerMethod&lt;\\\/a&gt; parameter.&lt;\\\/p&gt;\\n&lt;\\\/div&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-raw\\&quot;&gt;POST \\\/ HTTP\\\/1.1\\nHost: www.your-company.example.com\\\/checkout?shopperOrder=12xy..\\nContent-Type: application\\\/x-www-form-urlencoded\\nMD=Ab02b4c0%21BQABAgCW5sxB4e%2F%3D%3D..&amp;amp;PaRes=eNrNV0mTo7gS..&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;p&gt;To authorize the payment, you need to make another API request with the &lt;code&gt;MD&lt;\\\/code&gt; and &lt;code&gt;PaRes&lt;\\\/code&gt; parameters:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;\\n&lt;p&gt;URL-decode the &lt;code&gt;MD&lt;\\\/code&gt; and &lt;code&gt;PaRes&lt;\\\/code&gt; from the form data, and pass the parameters to your server.&lt;\\\/p&gt;\\n&lt;\\\/li&gt;\\n&lt;li&gt;\\n&lt;p&gt;From your server, make a   &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/66\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt;  request specifying:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;paymentData&lt;\\\/code&gt;: Value you received in the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/66\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; response.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;details&lt;\\\/code&gt;: Object that contains the URL-decoded &lt;code&gt;MD&lt;\\\/code&gt; and &lt;code&gt;PaRes&lt;\\\/code&gt; parameters.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;&#039;\\&quot; :id=\\&quot;&#039;details-request-3ds-redirect-v66&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v66\\\\\\\/payments\\\\\\\/details \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n     \\\\&amp;quot;paymentData\\\\&amp;quot;:\\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;,\\\\n     \\\\&amp;quot;details\\\\&amp;quot;:{\\\\n       \\\\&amp;quot;MD\\\\&amp;quot;:\\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;,\\\\n       \\\\&amp;quot;PaRes\\\\&amp;quot;:\\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;\\\\n     }\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v27.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nPaymentCompletionDetails paymentCompletionDetails = new PaymentCompletionDetails()\\\\n  .MD(\\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;)\\\\n  .PaRes(\\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;);\\\\n\\\\nPaymentDetailsRequest paymentDetailsRequest = new PaymentDetailsRequest()\\\\n  .paymentData(\\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;)\\\\n  .details(paymentCompletionDetails);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nPaymentDetailsResponse response = service.paymentsDetails(paymentDetailsRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v19.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentCompletionDetails;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentDetailsRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$paymentCompletionDetails = new PaymentCompletionDetails();\\\\n$paymentCompletionDetails\\\\n  -&amp;gt;setMD(\\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;)\\\\n  -&amp;gt;setPaRes(\\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;);\\\\n\\\\n$paymentDetailsRequest = new PaymentDetailsRequest();\\\\n$paymentDetailsRequest\\\\n  -&amp;gt;setPaymentData(\\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;)\\\\n  -&amp;gt;setDetails($paymentCompletionDetails);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;paymentsDetails($paymentDetailsRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v17.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nPaymentCompletionDetails paymentCompletionDetails = new PaymentCompletionDetails\\\\n{\\\\n  MD = \\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;,\\\\n  PaRes = \\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;\\\\n};\\\\n\\\\nPaymentDetailsRequest paymentDetailsRequest = new PaymentDetailsRequest\\\\n{\\\\n  PaymentData = \\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;,\\\\n  Details = paymentCompletionDetails\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.PaymentsDetails(paymentDetailsRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentDetailsRequest = {\\\\n  paymentData: \\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;,\\\\n  details: {\\\\n    MD: \\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;,\\\\n    PaRes: \\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;\\\\n  }\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.paymentsDetails(paymentDetailsRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v10.4.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\npaymentCompletionDetails := checkout.PaymentCompletionDetails{\\\\n  MD: common.PtrString(\\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;),\\\\n  PaRes: common.PtrString(\\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;),\\\\n}\\\\n\\\\npaymentDetailsRequest := checkout.PaymentDetailsRequest{\\\\n  PaymentData: common.PtrString(\\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;),\\\\n  Details: paymentCompletionDetails,\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.PaymentsDetailsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).PaymentDetailsRequest(paymentDetailsRequest)\\\\nres, httpRes, err := service.PaymentsApi.PaymentsDetails(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.5.1\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;paymentData\\\\&amp;quot;: \\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;,\\\\n  \\\\&amp;quot;details\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;MD\\\\&amp;quot;: \\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;,\\\\n    \\\\&amp;quot;PaRes\\\\&amp;quot;: \\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;\\\\n  }\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments_details(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.5.1\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :paymentData =&amp;gt; &#039;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...&#039;,\\\\n  :details =&amp;gt; {\\\\n    :MD =&amp;gt; &#039;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..&#039;,\\\\n    :PaRes =&amp;gt; &#039;eNrNV0mTo7gS..&#039;\\\\n  }\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments_details(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentCompletionDetails: Types.checkout.PaymentCompletionDetails = {\\\\n  MD: \\\\&amp;quot;Ab02b4c0!BQABAgCW5sxB4e\\\\\\\/==..\\\\&amp;quot;,\\\\n  PaRes: \\\\&amp;quot;eNrNV0mTo7gS..\\\\&amp;quot;\\\\n};\\\\n\\\\nconst paymentDetailsRequest: Types.checkout.PaymentDetailsRequest = {\\\\n  paymentData: \\\\&amp;quot;Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...\\\\&amp;quot;,\\\\n  details: paymentCompletionDetails\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.paymentsDetails(paymentDetailsRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;p&gt;The &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/66\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; response contains:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;resultCode&lt;\\\/code&gt;: Use this to &lt;a href=\\&quot;#present-the-payment-result\\&quot;&gt;present the result to your shopper&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;pspReference&lt;\\\/code&gt;: Our unique identifier for the transaction.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;\\\/payments\\\/details response&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;json\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n \\\\\\&quot;resultCode\\\\\\&quot;: \\\\\\&quot;Authorised\\\\\\&quot;,\\\\n \\\\\\&quot;pspReference\\\\\\&quot;: \\\\\\&quot;V4HZ4RBFJGXXGN82\\\\\\&quot;\\\\n   }\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;v66&quot;,&quot;oldTabId&quot;:&quot;handle-redirect-v66_2&quot;,&quot;relation&quot;:&quot;v66&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"present-the-payment-result\">Present the payment result<\/h2>\n<p>Use the\u00a0 <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#responses-200-resultCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">resultCode<\/a> from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> or  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response to present the payment result to your shopper. You will also receive the outcome of the payment asynchronously in a <a href=\"\/pt\/development-resources\/webhooks\">webhook<\/a>.<\/p>\n<p><\/p>\n<p>For card payments, you can receive the following <code>resultCode<\/code> values:<\/p>\n<table>\n<thead>\n<tr>\n<th>resultCode<\/th>\n<th>Description<\/th>\n<th>Action to take<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Authorised<\/strong><\/td>\n<td>The payment was successful.<\/td>\n<td>Inform the shopper that the payment has been successful. <br> If you are using <a href=\"\/pt\/online-payments\/capture#manual-capture\">manual capture<\/a>, you also need to <a href=\"\/pt\/online-payments\/capture\">capture<\/a> the payment.<\/td>\n<\/tr>\n<tr>\n<td><strong>Cancelled<\/strong><\/td>\n<td>The shopper cancelled the payment.<\/td>\n<td>Ask the shopper if they want to continue with the order, or ask them to select a different payment method.<\/td>\n<\/tr>\n<tr>\n<td><strong>Error<\/strong><\/td>\n<td>There was an error when the payment was being processed. For more information, check the <a href=\"\/pt\/development-resources\/refusal-reasons\">\n  <code>refusalReason<\/code>\n<\/a> field.<\/td>\n<td>Inform the shopper that there was an error processing their payment.<\/td>\n<\/tr>\n<tr>\n<td><strong>Refused<\/strong><\/td>\n<td>The payment was refused.  For more information, check the <a href=\"\/pt\/development-resources\/refusal-reasons\">\n  <code>refusalReason<\/code>\n<\/a> field.<\/td>\n<td>Ask the shopper to try the payment again using a different payment method.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"test-and-go-live\">Test and go live<\/h2>\n<p>Use our test card numbers to <a href=\"\/pt\/development-resources\/testing\/3d-secure-2-authentication\">test how your integration handles different 3D Secure authentication scenarios<\/a>.<\/p>\n<p>When you are ready to <a href=\"\/pt\/get-started-with-adyen\/#apply-for-your-live-account\">go live<\/a>, follow our <a href=\"\/pt\/online-payments\/go-live-checklist\/\">go-live checklist<\/a>.<\/p>\n<p>When using our <a href=\"\/pt\/development-resources\/live-endpoints\/\">live endpoints<\/a>, make sure that all API requests you make for the same payment session use the same live endpoint region. Using different regions for  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> and  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> requests may result in errors when authenticating with 3D Secure.<\/p>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/drop-in-web\"\n                        target=\"_self\"\n                        >\n                    Web Drop-in integration guide\n                <\/a><\/li><li><a href=\"\/online-payments\/3d-secure\/api-reference\"\n                        target=\"_self\"\n                        >\n                    3D Secure 2 API Reference\n                <\/a><\/li><li><a href=\"\/online-payments\/3d-secure\"\n                        target=\"_self\"\n                        >\n                    3D Secure authentication\n                <\/a><\/li><li><a href=\"\/development-resources\/webhooks\"\n                        target=\"_self\"\n                        >\n                    Webhooks\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/3d-secure\/redirect-3ds2\/web-drop-in","articleFields":{"description":"Support cards with 3D Secure authentication through a redirect on your website.","feedback_component":true,"parameters":{"return_url":"https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..","origin":"https:\/\/your-company.example.com","country_code":"NL","shopper_locale":"nl-NL","currency":"EUR","channel":"Web","user_agent":"Mozilla\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/70.0.3538.110 Safari\\\/537.36","api_explorer_shortcode":"[api=\"Checkout\/payments\" inlineCode=\"false\" t=\"Try it in our API Explorer.\"]","logo_1":"![](\/reuse\/development-resources\/additional-info-resources\/nodejs-original.svg?resize=25)","example_1":"[Node.js](https:\/\/github.com\/adyen-examples\/adyen-node-online-payments\/tree\/main\/3ds2-example)"},"last_edit_on":"30-08-2023 23:45","filters_component":false},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/3d-secure\/redirect-3ds2\/web-drop-in","title":"Redirect 3DS Drop-in integration","content":"\n&nbsp;&nbsp;Postman collectionImplementation examples&nbsp;&nbsp;Node.js\n&nbsp;&nbsp;\n&nbsp;&nbsp;\n\n    \n\nOur Web Drop-in renders the available cards in your payment form, and securely collects any sensitive card information, so it doesn't touch your server. Drop-in also redirects the shopper to perform the 3D Secure 2 authentication.\n\nFollow the instructions on this page if your integration uses the  \/payments or  \/payments\/details endpoint, and Checkout API 49 or later.\nIf your integration uses only the  \/sessions endpoint, you do not need additional configuration for 3D Secure. If you are using Checkout API 46 or earlier, follow instructions in the 3D Secure 2 integration guide for v46 or earlier.\n\nWhen adding card payments with redirect 3D Secure authentication to your integration, you additionally need to:\n\nConfigure Drop-in to collect the card holder name.\nProvide the required 3D Secure parameters when making a payment request.\nHandle the redirect result after the shopper returns to your website.\n\nRequirements\nThis page explains how to add cards with redirect 3D Secure authentication to an existing Web Drop-in integration. The Web Drop-in integration works the same way for all payment methods. If you haven't done this integration yet, refer to our Drop-in integration guide.\nBefore starting your integration:\n\nMake sure that you have set up your back end implementation, and added Drop-in to your payments form.\nAdd the cards that you want to accept in your test Customer Area.\nIf you are using 3D Secure for PSD2 compliance, read our comprehensive PSD2 SCA guide.\n\nShow the available cards in your payment form\n\nFor information about the supported countries\/regions and currencies for each card, refer to Payment methods.\n\nDrop-in uses the combination of  countryCode and  amount.currency from your  \/paymentMethods request to show the available cards to your shopper.\nWhen the shopper is entering their card details, Drop-in tries to recognize the card brand. When successful, Drop-in renders the brand icon and the corresponding input field for the card security code (CVC, CVV, or CID).\nCollect additional parameters in your payment form\nFor higher authentication rates, we strongly recommend that you collect the card holder name, billing address, and email address for payments with 3D Secure authentication.\nConfigure Drop-in\nWhen creating an instance of Drop-in, you can optionally specify the following fields:\n\n\n\nField\nDescription\nDefault\n\n\n\n\nhasHolderName\nSet to\u00a0true\u00a0to show the input field for the card holder name.\nfalse\n\n\nholderNameRequired\nSet to\u00a0true\u00a0to make the card holder name a required field. To show the field, you additionally need to set hasHolderName to true.\nfalse\n\n\nenableStoreDetails\nSet to\u00a0true\u00a0to show the checkbox for saving the card details for recurring payments.\nfalse\n\n\nname\nString that is used to display the payment method name to the shopper.\nDepends on the shopperLocale specified in \/paymentMethods request.\n\n\nbillingAddressRequired\n\n    \n        v 3.5.0\n    \n\n Set to true to collect the shopper's billing address.\nfalse\n\n\n\nconst dropin = checkout\n   .create('dropin', {\n       paymentMethodsConfiguration: {\n           card: { \/\/ Sample Drop-in configuration for 3D Secure\n               hasHolderName: true,\n               holderNameRequired: true,\n               enableStoreDetails: true,\n               name: 'Credit or debit card',\n               billingAddressRequired: true\n           },\n           ...\n       }\n   })\n   .mount('#dropin');\nYou can also customize your shopper's experience with optional configuration parameters and specific events.\nCollect shopper email in your payment form\nWe also recommend that you collect the shopper email in advance in your payment form. Deliver this parameter to your backend when making a payment, because it is required by the card schemes.\nMake a payment\nWhen the shopper selects to pay, Drop-in calls the onSubmit event, which contains a state.data.\n\n\nPass the state.data to your server.\n\n\nWhen you make a payment request, include the following additional 3D Secure 2 parameters.\n\nSee additional 3D Secure 2 parameters that we recommend to include in your request to increase authentication performance in our API reference.\n\n\n\n\nParameter name\nRequired\nDescription\n\n\n\n\n paymentMethod\n\nThe type and required details for a card payment method. This is the state.data.paymentMethod object from the onSubmit event.\n\n\n paymentMethod.holderName\n\nUse case: required for Visa and JCB transactions.  The cardholder's name.\n\n\n browserInfo\n\nThe shopper's browser information. All sub-fields of this object are required for channel: Web. This is the state.data.browserInfo object from the onSubmit event.\n\n\n channel\n\nThe platform where the transaction takes place. Set to Web.\n\n\n origin\n\nThe origin URL of the page where you are rendering Drop-in. To get the origin, open the browser console and call window.location.origin.  When this field is not set, or set incorrectly, the 3D Secure 2 action can not be handled correctly.   Format: Maximum characters: 80.Do not include subdirectories and a trailing slash. Example: if you render Drop-in on https:\/\/your-company.example.com\/checkout\/payment, set to https:\/\/your-company.example.com. \n\n\n returnUrl\n\nThe URL where the shopper is redirected back to after completing authentication, including the protocol http:\/\/ or https:\/\/. You can also include your own additional query parameters, for example, shopper ID or order reference number.   Format: The return URL must not include \/\/ (double slash) after the top-level domain.Maximum characters: 1024. We recommend that you keep the number of characters as small as possible. Example: https:\/\/your-company.example.com\/checkout\/.\n\n\n shopperEmail\n\nUse case: required for Visa and JCB transactions.  The cardholder's email address. If you do not include the shopper email, you must include the shopper's phone number in your request.\n\n\n shopperIP\n\nUse case: required for Visa and JCB transactions on the web.  The shopper's IP address.\n\n\n telephoneNumber\n\nUse case: required for Visa and JCB transactions if you did not include the shopperEmail field. The shopper's phone number. To be more specific, you can use the mobilePhone, homePhone, and workPhone fields in the threeDS2RequestData object.   Format: The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits).   Example: +4912345678901  If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. \n\n\n\n Required for all transactions.  Required for particular setups, or issuers and card schemes.  Recommended for all transactions, but not required.\n\n\n\n\n\nIn the response, check if there is an action object.\n\n\n    \n        \n        \n    \n\n\n\n\nHandle the redirect\nDrop-in uses dropin.handleAction(action) to redirect the shopper to a page where we render the issuer's DOM element (the action.url from the  \/payments response) to perform 3D Secure authentication.\nIn our test environment, this is the page: https:\/\/checkoutshopper-test.adyen.com\/checkoutshopper\/identifyShopper.shtml, and you perform the authentication using the 3D Secure test credentials:\n\nUsername: user\nPassword: password\n\n\n\n    \n        \n        \n    \n\n\nPresent the payment result\nUse the\u00a0 resultCode from the  \/payments or  \/payments\/details response to present the payment result to your shopper. You will also receive the outcome of the payment asynchronously in a webhook.\n\nFor card payments, you can receive the following resultCode values:\n\n\n\nresultCode\nDescription\nAction to take\n\n\n\n\nAuthorised\nThe payment was successful.\nInform the shopper that the payment has been successful.  If you are using manual capture, you also need to capture the payment.\n\n\nCancelled\nThe shopper cancelled the payment.\nAsk the shopper if they want to continue with the order, or ask them to select a different payment method.\n\n\nError\nThere was an error when the payment was being processed. For more information, check the \n  refusalReason\n field.\nInform the shopper that there was an error processing their payment.\n\n\nRefused\nThe payment was refused.  For more information, check the \n  refusalReason\n field.\nAsk the shopper to try the payment again using a different payment method.\n\n\n\nTest and go live\nUse our test card numbers to test how your integration handles different 3D Secure authentication scenarios.\nWhen you are ready to go live, follow our go-live checklist.\nWhen using 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 when authenticating with 3D Secure.\nSee also\n\n\n                    Web Drop-in integration guide\n                \n                    3D Secure 2 API Reference\n                \n                    3D Secure authentication\n                \n                    Webhooks\n                \n","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"3D Secure 2 authentication","lvl3":"3D Secure 2 redirect authentication","lvl4":"Redirect 3DS Drop-in integration"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/online-payments","lvl2":"https:\/\/docs.adyen.com\/pt\/online-payments\/3d-secure","lvl3":"https:\/\/docs.adyen.com\/pt\/online-payments\/3d-secure\/redirect-3ds2","lvl4":"\/pt\/online-payments\/3d-secure\/redirect-3ds2\/web-drop-in"},"levels":5,"category":"Online Payments","category_color":"green","tags":["Redirect","Drop-in","integration"]},"articleFiles":{"payments-details-request-4210734392.js":"<p alt=\"\">payments-details-request-4210734392.js<\/p>"}}
