{"title":"Browser-based integration","category":"default","creationDate":1776961627,"content":"<div class=\"sc-notice warning\"><div>\n<p><strong>Adyen is no longer developing the Classic API integration<\/strong><\/p>\n<p>This page is for the Classic API (<code>\/authorise<\/code>) integration, which we no longer accept new integrations with. <\/p>\n<p>We strongly recommend migrating to the newer <a href=\"\/online-payments\/3d-secure\/native-3ds2\">Native 3D Secure 2 on Checkout API<\/a> integration. To use this newer integration, you must also <a href=\"\/pt\/online-payments\/upgrade-your-integration\/migrate-to-checkout-api\">migrate to the Checkout API<\/a>.<\/p>\n<\/div><\/div>\n<h2 id=\"how-it-works\">How it works<\/h2>\n<p>In a full implementation, a payment eligible for 3D Secure 2 can go through either a frictionless or a challenge authentication flow before the payment is authorised.\u00a0To support both flows, you need to\u00a0build your own client-side and server-side implementation, with the option of using our\u00a0<a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/browser-based-integration\/3d-secure-2-helper-functions\">helper functions<\/a>.<\/p>\n<p>If you only want to perform a 3D Secure 2 authentication and then authorise the payment later, see the <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/authentication-only-integration\">Authentication-only<\/a> integration page.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>The use of helper functions replaces the Web 3D Secure 2 SDK implementation. If you are currently using Web 3D Secure 2 SDK and require assistance, contact\u00a0<a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a>.<\/p>\n<\/div><\/div>\n<p>Here's a diagram for a 3D Secure 2 browser-based full implementation:<\/p>\n<p><img alt=\"\" src=\"\/user\/pages\/docs\/02.online-payments\/60.classic-integrations\/01.classic-api-integration\/03.3d-secure-authentication\/09.native-3ds2\/01.browser-based-integration\/3ds2-browser-based.png\" \/><\/p>\n<ol>\n<li><a href=\"#submit-a-payment-request\">Submit a payment request<\/a>\u00a0with the required 3D Secure 2 objects to start the authentication process.\u00a0Build your implementation depending on the\u00a0<code>resultCode<\/code>\u00a0returned in the response.<\/li>\n<li><a href=\"#get-the-3d-secure-2-device-fingerprint\">Get the 3D Secure device fingerprint<\/a>. If you receive an\u00a0<strong>IdentifyShopper<\/strong> <code>resultCode<\/code>, you need to get the shopper's 3D Secure 2 device fingerprint. Create an iframe on the browser, send a device fingerprint request to the issuer, and then send the result to Adyen. If you get a response with an\u00a0<strong>Authorised<\/strong> <code>resultCode<\/code>, this indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed.<\/li>\n<li><a href=\"#present-a-challenge\">Present a challenge to the shopper<\/a>.\u00a0If you receive\u00a0<strong>ChallengeShopper<\/strong> <code>resultCode<\/code>, this means that the issuer requires further shopper interaction. Depending on the logic on issuer's side, this result code can be returned after you submit a payment request or after you submit the device fingerprint result to Adyen.\u00a0To handle a challenge flow, create an iframe, send a challenge request to the issuer, and then submit the challenge result to Adyen.\u00a0<\/li>\n<\/ol>\n<p>To optimize authorization rates, Adyen's <a href=\"https:\/\/www.adyen.com\/knowledge-hub\/psd2-simplified-with-our-new-authentication-engine\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Authentication Engine<\/a> routes each payment to either the 3D Secure 2 or the 3D Secure 1 flow, based on issuer performance. If you do not want to automatically fall back to 3D Secure 1, contact <a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a>.<\/p>\n<p>For a complete list of\u00a0<code>resultCode<\/code>\u00a0values and the actions that you need to take, see\u00a0<a href=\"\/pt\/online-payments\/payment-result-codes\">Result codes<\/a>.<\/p>\n<h2 id=\"before-you-begin\">Before\u00a0you begin<\/h2>\n<p>Before you begin to integrate, make sure you have followed the <a href=\"\/pt\/get-started-with-adyen\">Get started with Adyen guide<\/a> to:<\/p>\n<ul>\n<li>Get an overview of the steps needed to accept live payments.<\/li>\n<li>Create your test account.<\/li>\n<\/ul>\n<p>After you have created your test account:<\/p>\n<ol>\n<li><a href=\"\/pt\/development-resources\/api-credentials#generate-api-key\">Get your API Key<\/a>. Save a copy\u00a0as you'll need it for API calls you make to the\u00a0plataforma de pagamentos da Adyen.<\/li>\n<li>Install one of our\u00a0<a href=\"\/pt\/development-resources\/libraries\">Libraries<\/a>\u00a0to connect with the Adyen APIs. For more information on these steps, refer to\u00a0<a href=\"\/pt\/get-started-with-adyen\">Get started with Adyen<\/a>.<\/li>\n<li>\n<p>Set up the following webhooks. The issuer will send an HTTP POST containing the 3D Secure 2 device fingerprinting process and the challenge result to these URLs.<\/p>\n<ul>\n<li><code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code>: Absolute URL\u00a0to where the issuer can post the result of the 3D Secure device fingerprinting process.\u00a0<\/li>\n<li><code>YOUR_3DS_NOTIFICATION_URL<\/code>: Absolute URL to where the issuer can post a base64url encoded Challenge Response (<code>CRes<\/code>)\u00a0message, containing the challenge result.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"integration-steps\">Integration steps<\/h2>\n<ol>\n<li>Collect the shopper's card details and proceed to\u00a0<a href=\"#submit-a-payment-request\">submit a payment request<\/a>.\u00a0<\/li>\n<li>Use the <code>resultCode<\/code>\u00a0from the response to determine your next action. For example, to complete a 3D Secure 2 authentication flow, you might need to get the\u00a0<a href=\"#get-the-3d-secure-2-device-fingerprint\">3D Secure 2 device fingerprint<\/a>, or\u00a0<a href=\"#present-a-challenge\">present a challenge<\/a>\u00a0to the shopper, or both.<\/li>\n<\/ol>\n<p>To test your integration, see <a href=\"#testing-3d-secure-2\">Testing 3D Secure 2<\/a>.<\/p>\n<h2 id=\"submit-a-payment-request\">Step 1: Submit a payment request<\/h2>\n<p>Submit a payment request with a POST\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>\u00a0call. Include the\u00a0<code>threeDS2RequestData<\/code>\u00a0and\u00a0<code>browserInfo<\/code>\u00a0objects to indicate that you are ready to accept 3D Secure 2 authenticated\u00a0payments.<\/p>\n<ul>\n<li><code>threeDS2RequestData.deviceChannel<\/code>:\u00a0<strong>browser<\/strong>.<\/li>\n<li><code>browserInfo<\/code>: Collect information about your shopper's browser.<\/li>\n<li><code>threeDS2RequestData.notificationURL<\/code>:\u00a0<code>YOUR_3DS_NOTIFICATION_URL<\/code>\n<div class=\"notices green\">\n<p>For the <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/other-3ds-flows\/data-only\">data-only flow<\/a>, use a dummy value for your <code>notificationURL<\/code>. For example, <code>https:\/\/www.example.com<\/code>.<\/p>\n<\/div>\n<div class=\"sc-notice note\"><div>\n<p>You can send <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/api-reference-3d-secure-2#3d-secure-2-additional-parameters\">additional parameters<\/a> for better authorization rates, and to increase the chance of a frictionless flow. You do not have to send all the additional parameters.  Send parameters that you know you can provide accurately, or that are mandatory in specific scenarios.<\/p>\n<\/div><\/div><\/li>\n<\/ul>\n<p>Here is an example of how to make a request for a <strong>EUR&nbsp;150<\/strong> purchase:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Request'\" :id=\"'request-9741667944'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/pal-test.adyen.com\\\/pal\\\/servlet\\\/Payment\\\/v68\\\/authorise \\\\\\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;:1500\\n  },\\n  \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;:\\&quot;TEST\\&quot;,\\n  \\&quot;threeDS2RequestData\\&quot;:{\\n    \\&quot;deviceChannel\\&quot;:\\&quot;browser\\&quot;,\\n    \\&quot;notificationURL\\&quot;:\\&quot;https:\\\\\\\/\\\\\\\/www.example.com\\\\\\\/YOUR_3DS_NOTIFICATION_URL\\&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;en-GB\\&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;:false\\n  },\\n  \\&quot;shopperIP\\&quot;: \\&quot;192.0.2.1\\&quot;,\\n  \\&quot;card\\&quot;:{\\n    \\&quot;cvc\\&quot;:\\&quot;737\\&quot;,\\n    \\&quot;expiryMonth\\&quot;:\\&quot;03\\&quot;,\\n    \\&quot;expiryYear\\&quot;:\\&quot;2030\\&quot;,\\n    \\&quot;holderName\\&quot;:\\&quot;Simon Hopper\\&quot;,\\n    \\&quot;number\\&quot;:\\&quot;4917610000000000\\&quot;\\n  }\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v26.3.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.payment.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.*;\\n\\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(1500L);\\n\\nThreeDS2RequestData threeDS2RequestData = new ThreeDS2RequestData()\\n  .notificationURL(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;)\\n  .deviceChannel(\\&quot;browser\\&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(false)\\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;en-GB\\&quot;)\\n  .colorDepth(24);\\n\\nCard card = new Card()\\n  .cvc(\\&quot;737\\&quot;)\\n  .number(\\&quot;4917610000000000\\&quot;)\\n  .holderName(\\&quot;Simon Hopper\\&quot;)\\n  .expiryMonth(\\&quot;03\\&quot;)\\n  .expiryYear(\\&quot;2030\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .reference(\\&quot;TEST\\&quot;)\\n  .amount(amount)\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  .threeDS2RequestData(threeDS2RequestData)\\n  .shopperIP(\\&quot;192.0.2.1\\&quot;)\\n  .browserInfo(browserInfo)\\n  .card(card);\\n\\n\\\/\\\/ Send the request\\npaymentApi service = new paymentApi(client);\\nPaymentResult response = service.authorise(paymentRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v18.2.1\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Payments\\\\Amount;\\nuse Adyen\\\\Model\\\\Payments\\\\ThreeDS2RequestData;\\nuse Adyen\\\\Model\\\\Payments\\\\BrowserInfo;\\nuse Adyen\\\\Model\\\\Payments\\\\Card;\\nuse Adyen\\\\Model\\\\Payments\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Payments\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\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(1500);\\n\\n$threeDS2RequestData = new ThreeDS2RequestData();\\n$threeDS2RequestData\\n  -&gt;setNotificationURL(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;)\\n  -&gt;setDeviceChannel(\\&quot;browser\\&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(false)\\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;en-GB\\&quot;)\\n  -&gt;setColorDepth(24);\\n\\n$card = new Card();\\n$card\\n  -&gt;setCvc(\\&quot;737\\&quot;)\\n  -&gt;setNumber(\\&quot;4917610000000000\\&quot;)\\n  -&gt;setHolderName(\\&quot;Simon Hopper\\&quot;)\\n  -&gt;setExpiryMonth(\\&quot;03\\&quot;)\\n  -&gt;setExpiryYear(\\&quot;2030\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setReference(\\&quot;TEST\\&quot;)\\n  -&gt;setAmount($amount)\\n  -&gt;setMerchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setThreeDS2RequestData($threeDS2RequestData)\\n  -&gt;setShopperIP(\\&quot;192.0.2.1\\&quot;)\\n  -&gt;setBrowserInfo($browserInfo)\\n  -&gt;setCard($card);\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;authorise($paymentRequest);&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.Payment;\\nusing Adyen.Service;\\n\\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 = 1500\\n};\\n\\nThreeDS2RequestData threeDS2RequestData = new ThreeDS2RequestData\\n{\\n  NotificationURL = \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n  DeviceChannel = \\&quot;browser\\&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 = false,\\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;en-GB\\&quot;,\\n  ColorDepth = 24\\n};\\n\\nCard card = new Card\\n{\\n  Cvc = \\&quot;737\\&quot;,\\n  Number = \\&quot;4917610000000000\\&quot;,\\n  HolderName = \\&quot;Simon Hopper\\&quot;,\\n  ExpiryMonth = \\&quot;03\\&quot;,\\n  ExpiryYear = \\&quot;2030\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Reference = \\&quot;TEST\\&quot;,\\n  Amount = amount,\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  ThreeDS2RequestData = threeDS2RequestData,\\n  ShopperIP = \\&quot;192.0.2.1\\&quot;,\\n  BrowserInfo = browserInfo,\\n  Card = card\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentService(client);\\nvar response = service.Authorise(paymentRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, PaymentAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\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: 1500\\n  },\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;TEST\\&quot;,\\n  threeDS2RequestData: {\\n    deviceChannel: \\&quot;browser\\&quot;,\\n    notificationURL: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&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;en-GB\\&quot;,\\n    colorDepth: 24,\\n    screenHeight: 723,\\n    screenWidth: 1536,\\n    timeZoneOffset: 0,\\n    javaEnabled: false\\n  },\\n  shopperIP: \\&quot;192.0.2.1\\&quot;,\\n  card: {\\n    cvc: \\&quot;737\\&quot;,\\n    expiryMonth: \\&quot;03\\&quot;,\\n    expiryYear: \\&quot;2030\\&quot;,\\n    holderName: \\&quot;Simon Hopper\\&quot;,\\n    number: \\&quot;4917610000000000\\&quot;\\n  }\\n}\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise(paymentRequest);&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\\\/payments\\&quot;\\n)\\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 := payments.Amount{\\n  Currency: \\&quot;EUR\\&quot;,\\n  Value: 1500,\\n}\\n\\nthreeDS2RequestData := payments.ThreeDS2RequestData{\\n  NotificationURL: common.PtrString(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;),\\n  DeviceChannel: \\&quot;browser\\&quot;,\\n}\\n\\nbrowserInfo := payments.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: false,\\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;en-GB\\&quot;,\\n  ColorDepth: 24,\\n}\\n\\ncard := payments.Card{\\n  Cvc: common.PtrString(\\&quot;737\\&quot;),\\n  Number: common.PtrString(\\&quot;4917610000000000\\&quot;),\\n  HolderName: common.PtrString(\\&quot;Simon Hopper\\&quot;),\\n  ExpiryMonth: common.PtrString(\\&quot;03\\&quot;),\\n  ExpiryYear: common.PtrString(\\&quot;2030\\&quot;),\\n}\\n\\npaymentRequest := payments.PaymentRequest{\\n  Reference: \\&quot;TEST\\&quot;,\\n  Amount: amount,\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  ThreeDS2RequestData: &amp;threeDS2RequestData,\\n  ShopperIP: common.PtrString(\\&quot;192.0.2.1\\&quot;),\\n  BrowserInfo: &amp;browserInfo,\\n  Card: &amp;card,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Payments()\\nreq := service.PaymentsApi.AuthoriseInput().PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Authorise(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;\\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;: 1500\\n  },\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;TEST\\&quot;,\\n  \\&quot;threeDS2RequestData\\&quot;: {\\n    \\&quot;deviceChannel\\&quot;: \\&quot;browser\\&quot;,\\n    \\&quot;notificationURL\\&quot;: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&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;en-GB\\&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;: False\\n  },\\n  \\&quot;shopperIP\\&quot;: \\&quot;192.0.2.1\\&quot;,\\n  \\&quot;card\\&quot;: {\\n    \\&quot;cvc\\&quot;: \\&quot;737\\&quot;,\\n    \\&quot;expiryMonth\\&quot;: \\&quot;03\\&quot;,\\n    \\&quot;expiryYear\\&quot;: \\&quot;2030\\&quot;,\\n    \\&quot;holderName\\&quot;: \\&quot;Simon Hopper\\&quot;,\\n    \\&quot;number\\&quot;: \\&quot;4917610000000000\\&quot;\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise(request=json_request)&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'\\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; 1500\\n  },\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'TEST',\\n  :threeDS2RequestData =&gt; {\\n    :deviceChannel =&gt; 'browser',\\n    :notificationURL =&gt; 'https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL'\\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; 'en-GB',\\n    :colorDepth =&gt; 24,\\n    :screenHeight =&gt; 723,\\n    :screenWidth =&gt; 1536,\\n    :timeZoneOffset =&gt; 0,\\n    :javaEnabled =&gt; false\\n  },\\n  :shopperIP =&gt; '192.0.2.1',\\n  :card =&gt; {\\n    :cvc =&gt; '737',\\n    :expiryMonth =&gt; '03',\\n    :expiryYear =&gt; '2030',\\n    :holderName =&gt; 'Simon Hopper',\\n    :number =&gt; '4917610000000000'\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise(request_body)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, PaymentAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.payment.Amount = {\\n  currency: \\&quot;EUR\\&quot;,\\n  value: 1500\\n};\\n\\nconst threeDS2RequestData: Types.payment.ThreeDS2RequestData = {\\n  notificationURL: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n  deviceChannel: \\&quot;browser\\&quot;\\n};\\n\\nconst browserInfo: Types.payment.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: false,\\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;en-GB\\&quot;,\\n  colorDepth: 24\\n};\\n\\nconst card: Types.payment.Card = {\\n  cvc: \\&quot;737\\&quot;,\\n  number: \\&quot;4917610000000000\\&quot;,\\n  holderName: \\&quot;Simon Hopper\\&quot;,\\n  expiryMonth: \\&quot;03\\&quot;,\\n  expiryYear: \\&quot;2030\\&quot;\\n};\\n\\nconst paymentRequest: Types.payment.PaymentRequest = {\\n  reference: \\&quot;TEST\\&quot;,\\n  amount: amount,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  threeDS2RequestData: threeDS2RequestData,\\n  shopperIP: \\&quot;192.0.2.1\\&quot;,\\n  browserInfo: browserInfo,\\n  card: card\\n};\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise(paymentRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You receive a response containing:<\/p>\n<ul>\n<li><code>resultCode<\/code>:\u00a0<strong>IdentifyShopper<\/strong> or\u00a0<strong>ChallengeShopper<\/strong>. Perform the corresponding <a href=\"#get-the-3d-secure-2-device-fingerprint\">3D Secure 2 device fingerprinting<\/a> or\u00a0<a href=\"#present-a-challenge\">Present a challenge to the shopper<\/a>\u00a0flows.\u00a0If the transaction is exempted from 3D Secure 2, you might get an\u00a0<strong>Authorised<\/strong>\u00a0result code.<\/li>\n<\/ul>\n<div class=\"sc-notice note\"><div>\n<p>To optimize authorization rates, Adyen's <a href=\"https:\/\/www.adyen.com\/knowledge-hub\/psd2-simplified-with-our-new-authentication-engine\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Authentication Engine<\/a> routes each payment to either the 3D Secure 2 or the 3D Secure 1 flow, based on issuer performance. See\u00a0<a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2#3d-secure-1-fallback\">3D Secure fallback<\/a> for more information.<\/p>\n<\/div><\/div>\n<div class=\"notices green\">\n<p>For a complete list of\u00a0<code>resultCode<\/code>\u00a0values and the actions that you need to take, see\u00a0<a href=\"\/pt\/online-payments\/payment-result-codes\">Result codes<\/a>.<\/p>\n<\/div>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response - IdentifyShopper'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"additionalData\\\": {\\n        \\\"threeds2.threeDSServerTransID\\\": \\\"f8062b92-66e9-4c5a-979a-f465e66a6e48\\\",\\n        \\\"threeds2.threeDS2Token\\\": \\\"BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\\",\\n        \\\"threeds2.threeDSMethodURL\\\": \\\"https:\\\/\\\/pal-test.adyen.com\\\/threeds2simulator\\\/acs\\\/threedsmethodURL.shtml\\\"\\n    },\\n    \\\"pspReference\\\": \\\"8835494629682519\\\",\\n    \\\"resultCode\\\": \\\"IdentifyShopper\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"get-the-3d-secure-2-device-fingerprint\">Step 2: Get the 3D Secure 2 device fingerprint<\/h2>\n<p>If your server receives an\u00a0 <strong>IdentifyShopper<\/strong> <code>resultCode<\/code>, start the 3D Secure 2\u00a0device fingerprinting process. Otherwise, skip this step.<\/p>\n<ol>\n<li>\n<p><a id=\"api-response-identify\"><\/a>Get the following values from the\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>\u00a0response:<\/p>\n<ul>\n<li><code>threeds2.threeDSServerTransID<\/code><\/li>\n<li><code>threeds2.threeDSMethodURL<\/code><\/li>\n<li><code>threeds2.threeDS2Token<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Create the\u00a0<code>threeDSMethod<\/code>\u00a0object with the\u00a0<code>threeds2.threeDSServerTransID<\/code>\u00a0and\u00a0<code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code>.<\/p>\n<pre><code>const dataObj =\n{ threeDSServerTransID : serverTransactionID, threeDSMethodNotificationURL : YOUR_3DS_METHOD_NOTIFICATION_URL };<\/code><\/pre>\n<\/li>\n<li>\n<p>Stringify the object.<\/p>\n<pre><code>const stringifiedDataObject = JSON.stringify(dataObj);<\/code><\/pre>\n<\/li>\n<li>\n<p>Base64url encode the object.<\/p>\n<pre><code>const encodedJSON = base64Url.encode(stringifiedDataObject);<\/code><\/pre>\n<\/li>\n<li>\n<p>Render a hidden HTML iframe in the browser, and send an HTTP POST\u00a0to the\u00a0<code>threeDSMethodURL<\/code>\u00a0with a\u00a0<code>threeDSMethodData<\/code>\u00a0field containing the base64url encoded JSON object.<\/p>\n<pre><code class=\"language-bash\">&lt;form method=\"POST\" action=\"${threeDSMethodURL}\" id=\"3dform\" target=\"NAME_OF_YOUR_IFRAME\"&gt;\n  &lt;input type=\"hidden\" name=\"threeDSMethodData\" value=\"${encodedJSON}\" \/&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p>Wait for the issuer's response which will be posted in your\u00a0<code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code>\u00a0within 10 seconds after you sent the HTTP POST. If do not get any response within 10 seconds, proceed to the next step.<\/p>\n<p>The issuer will post the <code>threeDSMethodData<\/code>. This contains the base64encoded <code>threeDSServerTransID<\/code> which you can use to identify which request the webhook event is for.<\/p>\n<pre><code class=\"language-bash\">threeDSMethodData=eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImY4MDYyYjkyLTY2ZTktNGM1YS05NzlhLWY0NjVlNjZhNmU0OCJ9<\/code><\/pre>\n<pre><code class=\"language-json\">{\"threeDSServerTransID\":\"f8062b92-66e9-4c5a-979a-f465e66a6e48\"}<\/code><\/pre>\n<\/li>\n<li>\n<p>Make a POST\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise3ds2\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise3ds2<\/a>\u00a0request from your server, specifying:<\/p>\n<ul>\n<li><code>threeDS2Token<\/code> from the <a href=\"#api-response-identify\">API response<\/a><\/li>\n<li><code>threeDSCompInd<\/code>: If you received a response in <code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code> within 10 seconds, set this to <strong>Y<\/strong>. Otherwise, set this to <strong>N<\/strong>.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Request - Submit device fingerprint'\" :id=\"'request--submit-device-fingerprint-6754485587'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/pal-test.adyen.com\\\/pal\\\/servlet\\\/Payment\\\/v68\\\/authorise3ds2 \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n   \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;threeDS2RequestData\\&quot;:{\\n      \\&quot;threeDSCompInd\\&quot;:\\&quot;Y\\&quot;\\n   },\\n   \\&quot;threeDS2Token\\&quot;:\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v26.3.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.payment.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nThreeDS2RequestData threeDS2RequestData2 = new ThreeDS2RequestData()\\n  .threeDSCompInd(\\&quot;Y\\&quot;);\\n\\nPaymentRequest3ds2 paymentRequest3ds2 = new PaymentRequest3ds2()\\n  .threeDS2Token(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;)\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  .threeDS2RequestData(threeDS2RequestData2);\\n\\n\\\/\\\/ Send the request\\npaymentApi service = new paymentApi(client);\\nPaymentResult response = service.authorise3ds2(paymentRequest3ds2, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v18.2.1\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Payments\\\\ThreeDS2RequestData;\\nuse Adyen\\\\Model\\\\Payments\\\\PaymentRequest3ds2;\\nuse Adyen\\\\Service\\\\Payments\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$threeDS2RequestData2 = new ThreeDS2RequestData();\\n$threeDS2RequestData2\\n  -&gt;setThreeDSCompInd(\\&quot;Y\\&quot;);\\n\\n$paymentRequest3ds2 = new PaymentRequest3ds2();\\n$paymentRequest3ds2\\n  -&gt;setThreeDS2Token(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;)\\n  -&gt;setMerchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setThreeDS2RequestData($threeDS2RequestData2);\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;authorise3ds2($paymentRequest3ds2);&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.Payment;\\nusing Adyen.Service;\\n\\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)\\nThreeDS2RequestData threeDS2RequestData2 = new ThreeDS2RequestData\\n{\\n  ThreeDSCompInd = \\&quot;Y\\&quot;\\n};\\n\\nPaymentRequest3ds2 paymentRequest3ds2 = new PaymentRequest3ds2\\n{\\n  ThreeDS2Token = \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;,\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  ThreeDS2RequestData = threeDS2RequestData2\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentService(client);\\nvar response = service.Authorise3ds2(paymentRequest3ds2);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, PaymentAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest3ds2 = {\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  threeDS2RequestData: {\\n    threeDSCompInd: \\&quot;Y\\&quot;\\n  },\\n  threeDS2Token: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise3ds2(paymentRequest3ds2);&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\\\/payments\\&quot;\\n)\\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)\\nthreeDS2RequestData2 := payments.ThreeDS2RequestData{\\n  ThreeDSCompInd: common.PtrString(\\&quot;Y\\&quot;),\\n}\\n\\npaymentRequest3ds2 := payments.PaymentRequest3ds2{\\n  ThreeDS2Token: common.PtrString(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;),\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  ThreeDS2RequestData: &amp;threeDS2RequestData2,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Payments()\\nreq := service.PaymentsApi.Authorise3ds2Input().PaymentRequest3ds2(paymentRequest3ds2)\\nres, httpRes, err := service.PaymentsApi.Authorise3ds2(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;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;threeDS2RequestData\\&quot;: {\\n    \\&quot;threeDSCompInd\\&quot;: \\&quot;Y\\&quot;\\n  },\\n  \\&quot;threeDS2Token\\&quot;: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise3ds2(request=json_request)&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'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :threeDS2RequestData =&gt; {\\n    :threeDSCompInd =&gt; 'Y'\\n  },\\n  :threeDS2Token =&gt; 'BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...'\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise3ds2(request_body)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, PaymentAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst threeDS2RequestData2: Types.payment.ThreeDS2RequestData = {\\n  threeDSCompInd: \\&quot;Y\\&quot;\\n};\\n\\nconst paymentRequest3ds2: Types.payment.PaymentRequest3ds2 = {\\n  threeDS2Token: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  threeDS2RequestData: threeDS2RequestData2\\n};\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise3ds2(paymentRequest3ds2);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You receive a response containing a\u00a0<code>resultCode<\/code>:<\/p>\n<ul>\n<li><strong>Authorised<\/strong>:\u00a0Indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services.\u00a0<\/li>\n<li><strong>ChallengeShopper<\/strong>: The issuer has requested further shopper interaction. Perform the\u00a0<a href=\"#present-a-challenge\">Challenge flow<\/a>.<\/li>\n<\/ul>\n<p>For a complete list of\u00a0<code>resultCode<\/code>\u00a0values and the actions you need to take, see\u00a0<a href=\"\/pt\/online-payments\/payment-result-codes\">Result codes<\/a>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Response - ChallengeShopper'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"additionalData\\\":{\\n      \\\"threeds2.threeDS2ResponseData.dsReferenceNumber\\\":\\\"ADYEN-DS-SIMULATOR\\\",\\n      \\\"threeds2.threeDS2ResponseData.transStatus\\\":\\\"C\\\",\\n      \\\"threeds2.threeDS2ResponseData.acsChallengeMandated\\\":\\\"Y\\\",\\n      \\\"threeds2.threeDS2ResponseData.acsURL\\\":\\\"http:\\\\\\\/\\\\\\\/localhost:8080\\\\\\\/threeds2simulator\\\\\\\/services\\\\\\\/ThreeDS2Simulator\\\\\\\/v1\\\\\\\/handle\\\\\\\/eb9c6eb3-57b3-400d-bf2f-4e72bd69dcec\\\",\\n      \\\"threeds2.threeDS2ResponseData.threeDSServerTransID\\\":\\\"c9200190-5ffe-11e8-954f-2677777ae710\\\",\\n      \\\"threeds2.threeDS2ResponseData.authenticationType\\\":\\\"01\\\",\\n      \\\"threeds2.threeDS2ResponseData.dsTransID\\\":\\\"73aab3ce-eb39-49e8-8e9b-46fb77a472f1\\\",\\n      \\\"threeds2.threeDS2ResponseData.messageVersion\\\":\\\"2.1.0\\\",\\n      \\\"threeds2.threeDS2Token\\\":\\\"BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\\",\\n      \\\"threeds2.threeDS2ResponseData.acsTransID\\\":\\\"eb9c6eb3-57b3-400d-bf2f-4e72b779dcec\\\",\\n      \\\"threeds2.threeDS2ResponseData.acsReferenceNumber\\\":\\\"ADYEN-ACS-SIMULATOR\\\"\\n   },\\n   \\\"pspReference\\\":\\\"9935272408577755\\\",\\n   \\\"resultCode\\\":\\\"ChallengeShopper\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"present-a-challenge\">Step 3: Present a challenge<\/h2>\n<p>If your server receives\u00a0<strong>ChallengeShopper<\/strong> <code>resultCode<\/code>, this means that the issuer would like to perform additional checks in order to verify that the shopper is indeed the cardholder.<\/p>\n<ol>\n<li>\n<p><a id=\"api-response-challenge\"><\/a>Get the following parameters from the\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>\u00a0response or from\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise3ds2\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise3ds2<\/a>\u00a0if you are proceeding from the\u00a0<strong>IdentifyShopper<\/strong>\u00a0flow.<\/p>\n<ul>\n<li><code>threeds2.threeDS2Token<\/code><\/li>\n<li><code>threeds2.threeDS2ResponseData.threeDSServerTransID<\/code><\/li>\n<li><code>threeds2.threeDS2ResponseData.acsTransID<\/code><\/li>\n<li><code>threeds2.threeDS2ResponseData.messageVersion<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Create a\u00a0<code>cReqData<\/code>\u00a0object.\u00a0<\/p>\n<pre><code class=\"language-java\">const cReqData = {\nthreeDSServerTransID : pResp.additionalData['threeds2.threeDS2ResponseData.threeDSServerTransID'],\nacsTransID : pResp.additionalData['threeds2.threeDS2ResponseData.acsTransID'],\nmessageVersion : pResp.additionalData['threeds2.threeDS2ResponseData.messageVersion'],\nchallengeWindowSize : '05',\nmessageType : 'CReq'\n}<\/code><\/pre>\n<p>Set the\u00a0<code>challengeWindowSize<\/code>\u00a0to any of the following specifications:<\/p>\n<table><colgroup><col style=\"width: 39%\"><col style=\"width: 60%\"><\/colgroup><thead><tr class=\"header\"><th>identifier<\/th><th>size<\/th><\/tr><\/thead><tbody><tr><td>\n<p>01<\/p>\n<\/td><td>\n<p>250px x 400px<\/p>\n<\/td><\/tr><tr><td>\n<p>02<\/p>\n<\/td><td>\n<p>390px x 400px<\/p>\n<\/td><\/tr><tr><td>\n<p>03<\/p>\n<\/td><td>\n<p>500px x 600px<\/p>\n<\/td><\/tr><tr><td>\n<p>04<\/p>\n<\/td><td>\n<p>600px x 400px<\/p>\n<\/td><\/tr><tr><td>\n<p>05<\/p>\n<\/td><td>\n<p>100% x 100%<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<\/li>\n<li>\n<p>Stringify the object.<\/p>\n<pre><code class=\"language-js\">    const stringifiedDataObject = JSON.stringify(cReqData);<\/code><\/pre>\n<\/li>\n<li>\n<p>Base64url encode the\u00a0<code>CReqData<\/code>\u00a0object.<\/p>\n<pre><code class=\"language-js\">    const encodedcReq = base64Url.encode(stringifiedDataObject);<\/code><\/pre>\n<\/li>\n<li>\n<p>Render an iframe in the browser, and send an HTTP POST\u00a0with a\u00a0<code>creq<\/code>\u00a0field containing the encoded\u00a0<code>CReq<\/code>\u00a0to the\u00a0<code>threeds2.threeDS2ResponseData.acsURL<\/code>. This will initiate the challenge window in the iframe.<\/p>\n<pre><code class=\"language-bash\">&lt;form method=\"POST\" action=\"${threeds2.threeDS2ResponseData.acsURL}\" id=\"3dschallenge\" target=\"NAME_OF_YOUR_IFRAME\"&gt;\n  &lt;input name=\"creq\" value=\"${encodedcReq}\" \/&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p>After the shopper has passed the challenge in the iframe, wait for the issuer's response which will be posted to\u00a0<code>YOUR_3DS_NOTIFICATION_URL<\/code>\u00a0within 10 minutes after you sent the HTTP POST.\u00a0The response will contain the Challenge Response (<code>CRes<\/code>) in a base64url encoded format.\u00a0<\/p>\n<p>If you do not receive a response within 10 minutes, assume that something went wrong or the shopper aborted the transaction. Skip the next step and proceed to step 8.<\/p>\n<pre><code class=\"language-bash\">cres=eyJtZXNzYWdlVHlwZSI6IkNSZXMiLCJtZXNzYWdlVmVyc2lvbiI6IjIuMS4wIiwidGhyZWVEU1NlcnZlclRyYW5zSUQiOiI1ZWY2MzBiMC03NmQwLTRmY2It...<\/code><\/pre>\n<\/li>\n<li>\n<p>Base64url decode the response and get the\u00a0<code>transStatus<\/code>\u00a0value.<\/p>\n<pre><code class=\"language-json\">{\n  \"messageType\":\"CRes\",\n  \"messageVersion\":\"2.1.0\",\n  \"threeDSServerTransID\":\"5ef630b0-76d0-4fcb-8a17-c81ecc86cff7\",\n  \"acsTransID\":\"1f1bb4cc-05c9-49d0-a82c-e587c914a37b\",\n  \"acsUiType\":\"01\",\n  \"challengeCompletionInd\":\"Y\",\n  \"transStatus\":\"Y\"\n}<\/code><\/pre>\n<\/li>\n<li>\n<p>Make a POST\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise3ds2\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise3ds2<\/a>\u00a0request from your server and submit the\u00a0<code>transStatus<\/code>\u00a0from the decoded message in the previous step and the\u00a0<code>threeDS2Token<\/code>\u00a0from the <a href=\"#api-response-challenge\">API response<\/a> as parameters.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>If you do not receive a response in\u00a0<code>YOUR_3DS_NOTIFICATION_URL<\/code>\u00a0within 10 minutes, send\u00a0<code>transStatus: U<\/code>\u00a0to Adyen to indicate that authentication or account verification could not be performed.<\/p>\n<\/div><\/div>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Request - Submit challenge result'\" :id=\"'request--submit-challenge-result-7540316678'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/pal-test.adyen.com\\\/pal\\\/servlet\\\/Payment\\\/v68\\\/authorise3ds2 \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n    \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n    \\&quot;threeDS2Result\\&quot;: {\\n        \\&quot;transStatus\\&quot;: \\&quot;Y\\&quot;\\n    },\\n    \\&quot;threeDS2Token\\&quot;: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v32.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.payment.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nThreeDS2Result threeDS2Result2 = new ThreeDS2Result()\\n  .transStatus(\\&quot;Y\\&quot;);\\n\\nPaymentRequest3ds2 paymentRequest3ds2 = new PaymentRequest3ds2()\\n  .threeDS2Result(threeDS2Result2)\\n  .threeDS2Token(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;)\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;);\\n\\n\\\/\\\/ Send the request\\npaymentApi service = new paymentApi(client);\\nPaymentResult response = service.authorise3ds2(paymentRequest3ds2, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v23.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Payments\\\\ThreeDS2Result;\\nuse Adyen\\\\Model\\\\Payments\\\\PaymentRequest3ds2;\\nuse Adyen\\\\Service\\\\Payments\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$threeDS2Result2 = new ThreeDS2Result();\\n$threeDS2Result2\\n  -&gt;setTransStatus(\\&quot;Y\\&quot;);\\n\\n$paymentRequest3ds2 = new PaymentRequest3ds2();\\n$paymentRequest3ds2\\n  -&gt;setThreeDS2Result($threeDS2Result2)\\n  -&gt;setThreeDS2Token(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;)\\n  -&gt;setMerchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;);\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;authorise3ds2($paymentRequest3ds2);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v26.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Payment;\\nusing Adyen.Service;\\n\\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)\\nThreeDS2Result threeDS2Result2 = new ThreeDS2Result\\n{\\n  TransStatus = \\&quot;Y\\&quot;\\n};\\n\\nPaymentRequest3ds2 paymentRequest3ds2 = new PaymentRequest3ds2\\n{\\n  ThreeDS2Result = threeDS2Result2,\\n  ThreeDS2Token = \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;,\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentService(client);\\nvar response = service.Authorise3ds2(paymentRequest3ds2);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v22.1.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, PaymentAPI } = require('@adyen\\\/api-library');\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest3ds2 = {\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  threeDS2Result: {\\n    transStatus: \\&quot;Y\\&quot;\\n  },\\n  threeDS2Token: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise3ds2(paymentRequest3ds2);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v16.1.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\\\/payments\\&quot;\\n)\\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)\\nthreeDS2Result2 := payments.ThreeDS2Result{\\n  TransStatus: common.PtrString(\\&quot;Y\\&quot;),\\n}\\n\\npaymentRequest3ds2 := payments.PaymentRequest3ds2{\\n  ThreeDS2Result: &amp;threeDS2Result2,\\n  ThreeDS2Token: common.PtrString(\\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;),\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Payments()\\nreq := service.PaymentsApi.Authorise3ds2Input().PaymentRequest3ds2(paymentRequest3ds2)\\nres, httpRes, err := service.PaymentsApi.Authorise3ds2(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v13.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;threeDS2Result\\&quot;: {\\n    \\&quot;transStatus\\&quot;: \\&quot;Y\\&quot;\\n  },\\n  \\&quot;threeDS2Token\\&quot;: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise3ds2(request=json_request)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v10.1.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :threeDS2Result =&gt; {\\n    :transStatus =&gt; 'Y'\\n  },\\n  :threeDS2Token =&gt; 'BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...'\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise3ds2(request_body)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v22.1.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, PaymentAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\nconst client = new Client({ apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot; });\\n\\n\\\/\\\/ Create the request object(s)\\nconst threeDS2Result2: Types.payment.ThreeDS2Result = {\\n  transStatus: \\&quot;Y\\&quot;\\n};\\n\\nconst paymentRequest3ds2: Types.payment.PaymentRequest3ds2 = {\\n  threeDS2Result: threeDS2Result2,\\n  threeDS2Token: \\&quot;BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\\\/8L64WIAqaOGZipbZod7n+E=...\\&quot;,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise3ds2(paymentRequest3ds2);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You receive\u00a0<strong>Authorised<\/strong>\u00a0as the\u00a0<code>resultCode<\/code>\u00a0if the payment was successful.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Response - Authorised'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"additionalData\\\": {\\n        \\\"liabilityShift\\\": \\\"true\\\",\\n        \\\"authCode\\\": \\\"44402\\\",\\n        \\\"avsResult\\\": \\\"4 AVS not supported for this card type\\\",\\n        \\\"threeDOffered\\\": \\\"true\\\",\\n        \\\"refusalReasonRaw\\\": \\\"AUTHORISED\\\",\\n        \\\"authorisationMid\\\": \\\"1000\\\",\\n        \\\"acquirerAccountCode\\\": \\\"TestPmmAcquirerAccount\\\",\\n        \\\"cvcResult\\\": \\\"1 Matches\\\",\\n        \\\"avsResultRaw\\\": \\\"4\\\",\\n        \\\"threeDAuthenticated\\\": \\\"true\\\",\\n        \\\"cvcResultRaw\\\": \\\"M\\\",\\n        \\\"acquirerCode\\\": \\\"TestPmmAcquirer\\\",\\n        \\\"acquirerReference\\\": \\\"7CASOGMCCB4\\\"\\n    },\\n    \\\"pspReference\\\": \\\"8825495331860022\\\",\\n    \\\"resultCode\\\": \\\"Authorised\\\",\\n    \\\"authCode\\\": \\\"44402\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"optional-prefetch-device-fingerprinting-keys\">Optional: Prefetch device fingerprinting keys<\/h2>\n<div class=\"notices yellow\">\n<p>To enable this functionality, contact our <a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a>.<\/p>\n<\/div>\n<p>You can opt to retrieve and cache 3D Secure device fingerprint keys for specific BIN ranges. When you cache the keys, you reduce the number of calls for each transaction as you can already start with performing 3D Secure 2 device fingerprinting.<\/p>\n<p>To use cached keys for your authentication flow, you will need to:<\/p>\n<ol>\n<li><a href=\"#get-the-3d-secure-2-method-url\">Retrieve and cache threeDSMethodURL<\/a>\u00a0once for each BIN.<\/li>\n<li><a href=\"#generate-a-3d-secure-2-server-transaction-id\">Generate a threeDSServerTransID<\/a>\u00a0for each transaction.<\/li>\n<li><a href=\"#perform-3d-secure-2-device-fingerprinting\">Perform 3D Secure 2 device fingerprinting<\/a> and submit the result in a payment request.<\/li>\n<li><a href=\"#present-a-challenge\">Present a challenge<\/a>\u00a0if required by the issuer.<\/li>\n<\/ol>\n<div class=\"sc-notice note\"><div>\n<p>Make sure to update your cache regularly to get the latest keys and to avoid getting your transactions refused.<\/p>\n<\/div><\/div>\n<h3 id=\"get-the-3d-secure-2-method-url\">Get the 3D Secure 2 Method URL<\/h3>\n<p>To retrieve device fingerprinting keys, submit a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/BinLookup\/latest\/post\/get3dsAvailability\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">get3dsAvailability<\/a> request with a\u00a0<code>cardNumber<\/code>\u00a0from a BIN range you want to prefetch the keys for, along with your\u00a0<code>merchantAccount<\/code>.<\/p>\n<h4 id=\"sample-request-with-card-number\">Sample request with card number<\/h4>\n<ul>\n<li><code>cardNumber<\/code><\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Request with card number'\" :id=\"'request-with-card-number-4808078195'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/pal-test.adyen.com\\\/pal\\\/servlet\\\/Payment\\\/v54\\\/get3dsAvailability \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n   \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;cardNumber\\&quot;:\\&quot;4917610000000000\\&quot;\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Response for card number'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"binDetails\\\": {\\n    \\\"issuerCountry\\\": \\\"PL\\\"\\n  },\\n  \\\"dsPublicKeys\\\": [\\n    {\\n      \\\"brand\\\": \\\"visa\\\",\\n      \\\"directoryServerId\\\": \\\"F013371337\\\",\\n      \\\"publicKey\\\": \\\"eyJrdHkiOiJSU0==..\\\"\\n    }\\n  ],\\n  \\\"threeDS1Supported\\\": true,\\n  \\\"threeDS2CardRangeDetails\\\": [\\n    {\\n      \\\"brandCode\\\": \\\"visa\\\",\\n      \\\"endRange\\\": \\\"491761000000\\\",\\n      \\\"startRange\\\": \\\"491761000000\\\",\\n      \\\"threeDS2Version\\\": \\\"2.1.0\\\",\\n      \\\"threeDSMethodURL\\\": \\\"https:\\\/\\\/pal-test.adyen.com\\\/threeds2simulator\\\/acs\\\/startMethod.shtml\\\"\\n    }\\n  ],\\n  \\\"threeDS2supported\\\": true\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Cache the values of the following parameter for the specific BIN range:<\/p>\n<ul>\n<li><code>threeDS2CardRangeDetails.threeDSMethodURL<\/code><\/li>\n<\/ul>\n<div class=\"sc-notice note\"><div>\n<p>If a card is registered with multiple 3D Secure 2 schemes, the\u00a0<code>threeDS2CardRangeDetails<\/code>\u00a0array might contain a\u00a0<code>threeDSMethodURL<\/code>\u00a0for each scheme.<\/p>\n<\/div><\/div>\n<h3 id=\"generate-a-3d-secure-2-server-transaction-id\">Generate a 3D Secure 2 server transaction ID<\/h3>\n<p>The\u00a0<code>threeDSServerTransID<\/code>\u00a0is a universally unique transaction identifier required when exchanging data between your shopper's browser and the issuer during the device fingerprinting process.<\/p>\n<p>Generate a\u00a0<code>threeDSServerTransID<\/code>\u00a0for each authentication transaction according to the following specifications:<\/p>\n<ul>\n<li>Length: 36 characters<\/li>\n<li>JSON Data Type: String<\/li>\n<li>Value accepted:\u00a0Canonical format as defined in\u00a0<a href=\"https:\/\/tools.ietf.org\/html\/rfc4122\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">IETF RFC 4122<\/a>. May use any of the specified versions if the output meets specified requirements.<\/li>\n<\/ul>\n<p>For more information on the requirements, see\u00a0<a href=\"https:\/\/www.emvco.com\/emv-technologies\/3-d-secure\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">EMVCo specifications<\/a>.<\/p>\n<p>Next, use the cached\u00a0<code>threeDS2CardRangeDetails.threeDSMethodURL<\/code>\u00a0and the\u00a0<code>threeDSServerTransID<\/code>\u00a0you generated\u00a0to\u00a0get the shopper's 3D Secure 2 device fingerprint.<\/p>\n<h3 id=\"perform-3d-secure-2-device-fingerprinting\">Perform 3D Secure 2 device fingerprinting<\/h3>\n<ol>\n<li>\n<p>Create the\u00a0<code>threeDSMethod<\/code>\u00a0object with the\u00a0<code>threeds2.threeDSServerTransID<\/code>\u00a0and\u00a0<code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code>.<\/p>\n<pre><code>const dataObj =\n{ threeDSServerTransID : serverTransactionID, threeDSMethodNotificationURL : YOUR_3DS_METHOD_NOTIFICATION_URL };<\/code><\/pre>\n<\/li>\n<li>\n<p>Stringify the object.<\/p>\n<pre><code>const stringifiedDataObject = JSON.stringify(dataObj);<\/code><\/pre>\n<\/li>\n<li>\n<p>Base64url encode the object.<\/p>\n<pre><code>const encodedJSON = base64Url.encode(stringifiedDataObject);<\/code><\/pre>\n<\/li>\n<li>\n<p>Render a hidden HTML iframe in the browser, and send an HTTP POST\u00a0to the\u00a0<code>threeDSMethodURL<\/code>\u00a0with a\u00a0<code>threeDSMethodData<\/code>\u00a0field containing the base64url encoded JSON object.<\/p>\n<pre><code class=\"language-bash\">&lt;form method=\"POST\" action=\"${threeDSMethodURL}\" id=\"3dform\"&gt;\n  &lt;input type=\"hidden\" name=\"threeDSMethodData\" value=\"${encodedJSON}\" \/&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p>Wait for the issuer's response which will be posted in your\u00a0<code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code>\u00a0within 10 seconds from sending the HTTP POST. If do not get any response within 10 seconds, proceed to the next step.<\/p>\n<p>The issuer will post the <code>threeDSMethodData<\/code>. This contains the base64encoded <code>threeDSServerTransID<\/code> which you can use to identify which request the webhook event is for.<\/p>\n<pre><code class=\"language-bash\">threeDSMethodData=eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImY4MDYyYjkyLTY2ZTktNGM1YS05NzlhLWY0NjVlNjZhNmU0OCJ9<\/code><\/pre>\n<pre><code class=\"language-json\"> {\"threeDSServerTransID\":\"f8062b92-66e9-4c5a-979a-f465e66a6e48\"}<\/code><\/pre>\n<\/li>\n<li>\n<p><a id=\"cachedkeypayment\"><\/a> Make a POST\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>request from your server and include the\u00a0<code>threeDSCompInd<\/code>.<\/p>\n<\/li>\n<\/ol>\n<div class=\"sc-notice note\"><div>\n<p>If you receive a response to <code>YOUR_3DS_METHOD_NOTIFICATION_URL<\/code> within 10 seconds, send <code>threeDSCompInd : Y<\/code>. Otherwise, send <code>threeDSCompInd : N<\/code>.<\/p>\n<\/div><\/div>\n<div class=\"sc-notice note\"><div>\n<p>You can send <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/api-reference-3d-secure-2#3d-secure-2-additional-parameters\">additional parameters<\/a> for better authorization rates, and to increase the chance of a frictionless flow. You do not have to send all the additional parameters.  Send parameters that you know you can provide accurately, or that are mandatory in specific scenarios.<\/p>\n<\/div><\/div>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Request'\" :id=\"'request-6447594091'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/pal-test.adyen.com\\\/pal\\\/servlet\\\/Payment\\\/v68\\\/authorise \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n  \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;:\\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;:{\\n    \\&quot;currency\\&quot;:\\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;:1500\\n  },\\n  \\&quot;threeDS2RequestData\\&quot;:{\\n    \\&quot;deviceChannel\\&quot;:\\&quot;browser\\&quot;,\\n    \\&quot;notificationURL\\&quot;:\\&quot;https:\\\\\\\/\\\\\\\/www.example.com\\\\\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n    \\&quot;threeDSCompInd\\&quot;:\\&quot;Y\\&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;en\\&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;:false\\n  },\\n  \\&quot;card\\&quot;:{\\n    \\&quot;cvc\\&quot;:\\&quot;737\\&quot;,\\n    \\&quot;expiryMonth\\&quot;:\\&quot;03\\&quot;,\\n    \\&quot;expiryYear\\&quot;:\\&quot;2030\\&quot;,\\n    \\&quot;holderName\\&quot;:\\&quot;Simon Hopper\\&quot;,\\n    \\&quot;number\\&quot;:\\&quot;4917610000000000\\&quot;\\n  }\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v26.3.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.payment.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.*;\\n\\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(1500L);\\n\\nThreeDS2RequestData threeDS2RequestData = new ThreeDS2RequestData()\\n  .notificationURL(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;)\\n  .threeDSCompInd(\\&quot;Y\\&quot;)\\n  .deviceChannel(\\&quot;browser\\&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(false)\\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;en\\&quot;)\\n  .colorDepth(24);\\n\\nCard card = new Card()\\n  .cvc(\\&quot;737\\&quot;)\\n  .number(\\&quot;4917610000000000\\&quot;)\\n  .holderName(\\&quot;Simon Hopper\\&quot;)\\n  .expiryMonth(\\&quot;03\\&quot;)\\n  .expiryYear(\\&quot;2030\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .reference(\\&quot;YOUR_ORDER_NUMBER\\&quot;)\\n  .amount(amount)\\n  .merchantAccount(\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;)\\n  .threeDS2RequestData(threeDS2RequestData)\\n  .browserInfo(browserInfo)\\n  .card(card);\\n\\n\\\/\\\/ Send the request\\npaymentApi service = new paymentApi(client);\\nPaymentResult response = service.authorise(paymentRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v18.2.1\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Payments\\\\Amount;\\nuse Adyen\\\\Model\\\\Payments\\\\ThreeDS2RequestData;\\nuse Adyen\\\\Model\\\\Payments\\\\BrowserInfo;\\nuse Adyen\\\\Model\\\\Payments\\\\Card;\\nuse Adyen\\\\Model\\\\Payments\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Payments\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\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(1500);\\n\\n$threeDS2RequestData = new ThreeDS2RequestData();\\n$threeDS2RequestData\\n  -&gt;setNotificationURL(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;)\\n  -&gt;setThreeDSCompInd(\\&quot;Y\\&quot;)\\n  -&gt;setDeviceChannel(\\&quot;browser\\&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(false)\\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;en\\&quot;)\\n  -&gt;setColorDepth(24);\\n\\n$card = new Card();\\n$card\\n  -&gt;setCvc(\\&quot;737\\&quot;)\\n  -&gt;setNumber(\\&quot;4917610000000000\\&quot;)\\n  -&gt;setHolderName(\\&quot;Simon Hopper\\&quot;)\\n  -&gt;setExpiryMonth(\\&quot;03\\&quot;)\\n  -&gt;setExpiryYear(\\&quot;2030\\&quot;);\\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;setThreeDS2RequestData($threeDS2RequestData)\\n  -&gt;setBrowserInfo($browserInfo)\\n  -&gt;setCard($card);\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;authorise($paymentRequest);&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.Payment;\\nusing Adyen.Service;\\n\\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 = 1500\\n};\\n\\nThreeDS2RequestData threeDS2RequestData = new ThreeDS2RequestData\\n{\\n  NotificationURL = \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n  ThreeDSCompInd = \\&quot;Y\\&quot;,\\n  DeviceChannel = \\&quot;browser\\&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 = false,\\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;en\\&quot;,\\n  ColorDepth = 24\\n};\\n\\nCard card = new Card\\n{\\n  Cvc = \\&quot;737\\&quot;,\\n  Number = \\&quot;4917610000000000\\&quot;,\\n  HolderName = \\&quot;Simon Hopper\\&quot;,\\n  ExpiryMonth = \\&quot;03\\&quot;,\\n  ExpiryYear = \\&quot;2030\\&quot;\\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  ThreeDS2RequestData = threeDS2RequestData,\\n  BrowserInfo = browserInfo,\\n  Card = card\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentService(client);\\nvar response = service.Authorise(paymentRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, PaymentAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: {\\n    currency: \\&quot;EUR\\&quot;,\\n    value: 1500\\n  },\\n  threeDS2RequestData: {\\n    deviceChannel: \\&quot;browser\\&quot;,\\n    notificationURL: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n    threeDSCompInd: \\&quot;Y\\&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;en\\&quot;,\\n    colorDepth: 24,\\n    screenHeight: 723,\\n    screenWidth: 1536,\\n    timeZoneOffset: 0,\\n    javaEnabled: false\\n  },\\n  card: {\\n    cvc: \\&quot;737\\&quot;,\\n    expiryMonth: \\&quot;03\\&quot;,\\n    expiryYear: \\&quot;2030\\&quot;,\\n    holderName: \\&quot;Simon Hopper\\&quot;,\\n    number: \\&quot;4917610000000000\\&quot;\\n  }\\n}\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise(paymentRequest);&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\\\/payments\\&quot;\\n)\\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 := payments.Amount{\\n  Currency: \\&quot;EUR\\&quot;,\\n  Value: 1500,\\n}\\n\\nthreeDS2RequestData := payments.ThreeDS2RequestData{\\n  NotificationURL: common.PtrString(\\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;),\\n  ThreeDSCompInd: common.PtrString(\\&quot;Y\\&quot;),\\n  DeviceChannel: \\&quot;browser\\&quot;,\\n}\\n\\nbrowserInfo := payments.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: false,\\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;en\\&quot;,\\n  ColorDepth: 24,\\n}\\n\\ncard := payments.Card{\\n  Cvc: common.PtrString(\\&quot;737\\&quot;),\\n  Number: common.PtrString(\\&quot;4917610000000000\\&quot;),\\n  HolderName: common.PtrString(\\&quot;Simon Hopper\\&quot;),\\n  ExpiryMonth: common.PtrString(\\&quot;03\\&quot;),\\n  ExpiryYear: common.PtrString(\\&quot;2030\\&quot;),\\n}\\n\\npaymentRequest := payments.PaymentRequest{\\n  Reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount: amount,\\n  MerchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  ThreeDS2RequestData: &amp;threeDS2RequestData,\\n  BrowserInfo: &amp;browserInfo,\\n  Card: &amp;card,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Payments()\\nreq := service.PaymentsApi.AuthoriseInput().PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Authorise(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;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;: 1500\\n  },\\n  \\&quot;threeDS2RequestData\\&quot;: {\\n    \\&quot;deviceChannel\\&quot;: \\&quot;browser\\&quot;,\\n    \\&quot;notificationURL\\&quot;: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n    \\&quot;threeDSCompInd\\&quot;: \\&quot;Y\\&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;en\\&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;: False\\n  },\\n  \\&quot;card\\&quot;: {\\n    \\&quot;cvc\\&quot;: \\&quot;737\\&quot;,\\n    \\&quot;expiryMonth\\&quot;: \\&quot;03\\&quot;,\\n    \\&quot;expiryYear\\&quot;: \\&quot;2030\\&quot;,\\n    \\&quot;holderName\\&quot;: \\&quot;Simon Hopper\\&quot;,\\n    \\&quot;number\\&quot;: \\&quot;4917610000000000\\&quot;\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise(request=json_request)&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'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_NUMBER',\\n  :amount =&gt; {\\n    :currency =&gt; 'EUR',\\n    :value =&gt; 1500\\n  },\\n  :threeDS2RequestData =&gt; {\\n    :deviceChannel =&gt; 'browser',\\n    :notificationURL =&gt; 'https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL',\\n    :threeDSCompInd =&gt; 'Y'\\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; 'en',\\n    :colorDepth =&gt; 24,\\n    :screenHeight =&gt; 723,\\n    :screenWidth =&gt; 1536,\\n    :timeZoneOffset =&gt; 0,\\n    :javaEnabled =&gt; false\\n  },\\n  :card =&gt; {\\n    :cvc =&gt; '737',\\n    :expiryMonth =&gt; '03',\\n    :expiryYear =&gt; '2030',\\n    :holderName =&gt; 'Simon Hopper',\\n    :number =&gt; '4917610000000000'\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.payment.payments_api.authorise(request_body)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v17.3.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, PaymentAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.payment.Amount = {\\n  currency: \\&quot;EUR\\&quot;,\\n  value: 1500\\n};\\n\\nconst threeDS2RequestData: Types.payment.ThreeDS2RequestData = {\\n  notificationURL: \\&quot;https:\\\/\\\/www.example.com\\\/YOUR_3DS_NOTIFICATION_URL\\&quot;,\\n  threeDSCompInd: \\&quot;Y\\&quot;,\\n  deviceChannel: \\&quot;browser\\&quot;\\n};\\n\\nconst browserInfo: Types.payment.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: false,\\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;en\\&quot;,\\n  colorDepth: 24\\n};\\n\\nconst card: Types.payment.Card = {\\n  cvc: \\&quot;737\\&quot;,\\n  number: \\&quot;4917610000000000\\&quot;,\\n  holderName: \\&quot;Simon Hopper\\&quot;,\\n  expiryMonth: \\&quot;03\\&quot;,\\n  expiryYear: \\&quot;2030\\&quot;\\n};\\n\\nconst paymentRequest: Types.payment.PaymentRequest = {\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: amount,\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  threeDS2RequestData: threeDS2RequestData,\\n  browserInfo: browserInfo,\\n  card: card\\n};\\n\\n\\\/\\\/ Send the request\\nconst paymentAPI = new PaymentAPI(client);\\nconst response = paymentAPI.authorise(paymentRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h6>Response<\/h6>\n<p>You'll receive a response containing a\u00a0<code>resultCode<\/code>\u00a0that can either be:<\/p>\n<ul>\n<li><strong>Authorised<\/strong>: Indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services.\u00a0<\/li>\n<li><strong>ChallengeShopper<\/strong>: The issuer has requested further shopper interaction. Perform the\u00a0<a href=\"#present-a-challenge\">Challenge flow<\/a>.<\/li>\n<\/ul>\n<p>For a complete list of\u00a0<code>resultCode<\/code>\u00a0values and the actions that you need to take, see\u00a0<a href=\"\/pt\/online-payments\/payment-result-codes\">Result codes<\/a>.<\/p>\n<pre><code class=\"language-json\">    {\n       \"additionalData\":{\n          \"threeds2.threeDS2ResponseData.dsReferenceNumber\":\"ADYEN-DS-SIMULATOR\",\n          \"threeds2.threeDS2ResponseData.transStatus\":\"C\",\n          \"threeds2.threeDS2ResponseData.acsChallengeMandated\":\"Y\",\n          \"threeds2.threeDS2ResponseData.acsURL\":\"http:\\\/\\\/localhost:8080\\\/threeds2simulator\\\/services\\\/ThreeDS2Simulator\\\/v1\\\/handle\\\/eb9c6eb3-57b3-400d-bf2f-4e72bd69dcec\",\n          \"threeds2.threeDS2ResponseData.threeDSServerTransID\":\"c9200190-5ffe-11e8-954f-2677777ae710\",\n          \"threeds2.threeDS2ResponseData.authenticationType\":\"01\",\n          \"threeds2.threeDS2ResponseData.dsTransID\":\"73aab3ce-eb39-49e8-8e9b-46fb77a472f1\",\n          \"threeds2.threeDS2ResponseData.messageVersion\":\"2.1.0\",\n          \"threeds2.threeDS2Token\":\"BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\/8L64WIAqaOGZipbZod7n+E=...\",\n          \"threeds2.threeDS2ResponseData.acsTransID\":\"eb9c6eb3-57b3-400d-bf2f-4e72b779dcec\",\n          \"threeds2.threeDS2ResponseData.acsReferenceNumber\":\"ADYEN-ACS-SIMULATOR\"\n       },\n       \"pspReference\":\"9935272408577755\",\n       \"resultCode\":\"ChallengeShopper\"\n    }<\/code><\/pre>\n<h2 id=\"testing-3d-secure-2\">Testing 3D Secure 2<\/h2>\n<p>Before going live, use the following card numbers and credentials to\u00a0test your integration.<\/p>\n<p>We recommend testing each\u00a0<strong>Card Type<\/strong>.<\/p>\n<p>To test how your integration handles different 3D Secure 2 authentication scenarios, use our test card numbers.<\/p>\n<p>All our test cards use the following expiry dates and security codes:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Expiry Date<\/th>\n<th style=\"text-align: left;\">CVC\/CVV<\/th>\n<th style=\"text-align: left;\">CID<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">03\/2030<\/td>\n<td style=\"text-align: left;\">737<\/td>\n<td style=\"text-align: left;\">7373<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When prompted for 3D Secure 2 text challenges, use the following credentials:<\/p>\n<ul>\n<li>For mobile, use password: <strong>1234<\/strong><\/li>\n<li>For web, use password: <strong>password<\/strong><\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Card Type<\/th>\n<th style=\"text-align: left;\">Card Number<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Cartes Bancaires<\/td>\n<td style=\"text-align: left;\">4035 5014 2814 6300<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Maestro <a href=\"#nocvc\">\n  <sup>1<\/sup>\n<\/a><\/td>\n<td style=\"text-align: left;\">5000 5500 0000 0029<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Mastercard<\/td>\n<td style=\"text-align: left;\">5454 5454 5454 5454<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Visa<\/td>\n<td style=\"text-align: left;\">4917 6100 0000 0000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a id=\"nocvc\"><\/a> <sup>1<\/sup> This card doesn't require a CVC.<\/p>\n<p>When you make a payment request with these cards, you'll receive the following result codes depending on your integration:<\/p>\n<ul>\n<li><strong>RedirectShopper<\/strong>: You'll receive this result code if you are using the <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/3d-secure-1\">Redirect authentication<\/a>.<\/li>\n<li><strong>IdentifyShopper<\/strong>:  You'll receive this result code if you are using the <a href=\"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\">Native authentication<\/a>.<\/li>\n<li><strong>ChallengeShopper<\/strong>: You might get this result code after you submit the 3D Secure 2 device fingerprinting result in a Native authentication, indicating a challenge flow.<\/li>\n<\/ul>\n<!-- list separator -->\n<p>To test the web-based flow where the device fingerprinting step is skipped (because the issuer's ACS has not configured a <code>threeDSMethodURL<\/code>), and you get a <strong>ChallengeShopper<\/strong> <code>resultCode<\/code> <em>immediately<\/em> after submitting the payment request, use the following card:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Card Type<\/th>\n<th style=\"text-align: left;\">Card Number<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Visa<\/td>\n<td style=\"text-align: left;\">4212 3456 7891 0006<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To test the frictionless flow, specify in your payment request:<\/p>\n<ul>\n<li><code>amount.value<\/code>: <strong>12002<\/strong><\/li>\n<\/ul>\n<h4 id=\"app-based-integration\">App-based integration<\/h4>\n<p>To test different authentication scenarios for app-based integration, use the following test cards:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Card number<\/th>\n<th style=\"text-align: left;\">Authentication scenario<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">5201 2855 6567 2311<\/td>\n<td style=\"text-align: left;\">Basic text authentication<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2874 9905 2008<\/td>\n<td style=\"text-align: left;\">Basic single select<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2815 9233 1633<\/td>\n<td style=\"text-align: left;\">Basic multi select<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2888 2269 6974<\/td>\n<td style=\"text-align: left;\">Basic out-of-band (OOB) authentication<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2895 0084 3268<\/td>\n<td style=\"text-align: left;\">HTML OOB authentication<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2861 5377 1465<\/td>\n<td style=\"text-align: left;\">App single select then text authentication<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"other-scenarios\">Other scenarios<\/h4>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Card number<\/th>\n<th style=\"text-align: left;\">Scenario<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">4199 3500 0000 0002<\/td>\n<td style=\"text-align: left;\">The card is not enrolled for 3D Secure transactions,<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">5201 2829 9900 5515<\/td>\n<td style=\"text-align: left;\">There was a technical error.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/browser-based-integration","articleFields":{"description":"Support 3D Secure 2 authentication on your website using your existing\u00a0classic API integration.","parameters":{"anchor_new":"<a href=\/online-payments\/3d-secure\/native-3ds2>Native 3D Secure 2 on Checkout API<\/a>","parent_page":"Classic API (<code>\/authorise<\/code>)","new_desc":"integrating using our Checkout APIs"},"sitemap":{"priority":0.3},"id":"47484543","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"14-01-2021 16:40"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/browser-based-integration","title":"Browser-based integration","content":"\nAdyen is no longer developing the Classic API integration\nThis page is for the Classic API (\/authorise) integration, which we no longer accept new integrations with. \nWe strongly recommend migrating to the newer Native 3D Secure 2 on Checkout API integration. To use this newer integration, you must also migrate to the Checkout API.\n\nHow it works\nIn a full implementation, a payment eligible for 3D Secure 2 can go through either a frictionless or a challenge authentication flow before the payment is authorised.\u00a0To support both flows, you need to\u00a0build your own client-side and server-side implementation, with the option of using our\u00a0helper functions.\nIf you only want to perform a 3D Secure 2 authentication and then authorise the payment later, see the Authentication-only integration page.\n\nThe use of helper functions replaces the Web 3D Secure 2 SDK implementation. If you are currently using Web 3D Secure 2 SDK and require assistance, contact\u00a0Support Team.\n\nHere's a diagram for a 3D Secure 2 browser-based full implementation:\n\n\nSubmit a payment request\u00a0with the required 3D Secure 2 objects to start the authentication process.\u00a0Build your implementation depending on the\u00a0resultCode\u00a0returned in the response.\nGet the 3D Secure device fingerprint. If you receive an\u00a0IdentifyShopper resultCode, you need to get the shopper's 3D Secure 2 device fingerprint. Create an iframe on the browser, send a device fingerprint request to the issuer, and then send the result to Adyen. If you get a response with an\u00a0Authorised resultCode, this indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed.\nPresent a challenge to the shopper.\u00a0If you receive\u00a0ChallengeShopper resultCode, this means that the issuer requires further shopper interaction. Depending on the logic on issuer's side, this result code can be returned after you submit a payment request or after you submit the device fingerprint result to Adyen.\u00a0To handle a challenge flow, create an iframe, send a challenge request to the issuer, and then submit the challenge result to Adyen.\u00a0\n\nTo optimize authorization rates, Adyen's Authentication Engine routes each payment to either the 3D Secure 2 or the 3D Secure 1 flow, based on issuer performance. If you do not want to automatically fall back to 3D Secure 1, contact Support Team.\nFor a complete list of\u00a0resultCode\u00a0values and the actions that you need to take, see\u00a0Result codes.\nBefore\u00a0you begin\nBefore you begin to integrate, make sure you have followed the Get started with Adyen guide to:\n\nGet an overview of the steps needed to accept live payments.\nCreate your test account.\n\nAfter you have created your test account:\n\nGet your API Key. Save a copy\u00a0as you'll need it for API calls you make to the\u00a0plataforma de pagamentos da Adyen.\nInstall one of our\u00a0Libraries\u00a0to connect with the Adyen APIs. For more information on these steps, refer to\u00a0Get started with Adyen.\n\nSet up the following webhooks. The issuer will send an HTTP POST containing the 3D Secure 2 device fingerprinting process and the challenge result to these URLs.\n\nYOUR_3DS_METHOD_NOTIFICATION_URL: Absolute URL\u00a0to where the issuer can post the result of the 3D Secure device fingerprinting process.\u00a0\nYOUR_3DS_NOTIFICATION_URL: Absolute URL to where the issuer can post a base64url encoded Challenge Response (CRes)\u00a0message, containing the challenge result.\n\n\n\nIntegration steps\n\nCollect the shopper's card details and proceed to\u00a0submit a payment request.\u00a0\nUse the resultCode\u00a0from the response to determine your next action. For example, to complete a 3D Secure 2 authentication flow, you might need to get the\u00a03D Secure 2 device fingerprint, or\u00a0present a challenge\u00a0to the shopper, or both.\n\nTo test your integration, see Testing 3D Secure 2.\nStep 1: Submit a payment request\nSubmit a payment request with a POST\u00a0\/authorise\u00a0call. Include the\u00a0threeDS2RequestData\u00a0and\u00a0browserInfo\u00a0objects to indicate that you are ready to accept 3D Secure 2 authenticated\u00a0payments.\n\nthreeDS2RequestData.deviceChannel:\u00a0browser.\nbrowserInfo: Collect information about your shopper's browser.\nthreeDS2RequestData.notificationURL:\u00a0YOUR_3DS_NOTIFICATION_URL\n\nFor the data-only flow, use a dummy value for your notificationURL. For example, https:\/\/www.example.com.\n\n\nYou can send additional parameters for better authorization rates, and to increase the chance of a frictionless flow. You do not have to send all the additional parameters.  Send parameters that you know you can provide accurately, or that are mandatory in specific scenarios.\n\n\nHere is an example of how to make a request for a EUR&nbsp;150 purchase:\n\n    \n\nYou receive a response containing:\n\nresultCode:\u00a0IdentifyShopper or\u00a0ChallengeShopper. Perform the corresponding 3D Secure 2 device fingerprinting or\u00a0Present a challenge to the shopper\u00a0flows.\u00a0If the transaction is exempted from 3D Secure 2, you might get an\u00a0Authorised\u00a0result code.\n\n\nTo optimize authorization rates, Adyen's Authentication Engine routes each payment to either the 3D Secure 2 or the 3D Secure 1 flow, based on issuer performance. See\u00a03D Secure fallback for more information.\n\n\nFor a complete list of\u00a0resultCode\u00a0values and the actions that you need to take, see\u00a0Result codes.\n\n\n    \n\nStep 2: Get the 3D Secure 2 device fingerprint\nIf your server receives an\u00a0 IdentifyShopper resultCode, start the 3D Secure 2\u00a0device fingerprinting process. Otherwise, skip this step.\n\n\nGet the following values from the\u00a0\/authorise\u00a0response:\n\nthreeds2.threeDSServerTransID\nthreeds2.threeDSMethodURL\nthreeds2.threeDS2Token\n\n\n\nCreate the\u00a0threeDSMethod\u00a0object with the\u00a0threeds2.threeDSServerTransID\u00a0and\u00a0YOUR_3DS_METHOD_NOTIFICATION_URL.\nconst dataObj =\n{ threeDSServerTransID : serverTransactionID, threeDSMethodNotificationURL : YOUR_3DS_METHOD_NOTIFICATION_URL };\n\n\nStringify the object.\nconst stringifiedDataObject = JSON.stringify(dataObj);\n\n\nBase64url encode the object.\nconst encodedJSON = base64Url.encode(stringifiedDataObject);\n\n\nRender a hidden HTML iframe in the browser, and send an HTTP POST\u00a0to the\u00a0threeDSMethodURL\u00a0with a\u00a0threeDSMethodData\u00a0field containing the base64url encoded JSON object.\n&lt;form method=\"POST\" action=\"${threeDSMethodURL}\" id=\"3dform\" target=\"NAME_OF_YOUR_IFRAME\"&gt;\n  &lt;input type=\"hidden\" name=\"threeDSMethodData\" value=\"${encodedJSON}\" \/&gt;\n&lt;\/form&gt;\n\n\nWait for the issuer's response which will be posted in your\u00a0YOUR_3DS_METHOD_NOTIFICATION_URL\u00a0within 10 seconds after you sent the HTTP POST. If do not get any response within 10 seconds, proceed to the next step.\nThe issuer will post the threeDSMethodData. This contains the base64encoded threeDSServerTransID which you can use to identify which request the webhook event is for.\nthreeDSMethodData=eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImY4MDYyYjkyLTY2ZTktNGM1YS05NzlhLWY0NjVlNjZhNmU0OCJ9\n{\"threeDSServerTransID\":\"f8062b92-66e9-4c5a-979a-f465e66a6e48\"}\n\n\nMake a POST\u00a0\/authorise3ds2\u00a0request from your server, specifying:\n\nthreeDS2Token from the API response\nthreeDSCompInd: If you received a response in YOUR_3DS_METHOD_NOTIFICATION_URL within 10 seconds, set this to Y. Otherwise, set this to N.\n\n\n\n\nYou receive a response containing a\u00a0resultCode:\n\nAuthorised:\u00a0Indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services.\u00a0\nChallengeShopper: The issuer has requested further shopper interaction. Perform the\u00a0Challenge flow.\n\nFor a complete list of\u00a0resultCode\u00a0values and the actions you need to take, see\u00a0Result codes.\n\n\n\n\n\nStep 3: Present a challenge\nIf your server receives\u00a0ChallengeShopper resultCode, this means that the issuer would like to perform additional checks in order to verify that the shopper is indeed the cardholder.\n\n\nGet the following parameters from the\u00a0\/authorise\u00a0response or from\u00a0\/authorise3ds2\u00a0if you are proceeding from the\u00a0IdentifyShopper\u00a0flow.\n\nthreeds2.threeDS2Token\nthreeds2.threeDS2ResponseData.threeDSServerTransID\nthreeds2.threeDS2ResponseData.acsTransID\nthreeds2.threeDS2ResponseData.messageVersion\n\n\n\nCreate a\u00a0cReqData\u00a0object.\u00a0\nconst cReqData = {\nthreeDSServerTransID : pResp.additionalData['threeds2.threeDS2ResponseData.threeDSServerTransID'],\nacsTransID : pResp.additionalData['threeds2.threeDS2ResponseData.acsTransID'],\nmessageVersion : pResp.additionalData['threeds2.threeDS2ResponseData.messageVersion'],\nchallengeWindowSize : '05',\nmessageType : 'CReq'\n}\nSet the\u00a0challengeWindowSize\u00a0to any of the following specifications:\nidentifiersize\n01\n\n250px x 400px\n\n02\n\n390px x 400px\n\n03\n\n500px x 600px\n\n04\n\n600px x 400px\n\n05\n\n100% x 100%\n\n\n\nStringify the object.\n    const stringifiedDataObject = JSON.stringify(cReqData);\n\n\nBase64url encode the\u00a0CReqData\u00a0object.\n    const encodedcReq = base64Url.encode(stringifiedDataObject);\n\n\nRender an iframe in the browser, and send an HTTP POST\u00a0with a\u00a0creq\u00a0field containing the encoded\u00a0CReq\u00a0to the\u00a0threeds2.threeDS2ResponseData.acsURL. This will initiate the challenge window in the iframe.\n&lt;form method=\"POST\" action=\"${threeds2.threeDS2ResponseData.acsURL}\" id=\"3dschallenge\" target=\"NAME_OF_YOUR_IFRAME\"&gt;\n  &lt;input name=\"creq\" value=\"${encodedcReq}\" \/&gt;\n&lt;\/form&gt;\n\n\nAfter the shopper has passed the challenge in the iframe, wait for the issuer's response which will be posted to\u00a0YOUR_3DS_NOTIFICATION_URL\u00a0within 10 minutes after you sent the HTTP POST.\u00a0The response will contain the Challenge Response (CRes) in a base64url encoded format.\u00a0\nIf you do not receive a response within 10 minutes, assume that something went wrong or the shopper aborted the transaction. Skip the next step and proceed to step 8.\ncres=eyJtZXNzYWdlVHlwZSI6IkNSZXMiLCJtZXNzYWdlVmVyc2lvbiI6IjIuMS4wIiwidGhyZWVEU1NlcnZlclRyYW5zSUQiOiI1ZWY2MzBiMC03NmQwLTRmY2It...\n\n\nBase64url decode the response and get the\u00a0transStatus\u00a0value.\n{\n  \"messageType\":\"CRes\",\n  \"messageVersion\":\"2.1.0\",\n  \"threeDSServerTransID\":\"5ef630b0-76d0-4fcb-8a17-c81ecc86cff7\",\n  \"acsTransID\":\"1f1bb4cc-05c9-49d0-a82c-e587c914a37b\",\n  \"acsUiType\":\"01\",\n  \"challengeCompletionInd\":\"Y\",\n  \"transStatus\":\"Y\"\n}\n\n\nMake a POST\u00a0\/authorise3ds2\u00a0request from your server and submit the\u00a0transStatus\u00a0from the decoded message in the previous step and the\u00a0threeDS2Token\u00a0from the API response as parameters.\n\nIf you do not receive a response in\u00a0YOUR_3DS_NOTIFICATION_URL\u00a0within 10 minutes, send\u00a0transStatus: U\u00a0to Adyen to indicate that authentication or account verification could not be performed.\n\n\n\n\nYou receive\u00a0Authorised\u00a0as the\u00a0resultCode\u00a0if the payment was successful.\n\n\n\n\n\nOptional: Prefetch device fingerprinting keys\n\nTo enable this functionality, contact our Support Team.\n\nYou can opt to retrieve and cache 3D Secure device fingerprint keys for specific BIN ranges. When you cache the keys, you reduce the number of calls for each transaction as you can already start with performing 3D Secure 2 device fingerprinting.\nTo use cached keys for your authentication flow, you will need to:\n\nRetrieve and cache threeDSMethodURL\u00a0once for each BIN.\nGenerate a threeDSServerTransID\u00a0for each transaction.\nPerform 3D Secure 2 device fingerprinting and submit the result in a payment request.\nPresent a challenge\u00a0if required by the issuer.\n\n\nMake sure to update your cache regularly to get the latest keys and to avoid getting your transactions refused.\n\nGet the 3D Secure 2 Method URL\nTo retrieve device fingerprinting keys, submit a POST  get3dsAvailability request with a\u00a0cardNumber\u00a0from a BIN range you want to prefetch the keys for, along with your\u00a0merchantAccount.\nSample request with card number\n\ncardNumber\n\n\n    \n\n\n    \n\nCache the values of the following parameter for the specific BIN range:\n\nthreeDS2CardRangeDetails.threeDSMethodURL\n\n\nIf a card is registered with multiple 3D Secure 2 schemes, the\u00a0threeDS2CardRangeDetails\u00a0array might contain a\u00a0threeDSMethodURL\u00a0for each scheme.\n\nGenerate a 3D Secure 2 server transaction ID\nThe\u00a0threeDSServerTransID\u00a0is a universally unique transaction identifier required when exchanging data between your shopper's browser and the issuer during the device fingerprinting process.\nGenerate a\u00a0threeDSServerTransID\u00a0for each authentication transaction according to the following specifications:\n\nLength: 36 characters\nJSON Data Type: String\nValue accepted:\u00a0Canonical format as defined in\u00a0IETF RFC 4122. May use any of the specified versions if the output meets specified requirements.\n\nFor more information on the requirements, see\u00a0EMVCo specifications.\nNext, use the cached\u00a0threeDS2CardRangeDetails.threeDSMethodURL\u00a0and the\u00a0threeDSServerTransID\u00a0you generated\u00a0to\u00a0get the shopper's 3D Secure 2 device fingerprint.\nPerform 3D Secure 2 device fingerprinting\n\n\nCreate the\u00a0threeDSMethod\u00a0object with the\u00a0threeds2.threeDSServerTransID\u00a0and\u00a0YOUR_3DS_METHOD_NOTIFICATION_URL.\nconst dataObj =\n{ threeDSServerTransID : serverTransactionID, threeDSMethodNotificationURL : YOUR_3DS_METHOD_NOTIFICATION_URL };\n\n\nStringify the object.\nconst stringifiedDataObject = JSON.stringify(dataObj);\n\n\nBase64url encode the object.\nconst encodedJSON = base64Url.encode(stringifiedDataObject);\n\n\nRender a hidden HTML iframe in the browser, and send an HTTP POST\u00a0to the\u00a0threeDSMethodURL\u00a0with a\u00a0threeDSMethodData\u00a0field containing the base64url encoded JSON object.\n&lt;form method=\"POST\" action=\"${threeDSMethodURL}\" id=\"3dform\"&gt;\n  &lt;input type=\"hidden\" name=\"threeDSMethodData\" value=\"${encodedJSON}\" \/&gt;\n&lt;\/form&gt;\n\n\nWait for the issuer's response which will be posted in your\u00a0YOUR_3DS_METHOD_NOTIFICATION_URL\u00a0within 10 seconds from sending the HTTP POST. If do not get any response within 10 seconds, proceed to the next step.\nThe issuer will post the threeDSMethodData. This contains the base64encoded threeDSServerTransID which you can use to identify which request the webhook event is for.\nthreeDSMethodData=eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImY4MDYyYjkyLTY2ZTktNGM1YS05NzlhLWY0NjVlNjZhNmU0OCJ9\n {\"threeDSServerTransID\":\"f8062b92-66e9-4c5a-979a-f465e66a6e48\"}\n\n\n Make a POST\u00a0\/authoriserequest from your server and include the\u00a0threeDSCompInd.\n\n\n\nIf you receive a response to YOUR_3DS_METHOD_NOTIFICATION_URL within 10 seconds, send threeDSCompInd : Y. Otherwise, send threeDSCompInd : N.\n\n\nYou can send additional parameters for better authorization rates, and to increase the chance of a frictionless flow. You do not have to send all the additional parameters.  Send parameters that you know you can provide accurately, or that are mandatory in specific scenarios.\n\n\n    \n\nResponse\nYou'll receive a response containing a\u00a0resultCode\u00a0that can either be:\n\nAuthorised: Indicates that the\u00a03D Secure 2 authentication was frictionless, and the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services.\u00a0\nChallengeShopper: The issuer has requested further shopper interaction. Perform the\u00a0Challenge flow.\n\nFor a complete list of\u00a0resultCode\u00a0values and the actions that you need to take, see\u00a0Result codes.\n    {\n       \"additionalData\":{\n          \"threeds2.threeDS2ResponseData.dsReferenceNumber\":\"ADYEN-DS-SIMULATOR\",\n          \"threeds2.threeDS2ResponseData.transStatus\":\"C\",\n          \"threeds2.threeDS2ResponseData.acsChallengeMandated\":\"Y\",\n          \"threeds2.threeDS2ResponseData.acsURL\":\"http:\\\/\\\/localhost:8080\\\/threeds2simulator\\\/services\\\/ThreeDS2Simulator\\\/v1\\\/handle\\\/eb9c6eb3-57b3-400d-bf2f-4e72bd69dcec\",\n          \"threeds2.threeDS2ResponseData.threeDSServerTransID\":\"c9200190-5ffe-11e8-954f-2677777ae710\",\n          \"threeds2.threeDS2ResponseData.authenticationType\":\"01\",\n          \"threeds2.threeDS2ResponseData.dsTransID\":\"73aab3ce-eb39-49e8-8e9b-46fb77a472f1\",\n          \"threeds2.threeDS2ResponseData.messageVersion\":\"2.1.0\",\n          \"threeds2.threeDS2Token\":\"BQABAQBPCQZ98WKh3v7qGnBlUMGClVzDolIjs8w\/8L64WIAqaOGZipbZod7n+E=...\",\n          \"threeds2.threeDS2ResponseData.acsTransID\":\"eb9c6eb3-57b3-400d-bf2f-4e72b779dcec\",\n          \"threeds2.threeDS2ResponseData.acsReferenceNumber\":\"ADYEN-ACS-SIMULATOR\"\n       },\n       \"pspReference\":\"9935272408577755\",\n       \"resultCode\":\"ChallengeShopper\"\n    }\nTesting 3D Secure 2\nBefore going live, use the following card numbers and credentials to\u00a0test your integration.\nWe recommend testing each\u00a0Card Type.\nTo test how your integration handles different 3D Secure 2 authentication scenarios, use our test card numbers.\nAll our test cards use the following expiry dates and security codes:\n\n\n\nExpiry Date\nCVC\/CVV\nCID\n\n\n\n\n03\/2030\n737\n7373\n\n\n\nWhen prompted for 3D Secure 2 text challenges, use the following credentials:\n\nFor mobile, use password: 1234\nFor web, use password: password\n\n\n\n\nCard Type\nCard Number\n\n\n\n\nCartes Bancaires\n4035 5014 2814 6300\n\n\nMaestro \n  1\n\n5000 5500 0000 0029\n\n\nMastercard\n5454 5454 5454 5454\n\n\nVisa\n4917 6100 0000 0000\n\n\n\n 1 This card doesn't require a CVC.\nWhen you make a payment request with these cards, you'll receive the following result codes depending on your integration:\n\nRedirectShopper: You'll receive this result code if you are using the Redirect authentication.\nIdentifyShopper:  You'll receive this result code if you are using the Native authentication.\nChallengeShopper: You might get this result code after you submit the 3D Secure 2 device fingerprinting result in a Native authentication, indicating a challenge flow.\n\n\nTo test the web-based flow where the device fingerprinting step is skipped (because the issuer's ACS has not configured a threeDSMethodURL), and you get a ChallengeShopper resultCode immediately after submitting the payment request, use the following card:\n\n\n\nCard Type\nCard Number\n\n\n\n\nVisa\n4212 3456 7891 0006\n\n\n\nTo test the frictionless flow, specify in your payment request:\n\namount.value: 12002\n\nApp-based integration\nTo test different authentication scenarios for app-based integration, use the following test cards:\n\n\n\nCard number\nAuthentication scenario\n\n\n\n\n5201 2855 6567 2311\nBasic text authentication\n\n\n5201 2874 9905 2008\nBasic single select\n\n\n5201 2815 9233 1633\nBasic multi select\n\n\n5201 2888 2269 6974\nBasic out-of-band (OOB) authentication\n\n\n5201 2895 0084 3268\nHTML OOB authentication\n\n\n5201 2861 5377 1465\nApp single select then text authentication\n\n\n\nOther scenarios\n\n\n\nCard number\nScenario\n\n\n\n\n4199 3500 0000 0002\nThe card is not enrolled for 3D Secure transactions,\n\n\n5201 2829 9900 5515\nThere was a technical error.\n\n\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Classic integrations for Ecommerce","lvl3":"Classic API integration","lvl4":"3D Secure authentication","lvl5":"Native 3D Secure 2 authentication","lvl6":"Browser-based 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\/classic-integrations","lvl3":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration","lvl4":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication","lvl5":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2","lvl6":"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/3d-secure-authentication\/native-3ds2\/browser-based-integration"},"levels":7,"category":"Online Payments","category_color":"green","tags":["Browser-based","integration"]},"articleFiles":{"3ds2-browser-based.png":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/60.classic-integrations\/01.classic-api-integration\/03.3d-secure-authentication\/09.native-3ds2\/01.browser-based-integration\/3ds2-browser-based.png\" \/>","request--submit-challenge-result-7540316678.js":"<p alt=\"\">request--submit-challenge-result-7540316678.js<\/p>","request--submit-device-fingerprint-6754485587.js":"<p alt=\"\">request--submit-device-fingerprint-6754485587.js<\/p>","request-6447594091.js":"<p alt=\"\">request-6447594091.js<\/p>","request-9741667944.js":"<p alt=\"\">request-9741667944.js<\/p>"}}
