{"title":"Klarna Drop-in integration","category":"default","creationDate":1738743240,"content":"<p>This page explains how to add Klarna to your existing Web Drop-in integration.<\/p>\n<p>With our Web Drop-in integration, you can accept Klarna payments using either:<\/p>\n<ul>\n<li><strong>The Klarna widget<\/strong>: The shopper completes the payment in your checkout.<br \/>\nFor more information about the Klarna widget, see the <a href=\"https:\/\/docs.klarna.com\/resources\/legal-and-compliance\/payment-solutions-guidelines\/eu\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna documentation<\/a>.<\/li>\n<li><strong>Redirect to Klarna<\/strong>: The shopper is redirected to Klarna to complete the payment.<\/li>\n<\/ul>\n<h2>Requirements<\/h2>\n<p>Select the <a href=\"\/pt\/online-payments\/build-your-integration\">server-side flow<\/a> that your integration uses:<\/p>\n\n<div id=\"tabBQDTK\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built a Sessions flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Web&amp;amp;integration=Drop-in\\&quot;&gt;Web Drop-in integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add Klarna in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-requirements_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built an Advanced flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Web&amp;amp;integration=Drop-in\\&quot;&gt;Web Drop-in integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add Klarna in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-requirements_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Import resources for v6<\/h2>\n<p>If you are using Web Drop-in v6, import the resources you need for Klarna:<\/p>\n<pre><code class=\"language-js\">import { AdyenCheckout, Klarna} from '@adyen\/adyen-web'<\/code><\/pre>\n<h2>API reference<\/h2>\n<p>Select which endpoint you are using:<\/p>\n\n<div id=\"tabj3KHF\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;&lt;code&gt;\\\/sessions&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;This is the default with &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Web&amp;amp;integration=Drop-in\\&quot;&gt;Drop-in v5.0.0&lt;\\\/a&gt; or later.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Parameter name&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-lineItems\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;lineItems&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Price and product information about the purchased items.&lt;br&gt;Klarna only approves the payment if the total amount specified in &lt;code&gt;lineItems&lt;\\\/code&gt; matches the &lt;code&gt;amount.value&lt;\\\/code&gt;, and each line item contains a &lt;code&gt;description&lt;\\\/code&gt;. &lt;br&gt; You can optionally specify &lt;code&gt;productUrl&lt;\\\/code&gt; and &lt;code&gt;imageUrl&lt;\\\/code&gt; to include a link to and a picture of the purchased items in the invoice.&lt;br\\\/&gt;See &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna\\\/airlines\\\/\\&quot;&gt;Klarna for airlines&lt;\\\/a&gt; for details on how to use &lt;code&gt;lineItems&lt;\\\/code&gt; when payments are made to an airline.&lt;br&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-shopperEmail\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperEmail&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt; &lt;br&gt;See note&lt;a href=\\&quot;#shopperEmail\\&quot;&gt;\\n  &lt;sup&gt;1&lt;\\\/sup&gt;\\n&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s email address. This is where Klarna will send the payment instructions. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__reqParam_shopperReference\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A unique reference to identify the shopper (minimum length three characters).&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-shopperName\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperName&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s full name. &lt;br&gt; Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-billingAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;billingAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal address of the shopper. &lt;br&gt; Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-deliveryAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;deliveryAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal address where the purchased goods should be delivered. If not provided, this is the same as the billing address.  &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;. &lt;br&gt;&lt;br&gt;If the recipient name is different from the shopper making the payment, specify &lt;code&gt;deliveryAddress.firstName&lt;\\\/code&gt; and &lt;code&gt;deliveryAddress.lastName&lt;\\\/code&gt; to share the recipient name with Klarna.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__reqParam_shopperLocale\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperLocale&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A combination of language code and country code to define the language of\\u00a0the Klarna checkout page. By default, the checkout page is rendered is English.&lt;br&gt;&lt;br&gt; This has to match the &lt;code&gt;countryCode&lt;\\\/code&gt; and &lt;code&gt;currency&lt;\\\/code&gt; used in the request. For more information, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/puchase-countries-currencies-locales\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__reqParam_countryCode\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;countryCode&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna#supported-countries\\&quot;&gt;country&lt;\\\/a&gt;. &lt;br&gt;&lt;br&gt; This has to match the country of the &lt;code&gt;billingAddress&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-telephoneNumber\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;telephoneNumber&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s telephone number, if provided. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__reqParam_additionalData-AdditionalDataOpenInvoice-openinvoicedata-merchantData\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;additionalData.&lt;br \\\/&gt;openinvoicedata.merchantData&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;For some products or business models, Klarna may require additional information. If you need to send in this information, specify here the Base64 encoded JSON of the &lt;code&gt;attachment.body&lt;\\\/code&gt; value described in &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/api\\\/attachment-schema\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;. &lt;br\\\/&gt;See &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna\\\/airlines\\\/\\&quot;&gt;Klarna for airlines&lt;\\\/a&gt; for details on how to use &lt;code&gt;additionalData&lt;\\\/code&gt; when payments are made to an airline.&lt;br&gt; Do not include this in the test environment, because test values cause an error.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;&lt;a id=\\&quot;shopperEmail\\&quot;&gt;&lt;\\\/a&gt;&lt;sup&gt;1&lt;\\\/sup&gt;You need to include &lt;code&gt;shopperEmail&lt;\\\/code&gt; to defend against potential disputes from shoppers.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;&#039;\\&quot; :id=\\&quot;&#039;klarna-sessions&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v70\\\\\\\/sessions \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1996-09-04\\\\&amp;quot;,\\\\n  \\\\&amp;quot;socialSecurityNumber\\\\&amp;quot;: \\\\&amp;quot;0108\\\\&amp;quot;,\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [\\\\n    {\\\\n      \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n      \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n      \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n      \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n      \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n      \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n      \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n    },\\\\n    {\\\\n      \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n      \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n      \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n      \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n      \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n      \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n      \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n    }\\\\n  ]\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v27.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount()\\\\n  .currency(\\\\&amp;quot;SEK\\\\&amp;quot;)\\\\n  .value(1000L);\\\\n\\\\nLineItem lineItem1 = new LineItem()\\\\n  .quantity(1L)\\\\n  .taxPercentage(2100L)\\\\n  .imageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  .amountIncludingTax(400L)\\\\n  .productUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\nLineItem lineItem2 = new LineItem()\\\\n  .quantity(2L)\\\\n  .taxPercentage(2100L)\\\\n  .imageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  .amountIncludingTax(300L)\\\\n  .productUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\nName name = new Name()\\\\n  .firstName(\\\\&amp;quot;Testperson-se\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;Approved\\\\&amp;quot;);\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\\\n  .country(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;)\\\\n  .socialSecurityNumber(\\\\&amp;quot;0108\\\\&amp;quot;)\\\\n  .shopperEmail(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;)\\\\n  .reference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\\\n  .shopperName(name)\\\\n  .merchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .deliveryAddress(deliveryAddress)\\\\n  .countryCode(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .shopperLocale(\\\\&amp;quot;en_US\\\\&amp;quot;)\\\\n  .billingAddress(billingAddress)\\\\n  .returnUrl(\\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  .shopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nCreateCheckoutSessionResponse response = service.sessions(createCheckoutSessionRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v19.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Amount;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\LineItem;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Name;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\DeliveryAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\BillingAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\CreateCheckoutSessionRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$amount = new Amount();\\\\n$amount\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;SEK\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(1000);\\\\n\\\\n$lineItem1 = new LineItem();\\\\n$lineItem1\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setImageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(400)\\\\n  -&amp;gt;setProductUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\n$lineItem2 = new LineItem();\\\\n$lineItem2\\\\n  -&amp;gt;setQuantity(2)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setImageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(300)\\\\n  -&amp;gt;setProductUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\n$name = new Name();\\\\n$name\\\\n  -&amp;gt;setFirstName(\\\\&amp;quot;Testperson-se\\\\&amp;quot;)\\\\n  -&amp;gt;setLastName(\\\\&amp;quot;Approved\\\\&amp;quot;);\\\\n\\\\n$deliveryAddress = new DeliveryAddress();\\\\n$deliveryAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\n$createCheckoutSessionRequest = new CreateCheckoutSessionRequest();\\\\n$createCheckoutSessionRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;)\\\\n  -&amp;gt;setSocialSecurityNumber(\\\\&amp;quot;0108\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;)\\\\n  -&amp;gt;setReference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  -&amp;gt;setLineItems(array($lineItem1, $lineItem2))\\\\n  -&amp;gt;setShopperName($name)\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setDeliveryAddress($deliveryAddress)\\\\n  -&amp;gt;setCountryCode(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperLocale(\\\\&amp;quot;en_US\\\\&amp;quot;)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setReturnUrl(\\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;sessions($createCheckoutSessionRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v17.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount\\\\n{\\\\n  Currency = \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  Value = 1000\\\\n};\\\\n\\\\nLineItem lineItem1 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  TaxPercentage = 2100,\\\\n  ImageUrl = \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  Description = \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  AmountIncludingTax = 400,\\\\n  ProductUrl = \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nLineItem lineItem2 = new LineItem\\\\n{\\\\n  Quantity = 2,\\\\n  TaxPercentage = 2100,\\\\n  ImageUrl = \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  Description = \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  AmountIncludingTax = 300,\\\\n  ProductUrl = \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nName name = new Name\\\\n{\\\\n  FirstName = \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n};\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\\\n{\\\\n  Country = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  SocialSecurityNumber = \\\\&amp;quot;0108\\\\&amp;quot;,\\\\n  ShopperEmail = \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  Reference = \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems = new List&amp;lt;LineItem&amp;gt;{ lineItem1, lineItem2 },\\\\n  ShopperName = name,\\\\n  MerchantAccount = \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress = deliveryAddress,\\\\n  CountryCode = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  ShopperLocale = \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  BillingAddress = billingAddress,\\\\n  AdditionalData = new Dictionary&amp;lt;string, string&amp;gt;\\\\n  ReturnUrl = \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.Sessions(createCheckoutSessionRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst createCheckoutSessionRequest = {\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n    value: 1000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n  },\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  dateOfBirth: new Date(\\\\&amp;quot;1996-09-04\\\\&amp;quot;),\\\\n  socialSecurityNumber: \\\\&amp;quot;0108\\\\&amp;quot;,\\\\n  returnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  lineItems: [ {\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  }, {\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  } ],\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.sessions(createCheckoutSessionRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v10.4.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\namount := checkout.Amount{\\\\n  Currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  Value: 1000,\\\\n}\\\\n\\\\nlineItem1 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  ImageUrl: common.PtrString(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;),\\\\n  Description: common.PtrString(\\\\&amp;quot;Shoes\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #1\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(400),\\\\n  ProductUrl: common.PtrString(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;),\\\\n}\\\\n\\\\nlineItem2 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(2),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  ImageUrl: common.PtrString(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;),\\\\n  Description: common.PtrString(\\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #2\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(300),\\\\n  ProductUrl: common.PtrString(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;),\\\\n}\\\\n\\\\nname := checkout.Name{\\\\n  FirstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;Approved\\\\&amp;quot;,\\\\n}\\\\n\\\\ndeliveryAddress := checkout.DeliveryAddress{\\\\n  Country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n}\\\\n\\\\ncreateCheckoutSessionRequest := checkout.CreateCheckoutSessionRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;),\\\\n  SocialSecurityNumber: common.PtrString(\\\\&amp;quot;0108\\\\&amp;quot;),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;),\\\\n  Reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems: []checkout.LineItem{\\\\n      lineItem1, lineItem2,\\\\n  },\\\\n  ShopperName: &amp;amp;name,\\\\n  MerchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress: &amp;amp;deliveryAddress,\\\\n  CountryCode: common.PtrString(\\\\&amp;quot;SE\\\\&amp;quot;),\\\\n  ShopperLocale: common.PtrString(\\\\&amp;quot;en_US\\\\&amp;quot;),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ReturnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference: common.PtrString(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.SessionsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).CreateCheckoutSessionRequest(createCheckoutSessionRequest)\\\\nres, httpRes, err := service.PaymentsApi.Sessions(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.5.1\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1996-09-04\\\\&amp;quot;,\\\\n  \\\\&amp;quot;socialSecurityNumber\\\\&amp;quot;: \\\\&amp;quot;0108\\\\&amp;quot;,\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.sessions(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.5.1\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :merchantAccount =&amp;gt; &#039;ADYEN_MERCHANT_ACCOUNT&#039;,\\\\n  :reference =&amp;gt; &#039;YOUR_ORDER_REFERENCE&#039;,\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;SEK&#039;,\\\\n    :value =&amp;gt; 1000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;en_US&#039;,\\\\n  :countryCode =&amp;gt; &#039;SE&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;+46 840 839 298&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;youremail@email.com&#039;,\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Testperson-se&#039;,\\\\n    :lastName =&amp;gt; &#039;Approved&#039;\\\\n  },\\\\n  :shopperReference =&amp;gt; &#039;YOUR_UNIQUE_SHOPPER_ID&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Ankeborg&#039;,\\\\n    :country =&amp;gt; &#039;SE&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;1&#039;,\\\\n    :postalCode =&amp;gt; &#039;12345&#039;,\\\\n    :street =&amp;gt; &#039;Stargatan&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Ankeborg&#039;,\\\\n    :country =&amp;gt; &#039;SE&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;1&#039;,\\\\n    :postalCode =&amp;gt; &#039;12345&#039;,\\\\n    :street =&amp;gt; &#039;Stargatan&#039;\\\\n  },\\\\n  :dateOfBirth =&amp;gt; &#039;1996-09-04&#039;,\\\\n  :socialSecurityNumber =&amp;gt; &#039;0108&#039;,\\\\n  :returnUrl =&amp;gt; &#039;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..&#039;,\\\\n  :lineItems =&amp;gt; [ {\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :id =&amp;gt; &#039;Item #1&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;400&#039;,\\\\n    :productUrl =&amp;gt; &#039;URL_TO_PURCHASED_ITEM&#039;,\\\\n    :imageUrl =&amp;gt; &#039;URL_TO_PICTURE_OF_PURCHASED_ITEM&#039;\\\\n  }, {\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :id =&amp;gt; &#039;Item #2&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;300&#039;,\\\\n    :productUrl =&amp;gt; &#039;URL_TO_PURCHASED_ITEM&#039;,\\\\n    :imageUrl =&amp;gt; &#039;URL_TO_PICTURE_OF_PURCHASED_ITEM&#039;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.sessions(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst amount: Types.checkout.Amount = {\\\\n  currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  value: 1000\\\\n};\\\\n\\\\nconst lineItem1: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  taxPercentage: 2100,\\\\n  imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  amountIncludingTax: 400,\\\\n  productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nconst lineItem2: Types.checkout.LineItem = {\\\\n  quantity: 2,\\\\n  taxPercentage: 2100,\\\\n  imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  amountIncludingTax: 300,\\\\n  productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nconst name: Types.checkout.Name = {\\\\n  firstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n};\\\\n\\\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\\\n  country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nconst createCheckoutSessionRequest: Types.checkout.CreateCheckoutSessionRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  socialSecurityNumber: \\\\&amp;quot;0108\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  lineItems: [lineItem1, lineItem2],\\\\n  shopperName: name,\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  deliveryAddress: deliveryAddress,\\\\n  countryCode: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  shopperLocale: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  billingAddress: billingAddress,\\\\n  returnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.sessions(createCheckoutSessionRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-api_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;&lt;code&gt;\\\/payments&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;If you implemented an &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\&quot;&gt;additional use case&lt;\\\/a&gt;.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter name&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-lineItems\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;lineItems&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Price and product information about the purchased items.&lt;br&gt;For Klarna to approve the payment, the total amount specified in &lt;code&gt;lineItems&lt;\\\/code&gt; must match the &lt;code&gt;amount.value&lt;\\\/code&gt;, and each line item must include a &lt;code&gt;description&lt;\\\/code&gt;. &lt;br&gt; You can optionally specify &lt;code&gt;productUrl&lt;\\\/code&gt; and &lt;code&gt;imageUrl&lt;\\\/code&gt; to include a link to and a picture of the purchased items in the invoice.&lt;br\\\/&gt;See &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna\\\/airlines\\\/\\&quot;&gt;Klarna for airlines&lt;\\\/a&gt; for details on how to use &lt;code&gt;lineItems&lt;\\\/code&gt; when payments are made to an airline.&lt;br&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperEmail\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperEmail&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt; &lt;br&gt;See note&lt;a href=\\&quot;#shopperEmail\\&quot;&gt;\\n  &lt;sup&gt;1&lt;\\\/sup&gt;\\n&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper&#039;s email address. This is where Klarna will send the payment instructions. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;A unique reference to identify the shopper (minimum length three characters).&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperName\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperName&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper&#039;s full name. &lt;br&gt; Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-billingAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;billingAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The postal address of the shopper. &lt;br&gt; Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-deliveryAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;deliveryAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The postal address where the purchased goods should be delivered. If not provided, this is the same as the billing address. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;. &lt;br&gt;&lt;br&gt;If the recipient name is different from the shopper making the payment, specify &lt;code&gt;deliveryAddress.firstName&lt;\\\/code&gt; and &lt;code&gt;deliveryAddress.lastName&lt;\\\/code&gt; to share the recipient name with Klarna.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperLocale\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperLocale&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;A combination of language code and country code to define the language of\\u00a0the Klarna checkout page. By default, the checkout page is rendered is English.&lt;br&gt;&lt;br&gt; This has to match the &lt;code&gt;countryCode&lt;\\\/code&gt; and &lt;code&gt;currency&lt;\\\/code&gt; used in the request. For more information, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/puchase-countries-currencies-locales\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-countryCode\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;countryCode&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper&#039;s &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna#supported-countries\\&quot;&gt;country&lt;\\\/a&gt;. &lt;br&gt;&lt;br&gt; This has to match the country of the &lt;code&gt;billingAddress&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-telephoneNumber\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;telephoneNumber&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The shopper&#039;s telephone number, if provided. &lt;br&gt; For requirements on this field, see &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/klarna-payments\\\/in-depth-knowledge\\\/customer-data-requirements\\\/#details-needed-per-market\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/payments__reqParam_additionalData-AdditionalDataOpenInvoice-openinvoicedata-merchantData\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;additionalData.&lt;br \\\/&gt;openinvoicedata.merchantData&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;For some products or business models, Klarna can require additional information. If you need to send in this information, specify here the Base64 encoded JSON of the &lt;code&gt;attachment.body&lt;\\\/code&gt; value described in &lt;a href=\\&quot;https:\\\/\\\/docs.klarna.com\\\/api\\\/attachment-schema\\\/\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;Klarna&#039;s documentation&lt;\\\/a&gt;. &lt;br&gt;See &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/klarna\\\/airlines\\\/\\&quot;&gt;Klarna for airlines&lt;\\\/a&gt; for details on how to use &lt;code&gt;additionalData&lt;\\\/code&gt; when payments are made to an airline.&lt;br&gt; Do not include this in the test environment, because test values cause an error.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;p&gt;&lt;a id=\\&quot;shopperEmail\\&quot;&gt;&lt;\\\/a&gt;&lt;sup&gt;1&lt;\\\/sup&gt;You need to include &lt;code&gt;shopperEmail&lt;\\\/code&gt; to defend against potential disputes from shoppers.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;&#039;\\&quot; :id=\\&quot;&#039;klarna-payments&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v72\\\\\\\/payments \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n   \\\\&amp;quot;merchantAccount\\\\&amp;quot;:\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n   \\\\&amp;quot;reference\\\\&amp;quot;:\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n   \\\\&amp;quot;paymentMethod\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;type\\\\&amp;quot;:\\\\&amp;quot;klarna\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;amount\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;currency\\\\&amp;quot;:\\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n   },\\\\n   \\\\&amp;quot;shopperLocale\\\\&amp;quot;:\\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n   \\\\&amp;quot;countryCode\\\\&amp;quot;:\\\\&amp;quot;SE\\\\&amp;quot;,\\\\n   \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperEmail\\\\&amp;quot;:\\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperName\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;firstName\\\\&amp;quot;:\\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n      \\\\&amp;quot;lastName\\\\&amp;quot;:\\\\&amp;quot;Approved\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;shopperReference\\\\&amp;quot;:\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n   \\\\&amp;quot;billingAddress\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;SE\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;12345\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;deliveryAddress\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;SE\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;12345\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;returnUrl\\\\&amp;quot;:\\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n   \\\\&amp;quot;lineItems\\\\&amp;quot;:[\\\\n      {\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxPercentage\\\\&amp;quot;:\\\\&amp;quot;2100\\\\&amp;quot;,\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n         \\\\&amp;quot;id\\\\&amp;quot;:\\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;400\\\\&amp;quot;,\\\\n         \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n         \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n      },\\\\n      {\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;2\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxPercentage\\\\&amp;quot;:\\\\&amp;quot;2100\\\\&amp;quot;,\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n         \\\\&amp;quot;id\\\\&amp;quot;:\\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;300\\\\&amp;quot;,\\\\n         \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n         \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n      }\\\\n   ]\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v27.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount()\\\\n  .currency(\\\\&amp;quot;SEK\\\\&amp;quot;)\\\\n  .value(1000L);\\\\n\\\\nLineItem lineItem1 = new LineItem()\\\\n  .quantity(1L)\\\\n  .taxPercentage(2100L)\\\\n  .imageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  .amountIncludingTax(400L)\\\\n  .productUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\nLineItem lineItem2 = new LineItem()\\\\n  .quantity(2L)\\\\n  .taxPercentage(2100L)\\\\n  .imageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  .amountIncludingTax(300L)\\\\n  .productUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\nName name = new Name()\\\\n  .firstName(\\\\&amp;quot;Testperson-se\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;Approved\\\\&amp;quot;);\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\\\n  .country(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\nKlarnaDetails klarnaDetails = new KlarnaDetails()\\\\n  .type(KlarnaDetails.TypeEnum.KLARNA);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;)\\\\n  .shopperEmail(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;)\\\\n  .reference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\\\n  .shopperName(name)\\\\n  .merchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .deliveryAddress(deliveryAddress)\\\\n  .countryCode(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  .paymentMethod(new CheckoutPaymentMethod(klarnaDetails))\\\\n  .shopperLocale(\\\\&amp;quot;en_US\\\\&amp;quot;)\\\\n  .billingAddress(billingAddress)\\\\n  .returnUrl(\\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  .shopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v19.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Amount;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\LineItem;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Name;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\DeliveryAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\CheckoutPaymentMethod;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\BillingAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$amount = new Amount();\\\\n$amount\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;SEK\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(1000);\\\\n\\\\n$lineItem1 = new LineItem();\\\\n$lineItem1\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setImageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(400)\\\\n  -&amp;gt;setProductUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\n$lineItem2 = new LineItem();\\\\n$lineItem2\\\\n  -&amp;gt;setQuantity(2)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setImageUrl(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(300)\\\\n  -&amp;gt;setProductUrl(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;);\\\\n\\\\n$name = new Name();\\\\n$name\\\\n  -&amp;gt;setFirstName(\\\\&amp;quot;Testperson-se\\\\&amp;quot;)\\\\n  -&amp;gt;setLastName(\\\\&amp;quot;Approved\\\\&amp;quot;);\\\\n\\\\n$deliveryAddress = new DeliveryAddress();\\\\n$deliveryAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\\\n$checkoutPaymentMethod\\\\n  -&amp;gt;setType(\\\\&amp;quot;klarna\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Ankeborg\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;1\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Stargatan\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;12345\\\\&amp;quot;);\\\\n\\\\n$paymentRequest = new PaymentRequest();\\\\n$paymentRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;)\\\\n  -&amp;gt;setReference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  -&amp;gt;setLineItems(array($lineItem1, $lineItem2))\\\\n  -&amp;gt;setShopperName($name)\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setDeliveryAddress($deliveryAddress)\\\\n  -&amp;gt;setCountryCode(\\\\&amp;quot;SE\\\\&amp;quot;)\\\\n  -&amp;gt;setPaymentMethod($checkoutPaymentMethod)\\\\n  -&amp;gt;setShopperLocale(\\\\&amp;quot;en_US\\\\&amp;quot;)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setReturnUrl(\\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;payments($paymentRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v17.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount\\\\n{\\\\n  Currency = \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  Value = 1000\\\\n};\\\\n\\\\nLineItem lineItem1 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  TaxPercentage = 2100,\\\\n  ImageUrl = \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  Description = \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  AmountIncludingTax = 400,\\\\n  ProductUrl = \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nLineItem lineItem2 = new LineItem\\\\n{\\\\n  Quantity = 2,\\\\n  TaxPercentage = 2100,\\\\n  ImageUrl = \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  Description = \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  AmountIncludingTax = 300,\\\\n  ProductUrl = \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nName name = new Name\\\\n{\\\\n  FirstName = \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n};\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\\\n{\\\\n  Country = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nKlarnaDetails klarnaDetails = new KlarnaDetails\\\\n{\\\\n  Type = KlarnaDetails.TypeEnum.Klarna\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  ShopperEmail = \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  Reference = \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems = new List&amp;lt;LineItem&amp;gt;{ lineItem1, lineItem2 },\\\\n  ShopperName = name,\\\\n  MerchantAccount = \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress = deliveryAddress,\\\\n  CountryCode = \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  PaymentMethod = new CheckoutPaymentMethod(klarnaDetails),\\\\n  ShopperLocale = \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  BillingAddress = billingAddress,\\\\n  ReturnUrl = \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentRequest = {\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  paymentMethod: {\\\\n    type: \\\\&amp;quot;klarna\\\\&amp;quot;\\\\n  },\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n    value: 1000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n  },\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  returnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  lineItems: [ {\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  }, {\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v10.4.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\namount := checkout.Amount{\\\\n  Currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  Value: 1000,\\\\n}\\\\n\\\\nlineItem1 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  ImageUrl: common.PtrString(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;),\\\\n  Description: common.PtrString(\\\\&amp;quot;Shoes\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #1\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(400),\\\\n  ProductUrl: common.PtrString(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;),\\\\n}\\\\n\\\\nlineItem2 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(2),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  ImageUrl: common.PtrString(\\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;),\\\\n  Description: common.PtrString(\\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #2\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(300),\\\\n  ProductUrl: common.PtrString(\\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;),\\\\n}\\\\n\\\\nname := checkout.Name{\\\\n  FirstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;Approved\\\\&amp;quot;,\\\\n}\\\\n\\\\ndeliveryAddress := checkout.DeliveryAddress{\\\\n  Country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n}\\\\n\\\\nklarnaDetails := checkout.KlarnaDetails{\\\\n  Type: \\\\&amp;quot;klarna\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n}\\\\n\\\\npaymentRequest := checkout.PaymentRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;+46 840 839 298\\\\&amp;quot;),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;youremail@email.com\\\\&amp;quot;),\\\\n  Reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems: []checkout.LineItem{\\\\n      lineItem1, lineItem2,\\\\n  },\\\\n  ShopperName: &amp;amp;name,\\\\n  MerchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress: &amp;amp;deliveryAddress,\\\\n  CountryCode: common.PtrString(\\\\&amp;quot;SE\\\\&amp;quot;),\\\\n  PaymentMethod: checkout.KlarnaDetailsAsCheckoutPaymentMethod(&amp;amp;klarnaDetails),\\\\n  ShopperLocale: common.PtrString(\\\\&amp;quot;en_US\\\\&amp;quot;),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ReturnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference: common.PtrString(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;)\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).PaymentRequest(paymentRequest)\\\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.5.1\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;klarna\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;12345\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Stargatan\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    \\\\&amp;quot;productUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;,\\\\n    \\\\&amp;quot;imageUrl\\\\&amp;quot;: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.5.1\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :merchantAccount =&amp;gt; &#039;ADYEN_MERCHANT_ACCOUNT&#039;,\\\\n  :reference =&amp;gt; &#039;YOUR_ORDER_REFERENCE&#039;,\\\\n  :paymentMethod =&amp;gt; {\\\\n    :type =&amp;gt; &#039;klarna&#039;\\\\n  },\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;SEK&#039;,\\\\n    :value =&amp;gt; 1000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;en_US&#039;,\\\\n  :countryCode =&amp;gt; &#039;SE&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;+46 840 839 298&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;youremail@email.com&#039;,\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Testperson-se&#039;,\\\\n    :lastName =&amp;gt; &#039;Approved&#039;\\\\n  },\\\\n  :shopperReference =&amp;gt; &#039;YOUR_UNIQUE_SHOPPER_ID&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Ankeborg&#039;,\\\\n    :country =&amp;gt; &#039;SE&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;1&#039;,\\\\n    :postalCode =&amp;gt; &#039;12345&#039;,\\\\n    :street =&amp;gt; &#039;Stargatan&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Ankeborg&#039;,\\\\n    :country =&amp;gt; &#039;SE&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;1&#039;,\\\\n    :postalCode =&amp;gt; &#039;12345&#039;,\\\\n    :street =&amp;gt; &#039;Stargatan&#039;\\\\n  },\\\\n  :returnUrl =&amp;gt; &#039;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..&#039;,\\\\n  :lineItems =&amp;gt; [ {\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :id =&amp;gt; &#039;Item #1&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;400&#039;,\\\\n    :productUrl =&amp;gt; &#039;URL_TO_PURCHASED_ITEM&#039;,\\\\n    :imageUrl =&amp;gt; &#039;URL_TO_PICTURE_OF_PURCHASED_ITEM&#039;\\\\n  }, {\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :id =&amp;gt; &#039;Item #2&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;300&#039;,\\\\n    :productUrl =&amp;gt; &#039;URL_TO_PURCHASED_ITEM&#039;,\\\\n    :imageUrl =&amp;gt; &#039;URL_TO_PICTURE_OF_PURCHASED_ITEM&#039;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst amount: Types.checkout.Amount = {\\\\n  currency: \\\\&amp;quot;SEK\\\\&amp;quot;,\\\\n  value: 1000\\\\n};\\\\n\\\\nconst lineItem1: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  taxPercentage: 2100,\\\\n  imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  amountIncludingTax: 400,\\\\n  productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nconst lineItem2: Types.checkout.LineItem = {\\\\n  quantity: 2,\\\\n  taxPercentage: 2100,\\\\n  imageUrl: \\\\&amp;quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\\\&amp;quot;,\\\\n  description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  amountIncludingTax: 300,\\\\n  productUrl: \\\\&amp;quot;URL_TO_PURCHASED_ITEM\\\\&amp;quot;\\\\n};\\\\n\\\\nconst name: Types.checkout.Name = {\\\\n  firstName: \\\\&amp;quot;Testperson-se\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;Approved\\\\&amp;quot;\\\\n};\\\\n\\\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\\\n  country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nconst klarnaDetails: Types.checkout.KlarnaDetails = {\\\\n  type: Types.checkout.KlarnaDetails.TypeEnum.Klarna\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Ankeborg\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Stargatan\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;12345\\\\&amp;quot;\\\\n};\\\\n\\\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;+46 840 839 298\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;youremail@email.com\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  lineItems: [lineItem1, lineItem2],\\\\n  shopperName: name,\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  deliveryAddress: deliveryAddress,\\\\n  countryCode: \\\\&amp;quot;SE\\\\&amp;quot;,\\\\n  paymentMethod: klarnaDetails,\\\\n  shopperLocale: \\\\&amp;quot;en_US\\\\&amp;quot;,\\\\n  billingAddress: billingAddress,\\\\n  returnUrl: \\\\&amp;quot;https:\\\\\\\/\\\\\\\/your-company.example.com\\\\\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-api_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<p>See examples of other Klarna-specific payment scenarios at <a href=\"\/pt\/payment-methods\/klarna\/invoice-lines\" target=\"_blank\">Invoice lines and discounts<\/a> and <a href=\"\/pt\/payment-methods\/klarna\/airlines\/\">Klarna for airlines<\/a>.<\/p>\n<h2>Drop-in configuration<\/h2>\n<h3>Required configuration<\/h3>\n<p>There are no configuration steps specific to Klarna required for Drop-in.<\/p>\n<h3>Optional configuration<\/h3>\n<p>When creating an instance of Drop-in, you can optionally mount the Klarna widget in your checkout.<\/p>\n<h4>The Klarna widget<\/h4>\n<p>To add optional configuration, include it in a configuration object. The following example shows how to enable the Klarna widget flow for Drop-in:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Show the Klarna widget'\" :id=\"''\" :code-data=\"[{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;const klarnaConfiguration = {\\n  useKlarnaWidget: true, \\\/\\\/ When set to true, the Klarna widget is shown. Set to false to initiate a redirect flow.\\n  type: \\&quot;klarna_paynow\\&quot; \\\/\\\/ Types: 'klarna_paynow' (pay now), 'klarna' (pay later), 'klarna_account' (pay over time)\\n};&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>When <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow\/?platform=Web&amp;integration=Drop-in&amp;version=latest#configure\">creating a configuration object for Drop-in<\/a>, include the <code>klarnaConfiguration<\/code> object:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'AdyenCheckout configuration'\" :id=\"''\" :code-data='[{\"language\":\"js\",\"tabTitle\":\"\",\"content\":\"const configuration = {\\n  \\\/\\\/ ...  other required configuration\\n  paymentMethodsConfiguration: { \\\/\\\/ Specify the widget flow for all Klarna types.\\n    klarna: klarnaConfiguration,\\n    klarna_account: klarnaConfiguration,\\n    klarna_paynow: klarnaConfiguration\\n  }\\n};\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"capture\">Capture the payment<\/h2>\n<p>If the <a href=\"\/pt\/online-payments\/capture#delayed-automatic-capture\">capture delay<\/a> is set to <strong>immediate<\/strong> and you comply with Klarna's Scheme Rules of shipping within 24 hours, then you can configure automatic capture when adding Klarna in your live Customer Area. Otherwise, you must <strong>manually capture Klarna payments<\/strong> within 90 days after authorization, even if you enable automatic capture on your merchant account. If the manual capture is not performed within 90 days, the authorization will expire.<\/p>\n<h3 id=\"manual-captures\">Capture manually<\/h3>\n<p>To <a href=\"\/pt\/online-payments\/capture#manual-capture\" target=\"_blank\">manually capture<\/a> a Klarna payment, make a POST request to the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a> endpoint.<\/p>\n<ol>\n<li>\n<p>When you are ready to capture the payment, make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a> request, where <code>{paymentPspReference}<\/code> is the PSP reference from the original payment (pre-authorization) response. Specify:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code>merchantAccount<\/code><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The name of your merchant account that is used to process the payment.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>amount.currency<\/code><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The three-character <a href=\"\/pt\/development-resources\/currency-codes\" target=\"_blank\">ISO currency code<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>amount.value<\/code><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The amount of the transaction, in <a href=\"\/pt\/development-resources\/currency-codes\" target=\"_blank\">minor units<\/a>.<br><br>This is the sum of the original, pre-authorized amount and all later adjustments.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>lineItems<\/code><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">Price and product information about the purchased items, to be included on the invoice sent to the shopper. <div class=\"sc-notice info\"><div>For an authorization adjustment, always specify every line item, including all captured or refunded items. See examples of Klarna-specific payment scenarios at <a href=\"\/pt\/payment-methods\/klarna\/invoice-lines\" target=\"_blank\">Invoice lines and discounts<\/a>.<\/div><\/div><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><code>reference<\/code><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">A reference that you specify for this payment modification, for use in your reconciliation process. <div class=\"sc-notice info\"><div>The <code>pspReference<\/code> you received in the initial authorization response remains the primary merchant reference, and this reference does not overwrite it. <\/div><\/div><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Klarna capture request'\" :id=\"'klarna-capture-auth-request'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments\\\/{paymentPspReference}\\\/captures \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n  \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;amount\\&quot;: {\\n      \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n      \\&quot;value\\&quot;: 21415\\n  },\\n  \\&quot;lineItems\\&quot;: [\\n    {\\n      \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n      \\&quot;amountExcludingTax\\&quot;: \\&quot;12500\\&quot;,\\n      \\&quot;taxPercentage\\&quot;: \\&quot;2000\\&quot;,\\n      \\&quot;description\\&quot;: \\&quot;Jacket\\&quot;,\\n      \\&quot;id\\&quot;: \\&quot;Item #1\\&quot;,\\n      \\&quot;taxAmount\\&quot;: \\&quot;2500\\&quot;,\\n      \\&quot;amountIncludingTax\\&quot;: \\&quot;15000\\&quot;\\n    },\\n    {\\n      \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n      \\&quot;amountExcludingTax\\&quot;: \\&quot;5346\\&quot;,\\n      \\&quot;taxPercentage\\&quot;: \\&quot;2000\\&quot;,\\n      \\&quot;description\\&quot;: \\&quot;Pants\\&quot;,\\n      \\&quot;id\\&quot;: \\&quot;Item #2\\&quot;,\\n      \\&quot;taxAmount\\&quot;: \\&quot;1069\\&quot;,\\n      \\&quot;amountIncludingTax\\&quot;: \\&quot;6415\\&quot;\\n    }\\n  ],\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_UNIQUE_REFERENCE\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v41.1.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nLineItem lineItem1 = new LineItem()\\n  .quantity(1L)\\n  .amountExcludingTax(12500L)\\n  .taxPercentage(2000L)\\n  .description(\\&quot;Jacket\\&quot;)\\n  .id(\\&quot;Item #1\\&quot;)\\n  .taxAmount(2500L)\\n  .amountIncludingTax(15000L);\\n\\nLineItem lineItem2 = new LineItem()\\n  .quantity(1L)\\n  .amountExcludingTax(5346L)\\n  .taxPercentage(2000L)\\n  .description(\\&quot;Pants\\&quot;)\\n  .id(\\&quot;Item #2\\&quot;)\\n  .taxAmount(1069L)\\n  .amountIncludingTax(6415L);\\n\\nAmount amount = new Amount()\\n  .currency(\\&quot;EUR\\&quot;)\\n  .value(21415L);\\n\\nPaymentCaptureRequest paymentCaptureRequest = new PaymentCaptureRequest()\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\n  .reference(\\&quot;YOUR_UNIQUE_REFERENCE\\&quot;)\\n  .amount(amount)\\n  .merchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;);\\n\\n\\\/\\\/ Send the request\\nModificationsApi service = new ModificationsApi(client);\\nPaymentCaptureResponse response = service.captureAuthorisedPayment(\\&quot;paymentPspReference\\&quot;, paymentCaptureRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v29.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Checkout\\\\LineItem;\\nuse Adyen\\\\Model\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\PaymentCaptureRequest;\\nuse Adyen\\\\Service\\\\Checkout\\\\ModificationsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$lineItem1 = new LineItem();\\n$lineItem1\\n  -&gt;setQuantity(1)\\n  -&gt;setAmountExcludingTax(12500)\\n  -&gt;setTaxPercentage(2000)\\n  -&gt;setDescription(\\&quot;Jacket\\&quot;)\\n  -&gt;setId(\\&quot;Item #1\\&quot;)\\n  -&gt;setTaxAmount(2500)\\n  -&gt;setAmountIncludingTax(15000);\\n\\n$lineItem2 = new LineItem();\\n$lineItem2\\n  -&gt;setQuantity(1)\\n  -&gt;setAmountExcludingTax(5346)\\n  -&gt;setTaxPercentage(2000)\\n  -&gt;setDescription(\\&quot;Pants\\&quot;)\\n  -&gt;setId(\\&quot;Item #2\\&quot;)\\n  -&gt;setTaxAmount(1069)\\n  -&gt;setAmountIncludingTax(6415);\\n\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;EUR\\&quot;)\\n  -&gt;setValue(21415);\\n\\n$paymentCaptureRequest = new PaymentCaptureRequest();\\n$paymentCaptureRequest\\n  -&gt;setLineItems(array($lineItem1, $lineItem2))\\n  -&gt;setReference(\\&quot;YOUR_UNIQUE_REFERENCE\\&quot;)\\n  -&gt;setAmount($amount)\\n  -&gt;setMerchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new ModificationsApi($client);\\n$response = $service-&gt;captureAuthorisedPayment('paymentPspReference', $paymentCaptureRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .NET API Library v34.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nLineItem lineItem1 = new LineItem\\n{\\n  Quantity = 1,\\n  AmountExcludingTax = 12500,\\n  TaxPercentage = 2000,\\n  Description = \\&quot;Jacket\\&quot;,\\n  Id = \\&quot;Item #1\\&quot;,\\n  TaxAmount = 2500,\\n  AmountIncludingTax = 15000\\n};\\n\\nLineItem lineItem2 = new LineItem\\n{\\n  Quantity = 1,\\n  AmountExcludingTax = 5346,\\n  TaxPercentage = 2000,\\n  Description = \\&quot;Pants\\&quot;,\\n  Id = \\&quot;Item #2\\&quot;,\\n  TaxAmount = 1069,\\n  AmountIncludingTax = 6415\\n};\\n\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;EUR\\&quot;,\\n  Value = 21415\\n};\\n\\nPaymentCaptureRequest paymentCaptureRequest = new PaymentCaptureRequest\\n{\\n  LineItems = new List&lt;LineItem&gt;{ lineItem1, lineItem2 },\\n  Reference = \\&quot;YOUR_UNIQUE_REFERENCE\\&quot;,\\n  Amount = amount,\\n  MerchantAccount = \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new ModificationsService(client);\\nvar response = service.CaptureAuthorisedPayment(\\&quot;paymentPspReference\\&quot;, paymentCaptureRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&quot;});&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v30.1.0\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst config = new Config({\\n  apiKey: \\&quot;ADYEN_API_KEY\\&quot;,\\n  environment: EnvironmentEnum.TEST\\n});\\n\\nconst client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentCaptureRequest = {\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  amount: {\\n    currency: \\&quot;EUR\\&quot;,\\n    value: 21415\\n  },\\n  lineItems: [ {\\n    quantity: \\&quot;1\\&quot;,\\n    amountExcludingTax: \\&quot;12500\\&quot;,\\n    taxPercentage: \\&quot;2000\\&quot;,\\n    description: \\&quot;Jacket\\&quot;,\\n    id: \\&quot;Item #1\\&quot;,\\n    taxAmount: \\&quot;2500\\&quot;,\\n    amountIncludingTax: \\&quot;15000\\&quot;\\n  }, {\\n    quantity: \\&quot;1\\&quot;,\\n    amountExcludingTax: \\&quot;5346\\&quot;,\\n    taxPercentage: \\&quot;2000\\&quot;,\\n    description: \\&quot;Pants\\&quot;,\\n    id: \\&quot;Item #2\\&quot;,\\n    taxAmount: \\&quot;1069\\&quot;,\\n    amountIncludingTax: \\&quot;6415\\&quot;\\n  } ],\\n  reference: \\&quot;YOUR_UNIQUE_REFERENCE\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.ModificationsApi.captureAuthorisedPayment(\\&quot;paymentPspReference\\&quot;, paymentCaptureRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v21.2.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\nlineItem1 := checkout.LineItem{\\n  Quantity: common.PtrInt64(1),\\n  AmountExcludingTax: common.PtrInt64(12500),\\n  TaxPercentage: common.PtrInt64(2000),\\n  Description: common.PtrString(\\&quot;Jacket\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #1\\&quot;),\\n  TaxAmount: common.PtrInt64(2500),\\n  AmountIncludingTax: common.PtrInt64(15000),\\n}\\n\\nlineItem2 := checkout.LineItem{\\n  Quantity: common.PtrInt64(1),\\n  AmountExcludingTax: common.PtrInt64(5346),\\n  TaxPercentage: common.PtrInt64(2000),\\n  Description: common.PtrString(\\&quot;Pants\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #2\\&quot;),\\n  TaxAmount: common.PtrInt64(1069),\\n  AmountIncludingTax: common.PtrInt64(6415),\\n}\\n\\namount := checkout.Amount{\\n  Currency: \\&quot;EUR\\&quot;,\\n  Value: 21415,\\n}\\n\\npaymentCaptureRequest := checkout.PaymentCaptureRequest{\\n  LineItems: []checkout.LineItem{\\n      lineItem1, lineItem2,\\n  },\\n  Reference: common.PtrString(\\&quot;YOUR_UNIQUE_REFERENCE\\&quot;),\\n  Amount: amount,\\n  MerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.ModificationsApi.CaptureAuthorisedPaymentInput(\\&quot;paymentPspReference\\&quot;).IdempotencyKey(\\&quot;UUID\\&quot;).PaymentCaptureRequest(paymentCaptureRequest)\\nres, httpRes, err := service.ModificationsApi.CaptureAuthorisedPayment(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v14.0.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;: 21415\\n  },\\n  \\&quot;lineItems\\&quot;: [ {\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;12500\\&quot;,\\n    \\&quot;taxPercentage\\&quot;: \\&quot;2000\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;Jacket\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #1\\&quot;,\\n    \\&quot;taxAmount\\&quot;: \\&quot;2500\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;15000\\&quot;\\n  }, {\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;5346\\&quot;,\\n    \\&quot;taxPercentage\\&quot;: \\&quot;2000\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;Pants\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #2\\&quot;,\\n    \\&quot;taxAmount\\&quot;: \\&quot;1069\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;6415\\&quot;\\n  } ],\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_UNIQUE_REFERENCE\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.checkout.modifications_api.capture_authorised_payment(request=json_request, paymentPspReference=\\&quot;paymentPspReference\\&quot;, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v11.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'ADYEN_MERCHANT_ACCOUNT',\\n  :amount =&gt; {\\n    :currency =&gt; 'EUR',\\n    :value =&gt; 21415\\n  },\\n  :lineItems =&gt; [ {\\n    :quantity =&gt; '1',\\n    :amountExcludingTax =&gt; '12500',\\n    :taxPercentage =&gt; '2000',\\n    :description =&gt; 'Jacket',\\n    :id =&gt; 'Item #1',\\n    :taxAmount =&gt; '2500',\\n    :amountIncludingTax =&gt; '15000'\\n  }, {\\n    :quantity =&gt; '1',\\n    :amountExcludingTax =&gt; '5346',\\n    :taxPercentage =&gt; '2000',\\n    :description =&gt; 'Pants',\\n    :id =&gt; 'Item #2',\\n    :taxAmount =&gt; '1069',\\n    :amountIncludingTax =&gt; '6415'\\n  } ],\\n  :reference =&gt; 'YOUR_UNIQUE_REFERENCE'\\n}\\n\\n# Send the request\\nresult = adyen.checkout.modifications_api.capture_authorised_payment(request_body, 'paymentPspReference', headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v30.1.0\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst config = new Config({\\n  apiKey: \\&quot;ADYEN_API_KEY\\&quot;,\\n  environment: EnvironmentEnum.TEST\\n});\\n\\nconst client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nconst lineItem1: Types.checkout.LineItem = {\\n  quantity: 1,\\n  amountExcludingTax: 12500,\\n  taxPercentage: 2000,\\n  description: \\&quot;Jacket\\&quot;,\\n  id: \\&quot;Item #1\\&quot;,\\n  taxAmount: 2500,\\n  amountIncludingTax: 15000\\n};\\n\\nconst lineItem2: Types.checkout.LineItem = {\\n  quantity: 1,\\n  amountExcludingTax: 5346,\\n  taxPercentage: 2000,\\n  description: \\&quot;Pants\\&quot;,\\n  id: \\&quot;Item #2\\&quot;,\\n  taxAmount: 1069,\\n  amountIncludingTax: 6415\\n};\\n\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;EUR\\&quot;,\\n  value: 21415\\n};\\n\\nconst paymentCaptureRequest: Types.checkout.PaymentCaptureRequest = {\\n  lineItems: [lineItem1, lineItem2],\\n  reference: \\&quot;YOUR_UNIQUE_REFERENCE\\&quot;,\\n  amount: amount,\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.ModificationsApi.captureAuthorisedPayment(\\&quot;paymentPspReference\\&quot;, paymentCaptureRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you receive the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a> response, note the following:<\/p>\n<ul>\n<li><code>pspReference<\/code>: The PSP reference associated with this <code>\/captures<\/code> request.<br \/>\nThis is different from the PSP reference associated with the original payment (pre-authorization) request.<\/li>\n<li><code>status<\/code>: <strong>received<\/strong><\/li>\n<li><code>reference<\/code>: Your reference to this payment modification, for use in your reconciliation process.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'\/captures response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"merchantAccount\\\": \\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"paymentPspReference\\\": \\\"KHQC5N7G84BLNK43\\\",\\n   \\\"pspReference\\\": \\\"QJ7GWQ756L2GWR86\\\",\\n   \\\"reference\\\": \\\"YOUR_UNIQUE_REFERENCE\\\",\\n   \\\"status\\\": \\\"received\\\",\\n   \\\"amount\\\": {\\n       \\\"currency\\\": \\\"EUR\\\",\\n       \\\"value\\\": 21415\\n   }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Wait for the <a href=\"\/pt\/development-resources\/webhooks\">webhook event<\/a>. This informs you whether the final amount has been captured.<br \/>\nIf the capture is successful, this event contains:<\/p>\n<ul>\n<li><code>eventCode<\/code>: <strong>CAPTURE<\/strong><\/li>\n<li><code>originalReference<\/code>: The <code>pspReference<\/code> of the pre-authorization.<\/li>\n<li><code>pspReference<\/code>: The PSP reference associated with this  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/captures\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/captures<\/a>  request.<\/li>\n<li><code>success<\/code>: <strong>true<\/strong><\/li>\n<\/ul>\n<p>If the capture fails, this event contains <code>success<\/code>: <strong>false<\/strong>. Review the <code>reason<\/code> you received in the webhook event, fix the issue, and submit the capture request again.<\/p>\n<\/li>\n<\/ol>\n<p>See examples of other Klarna-specific payment scenarios at <a href=\"\/pt\/payment-methods\/klarna\/invoice-lines\" target=\"_blank\">Invoice lines and discounts<\/a>.<\/p>\n<h4 id=\"shipping-and-tracking-information\">Shipping and tracking information (optional)<\/h4>\n<p>You can optionally use <code>additionalData.openinvoicedata<\/code> to include shipping and tracking information. This adds information about how the products are shipped to the <code>deliveryAddress<\/code> that you specified in the \/payments request. The shipping and tracking information maps to <a href=\"https:\/\/docs.klarna.com\/api\/ordermanagement\/#operation\/appendOrderShippingInfo\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's shipping info<\/a> object.<\/p>\n<p>If you have the shipping and tracking information at the time of the capture, we recommend that you send it to improve the overall shopper experience. Klarna includes this information in their app, where the info is updated based on the tracking details.<\/p>\n<ul>\n<li>If all items are shipped with the same provider, specify the shipping and tracking information once, as shown in the capture example below.<\/li>\n<li>If one or more items in the order are shipped with different a different provider or tracking details, specify the shipping and tracking information as an array.<\/li>\n<li>You cannot specify different delivery addresses for a single order with multiple items.<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th>openinvoicedata<\/th>\n<th>Corresponds with Klarna's <a href=\"https:\/\/docs.klarna.com\/api\/ordermanagement\/#operation\/appendOrderShippingInfo\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">\n  <code>shipping_info<\/code>\n<\/a> object<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>shippingCompany<\/code><\/td>\n<td><code>shipping_company<\/code><\/td>\n<td>The name of the shipping company, as specific as possible. Maximum 100 characters. If there are multiple shipping companies, specify an array. For example: <strong>DHL SE<\/strong> or <strong>[DHL SE, PostNord]<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>shippingMethod<\/code><\/td>\n<td><code>shipping_method<\/code><\/td>\n<td>Shipping method. Possible values:<ul><li markdown=\"1\"><strong>PickUpStore<\/strong><\/li><li markdown=\"1\"><strong>Home<\/strong><\/li><li markdown=\"1\"><strong>BoxReg<\/strong><\/li><li markdown=\"1\"><strong>BoxUnreg<\/strong><\/li><li markdown=\"1\"><strong>PickUpPoint<\/strong><\/li><li markdown=\"1\"><strong>Own<\/strong><\/li><li markdown=\"1\"><strong>Postal<\/strong><\/li><li markdown=\"1\"><strong>DHLPackstation<\/strong><\/li><li markdown=\"1\"><strong>Digital<\/strong><\/li><li markdown=\"1\"><strong>Undefined<\/strong><\/li><\/ul><\/td>\n<\/tr>\n<tr>\n<td><code>trackingNumber<\/code><\/td>\n<td><code>tracking_number<\/code><\/td>\n<td>Tracking number for the shipment. Maximum 100 characters. If there are multiple tracking numbers, specify an array. For example: <strong>050823<\/strong> or <strong>[050823, 050824]<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>trackingUri<\/code><\/td>\n<td><code>tracking_uri<\/code><\/td>\n<td>URI where the customer can track their shipment. Maximum 1024 characters.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><code>returnShippingCompany<\/code><\/td>\n<td><code>return_shipping_company<\/code><\/td>\n<td>The name of the shipping company for the return shipment, as specific as possible. Maximum 100 characters. For example: <strong>DHL SE<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>returnTrackingNumber<\/code><\/td>\n<td><code>return_tracking_number<\/code><\/td>\n<td>Tracking number for the return shipment. Maximum 100 characters.<\/td>\n<\/tr>\n<tr>\n<td><code>returnTrackingUri<\/code><\/td>\n<td><code>return_tracking_uri<\/code><\/td>\n<td>URI where the customer can track their return shipment. Maximum 1024 characters.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/capture request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"modificationAmount\\\":{\\n      \\\"currency\\\":\\\"SEK\\\",\\n      \\\"value\\\":\\\"1000\\\"\\n   },\\n   \\\"originalReference\\\":\\\"COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\\",\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"2\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"SEK\\\",\\n      \\\"openinvoicedata.line1.description\\\":\\\"Shoes\\\",\\n      \\\"openinvoicedata.line1.itemAmount\\\":\\\"331\\\",\\n      \\\"openinvoicedata.line1.itemVatAmount\\\":\\\"69\\\",\\n      \\\"openinvoicedata.line1.itemVatPercentage\\\":\\\"2100\\\",\\n      \\\"openinvoicedata.line1.numberOfItems\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line1.productUrl\\\":\\\"URL_TO_PURCHASED_ITEM\\\",\\n      \\\"openinvoicedata.line1.imageUrl\\\":\\\"URL_TO_PICTURE_OF_PURCHASED_ITEM\\\",\\n      \\\"openinvoicedata.line1.shippingCompany\\\": \\\"DHL SE\\\",\\n      \\\"openinvoicedata.line1.shippingMethod\\\": \\\"Home\\\",\\n      \\\"openinvoicedata.line1.trackingNumber\\\": \\\"TRACKING_NUMBER\\\",\\n      \\\"openinvoicedata.line1.trackingUri\\\": \\\"TRACKING_URI\\\",\\n      \\\"openinvoicedata.line1.returnShippingCompany\\\": \\\"DHL SE\\\",\\n      \\\"openinvoicedata.line1.returnTrackingNumber\\\": \\\"RETURN_TRACKING_NUMBER\\\",\\n      \\\"openinvoicedata.line1.returnTrackingUri\\\": \\\"RETURN_TRACKING_URI\\\",\\n      \\\"openinvoicedata.line2.currencyCode\\\":\\\"SEK\\\",\\n      \\\"openinvoicedata.line2.description\\\":\\\"Socks\\\",\\n      \\\"openinvoicedata.line2.itemAmount\\\":\\\"248\\\",\\n      \\\"openinvoicedata.line2.itemVatAmount\\\":\\\"52\\\",\\n      \\\"openinvoicedata.line2.itemVatPercentage\\\":\\\"2100\\\",\\n      \\\"openinvoicedata.line2.numberOfItems\\\":\\\"2\\\",\\n      \\\"openinvoicedata.line2.productUrl\\\":\\\"URL_TO_PURCHASED_ITEM\\\",\\n      \\\"openinvoicedata.line2.imageUrl\\\":\\\"URL_TO_PICTURE_OF_PURCHASED_ITEM\\\"\\n   },\\n   \\\"reference\\\":\\\"YOUR_CAPTURE_REFERENCE\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You will receive a <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/capture\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/capture<\/a> response containing a <code>pspReference<\/code> associated with this request. Once we have processed your request, you will also receive a CAPTURE <a href=\"\/pt\/development-resources\/webhooks\">webhook<\/a>. For more information, refer to <a href=\"\/pt\/online-payments\/capture\">Capture<\/a>.<\/p>\n<h3 id=\"partial-captures\">Partial captures<\/h3>\n<p>To <a href=\"\/pt\/online-payments\/capture\" target=\"_blank\">partially capture<\/a> a Klarna payment, specify in your call to the <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/capture\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/capture<\/a> endpoint:<\/p>\n<ul>\n<li><code>modificationAmount<\/code>: The amount that the shopper should pay. This should be <strong>less than<\/strong> the authorised amount.<\/li>\n<li><code>additionalData.openinvoicedata<\/code>: Price, product and optionally shipping and tracking information for the items that the shopper should pay for, to be included on the invoice. For the partial capture to be successful, the amounts stated in <code>openinvoicedata<\/code> need to be correct. You can use the same fields as listed in the <a href=\"#manual-captures\">manual captures<\/a> section.<\/li>\n<\/ul>\n<p>For more information and an example, refer to <a href=\"\/pt\/payment-methods\/klarna\/invoice-lines\">Invoice lines<\/a>.<\/p>\n<h2>Refused payments<\/h2>\n<p>When a payment is <strong>refused<\/strong> by Klarna, the shopper sees the following message:<\/p>\n<p><a rel=\"lightbox\" href=\"\/user\/pages\/reuse\/payment-method-pages\/klarna\/pending-refused\/refusedbyklarna.png\" src=\"\">\n  <img alt=\"\" src=\"\/user\/pages\/reuse\/payment-method-pages\/klarna\/pending-refused\/refusedbyklarna.png\" \/>\n<\/a><\/p>\n<h2>Recurring payments<\/h2>\n<p>To make recurring Klarna payments you need to:<\/p>\n<ol>\n<li><a href=\"#create-a-token\">Create a shopper token<\/a>.<\/li>\n<li><a href=\"#make-payment-with-token\">Use the token to make future payments for the shopper<\/a>.<\/li>\n<\/ol>\n<h3 id=\"create-a-token\">Create a token<\/h3>\n<p>To create a token, include in your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request:<\/p>\n<ul>\n<li><code>storePaymentMethod<\/code>: <strong>true<\/strong><\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperReference\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperReference<\/a>&#58; Your unique identifier for the shopper.<\/li>\n<\/ul>\n<p>When the payment has been settled, you receive a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Tokenization-webhooks\/latest\/post\/recurring.token.created\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">recurring.token.created<\/a> <a href=\"\/pt\/development-resources\/webhooks\" target=\"_blank\">webhook<\/a> containing:<\/p>\n<ul>\n<li><code>type<\/code>: <strong>recurring.token.created<\/strong><\/li>\n<li><code>shopperReference<\/code>: your unique identifier for the shopper.<\/li>\n<li><code>eventId<\/code>: the <code>pspReference<\/code> of the initial payment.<\/li>\n<li><code>storedPaymentMethodId<\/code>: the token that you need to make recurring payments for this shopper.<\/li>\n<\/ul>\n<div class=\"notices green\">\n<p>Make sure that your server is able to receive the <a href=\"\/pt\/development-resources\/webhooks\/webhook-types\/#other-webhooks\">Recurring tokens life cycle events<\/a> webhook. You can <a href=\"\/pt\/development-resources\/webhooks\/#set-up-webhooks-in-your-customer-area\">set up this webhook in your Customer Area<\/a>.<\/p>\n<\/div>\n<h3 id=\"make-payment-with-token\">Make a payment with a token<\/h3>\n<p>To make a payment with the token, include in your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request:<\/p>\n<ul>\n<li><code>shopperReference<\/code>: The unique shopper identifier that you specified when creating the token.<\/li>\n<li><code>paymentMethod.storedPaymentMethodId<\/code>: The <code>storedPaymentMethodId<\/code> from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Tokenization-webhooks\/latest\/post\/recurring.token.created\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">recurring.token.created<\/a> webhook.<br \/>\nYou can also get this value by using the <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Recurring\/latest\/listRecurringDetails\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/listRecurringDetails<\/a> endpoint.<\/li>\n<li><code>shopperInteraction<\/code>: <strong>ContAuth<\/strong><\/li>\n<li>\n<p><code>recurringProcessingModel<\/code>: The type of recurring payment that you want to make.<br \/>\nPossible <code>recurringProcessingModel<\/code> values:<\/p>\n<table>\n<thead>\n<tr>\n<th><code>recurringProcessingModel<\/code><\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>CardOnFile<\/strong><\/td>\n<td>Online purchase where shopper is actively making a purchase using their previously stored payment details.<\/td>\n<\/tr>\n<tr>\n<td><strong>Subscription<\/strong><\/td>\n<td>A series of transactions with fixed or variable amounts, following a fixed time interval. This is the default value for payment requests where <code>shopperInteraction<\/code>: <strong>ContAuth<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>UnscheduledCardOnFile<\/strong><\/td>\n<td>Contracts that occur on a non-fixed schedule using stored payment details. For example, automatic top-ups when cardholder's balance drops below certain amount.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<div class=\"notices yellow\">\n<p>When making a recurring payment, you also need to provide all the parameters required for a Klarna <a href=\"#make-payment-with-token\">payment request<\/a>.<\/p>\n<\/div>\n<p>The following is a sample request for <strong>Klarna Pay Now<\/strong>, when the shopper is actively making a purchase using previously stored payment details:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/payments request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n  \\\"reference\\\":\\\"YOUR_ORDER_REFERENCE\\\",\\n  \\\"paymentMethod\\\":{\\n     \\\"type\\\":\\\"klarna_paynow\\\",\\n     \\\"{hint:The storedPaymentMethodId from the recurring.token.created webhook}storedPaymentMethodId{\\\/hint}\\\":\\\"8315748692943051\\\"\\n  },\\n  \\\"{hint:The shopperReference that you specified when creating the token}shopperReference{\\\/hint}\\\":\\\"YOUR_UNIQUE_SHOPPER_ID\\\",\\n  \\\"amount\\\":{\\n     \\\"currency\\\":\\\"SEK\\\",\\n     \\\"value\\\":\\\"1000\\\"\\n  },\\n  \\\"shopperInteraction\\\":\\\"ContAuth\\\",\\n  \\\"recurringProcessingModel\\\": \\\"CardOnFile\\\",\\n  \\\"shopperLocale\\\":\\\"en_US\\\",\\n  \\\"countryCode\\\":\\\"SE\\\",\\n  \\\"telephoneNumber\\\": \\\"+46 840 839 298\\\",\\n  \\\"shopperEmail\\\":\\\"youremail@email.com\\\",\\n  \\\"shopperName\\\":{\\n     \\\"firstName\\\":\\\"Testperson-se\\\",\\n     \\\"lastName\\\":\\\"Approved\\\"\\n  },\\n  \\\"billingAddress\\\":{\\n     \\\"city\\\":\\\"Ankeborg\\\",\\n     \\\"country\\\":\\\"SE\\\",\\n     \\\"houseNumberOrName\\\":\\\"1\\\",\\n     \\\"postalCode\\\":\\\"12345\\\",\\n     \\\"street\\\":\\\"Stargatan\\\"\\n  },\\n  \\\"deliveryAddress\\\":{\\n    \\\"city\\\":\\\"Ankeborg\\\",\\n    \\\"country\\\":\\\"SE\\\",\\n    \\\"houseNumberOrName\\\":\\\"1\\\",\\n    \\\"postalCode\\\":\\\"12345\\\",\\n    \\\"street\\\":\\\"Stargatan\\\"\\n  },\\n  \\\"returnUrl\\\":\\\"https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\",\\n  \\\"lineItems\\\":[\\n     {\\n        \\\"quantity\\\":\\\"1\\\",\\n        \\\"amountExcludingTax\\\":\\\"331\\\",\\n        \\\"taxPercentage\\\":\\\"2100\\\",\\n        \\\"description\\\":\\\"Shoes\\\",\\n        \\\"id\\\":\\\"Item #1\\\",\\n        \\\"taxAmount\\\":\\\"69\\\",\\n        \\\"amountIncludingTax\\\":\\\"400\\\",\\n        \\\"productUrl\\\": \\\"URL_TO_PURCHASED_ITEM\\\",\\n        \\\"imageUrl\\\": \\\"URL_TO_PICTURE_OF_PURCHASED_ITEM\\\"\\n     },\\n     {\\n        \\\"quantity\\\":\\\"2\\\",\\n        \\\"amountExcludingTax\\\":\\\"248\\\",\\n        \\\"taxPercentage\\\":\\\"2100\\\",\\n        \\\"description\\\":\\\"Socks\\\",\\n        \\\"id\\\":\\\"Item #2\\\",\\n        \\\"taxAmount\\\":\\\"52\\\",\\n        \\\"amountIncludingTax\\\":\\\"300\\\",\\n        \\\"productUrl\\\": \\\"URL_TO_PURCHASED_ITEM\\\",\\n        \\\"imageUrl\\\": \\\"URL_TO_PICTURE_OF_PURCHASED_ITEM\\\"\\n     }\\n  ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"test-and-go-live\">Test and go live<\/h2>\n<p>Before accepting live payments, test your integration using the <a href=\"https:\/\/docs.klarna.com\/resources\/test-environment\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">test environment and sample data provided by Klarna<\/a>.<\/p>\n<p>You can then check the status of Klarna test payments in your\u00a0<a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>\u00a0&gt;\u00a0<strong>Transactions<\/strong>\u00a0&gt;\u00a0<strong>Payments<\/strong>.<\/p>\n<h3>Before you go live<\/h3>\n<p>Make sure that:<\/p>\n<ul>\n<li>You have <a href=\"\/pt\/payment-methods\/add-payment-methods\">added Klarna<\/a> in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>.<\/li>\n<li>You have considered <a href=\"https:\/\/docs.klarna.com\/resources\/legal-and-compliance\/payment-solutions-guidelines\/eu\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's legal and privacy information<\/a>.<\/li>\n<li>You follow the <a href=\"https:\/\/docs.klarna.com\/resources\/marketing-tools\/global-marketing-assets\/brand-guidelines\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna guidelines<\/a> on how to present Klarna in your checkout.<\/li>\n<li>The <a href=\"\/pt\/payment-methods\/klarna\/invoice-lines\">invoice lines<\/a> and VAT are shown correctly on Klarna's pages.<\/li>\n<li>If a shopper gets rejected by Klarna, you offer them another payment method.<\/li>\n<li>You pass the shopper's name and address in your payment request. This is optional, but providing these parameters improves the shopper experience and increases conversion rates.<\/li>\n<\/ul>\n<h3>Testing in live environment<\/h3>\n<p>When testing Klarna payments in the live environment, make sure that you:<\/p>\n<ul>\n<li>Provide real shopper data. For example, your real name, personal email, personal mobile, and home and billing address. Do not provide a company address as billing address.<\/li>\n<li>Choose an item with a reasonable amount that meets Klarna's minimum requirements. For example, for Pay over time, Klarna requires a minimum amount of GBP&nbsp;1. Klarna can reject a request if the product is too expensive and they do not have enough transaction history for the shopper.<\/li>\n<li>Do not do multiple tests in a short period from the same device or IP address. Otherwise, velocity rule checks are triggered, which will lead to the transaction being rejected.<\/li>\n<\/ul>\n<p>If the conditions above are not met, you can receive a <code>resultCode<\/code> of <strong>Refused<\/strong>. The shopper sees a page with an \"Option Not Available\" message instead of the Klarna Payments widget. Note that these checks are bypassed in test and are only applied in the live environment.<\/p>\n<p>See <a href=\"\/pt\/payment-methods\/klarna\/raw-responses\">Klarna raw acquirer responses<\/a> for the most common responses for successful, refused, failed, or cancelled transactions.<\/p>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/drop-in-web\"\n                        target=\"_self\"\n                        >\n                    Web Drop-in integration guide\n                <\/a><\/li><li><a href=\"\/development-resources\/webhooks\"\n                        target=\"_self\"\n                        >\n                    Webhooks\n                <\/a><\/li><li><a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/CheckoutService\/latest\/overview\"\n                        target=\"_blank\"\n                         class=\"external\">\n                    API Explorer\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna\/web-drop-in","articleFields":{"description":"Learn how to accept Klarna payments.","parameters":{"integration":"Drop-in","platform":"Web","integration_guide_url":"build-your-integration\/sessions-flow?platform=Web&integration=Drop-in","component_name":"Drop-in","component_name_capitalized":"Drop-in","payment_method":"Klarna","component_class":"Klarna","payment_method_type":"klarna_paynow","component_js_const":"klarnaPayNow","return_url":"https:\/\/your-company.example.com\/checkout?shopperOrder=12xy..","currency":"SEK"},"section_icon":"payment-methods.svg","id":"24216679","type":"page","_expandable":{"operations":""},"status":"current","page_id":"97a30f26-d11f-436e-869c-f57f9a92709a","feedback_component":true,"filters_component":false,"decision_tree":"[]","last_edit_on":"05-02-2025 09:14"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna\/web-drop-in","title":"Klarna Drop-in integration","content":"This page explains how to add Klarna to your existing Web Drop-in integration.\nWith our Web Drop-in integration, you can accept Klarna payments using either:\n\nThe Klarna widget: The shopper completes the payment in your checkout.\nFor more information about the Klarna widget, see the Klarna documentation.\nRedirect to Klarna: The shopper is redirected to Klarna to complete the payment.\n\nRequirements\nSelect the server-side flow that your integration uses:\n\n\n    \n        \n        \n    \n\n\nImport resources for v6\nIf you are using Web Drop-in v6, import the resources you need for Klarna:\nimport { AdyenCheckout, Klarna} from '@adyen\/adyen-web'\nAPI reference\nSelect which endpoint you are using:\n\n\n    \n        \n        \n    \n\n\nSee examples of other Klarna-specific payment scenarios at Invoice lines and discounts and Klarna for airlines.\nDrop-in configuration\nRequired configuration\nThere are no configuration steps specific to Klarna required for Drop-in.\nOptional configuration\nWhen creating an instance of Drop-in, you can optionally mount the Klarna widget in your checkout.\nThe Klarna widget\nTo add optional configuration, include it in a configuration object. The following example shows how to enable the Klarna widget flow for Drop-in:\n\n    \n\nWhen creating a configuration object for Drop-in, include the klarnaConfiguration object:\n\n    \n\nCapture the payment\nIf the capture delay is set to immediate and you comply with Klarna's Scheme Rules of shipping within 24 hours, then you can configure automatic capture when adding Klarna in your live Customer Area. Otherwise, you must manually capture Klarna payments within 90 days after authorization, even if you enable automatic capture on your merchant account. If the manual capture is not performed within 90 days, the authorization will expire.\nCapture manually\nTo manually capture a Klarna payment, make a POST request to the  \/payments\/{paymentPspReference}\/captures endpoint.\n\n\nWhen you are ready to capture the payment, make a POST  \/payments\/{paymentPspReference}\/captures request, where {paymentPspReference} is the PSP reference from the original payment (pre-authorization) response. Specify:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\nmerchantAccount\n\nThe name of your merchant account that is used to process the payment.\n\n\namount.currency\n\nThe three-character ISO currency code.\n\n\namount.value\n\nThe amount of the transaction, in minor units.This is the sum of the original, pre-authorized amount and all later adjustments.\n\n\nlineItems\n\nPrice and product information about the purchased items, to be included on the invoice sent to the shopper. For an authorization adjustment, always specify every line item, including all captured or refunded items. See examples of Klarna-specific payment scenarios at Invoice lines and discounts.\n\n\nreference\n\nA reference that you specify for this payment modification, for use in your reconciliation process. The pspReference you received in the initial authorization response remains the primary merchant reference, and this reference does not overwrite it. \n\n\n\n\n\n\n\n\nWhen you receive the  \/payments\/{paymentPspReference}\/captures response, note the following:\n\npspReference: The PSP reference associated with this \/captures request.\nThis is different from the PSP reference associated with the original payment (pre-authorization) request.\nstatus: received\nreference: Your reference to this payment modification, for use in your reconciliation process.\n\n\n\n\n\n\nWait for the webhook event. This informs you whether the final amount has been captured.\nIf the capture is successful, this event contains:\n\neventCode: CAPTURE\noriginalReference: The pspReference of the pre-authorization.\npspReference: The PSP reference associated with this  \/payments\/{paymentPspReference}\/captures  request.\nsuccess: true\n\nIf the capture fails, this event contains success: false. Review the reason you received in the webhook event, fix the issue, and submit the capture request again.\n\n\nSee examples of other Klarna-specific payment scenarios at Invoice lines and discounts.\nShipping and tracking information (optional)\nYou can optionally use additionalData.openinvoicedata to include shipping and tracking information. This adds information about how the products are shipped to the deliveryAddress that you specified in the \/payments request. The shipping and tracking information maps to Klarna's shipping info object.\nIf you have the shipping and tracking information at the time of the capture, we recommend that you send it to improve the overall shopper experience. Klarna includes this information in their app, where the info is updated based on the tracking details.\n\nIf all items are shipped with the same provider, specify the shipping and tracking information once, as shown in the capture example below.\nIf one or more items in the order are shipped with different a different provider or tracking details, specify the shipping and tracking information as an array.\nYou cannot specify different delivery addresses for a single order with multiple items.\n\n\n\n\nopeninvoicedata\nCorresponds with Klarna's \n  shipping_info\n object\nDescription\n\n\n\n\nshippingCompany\nshipping_company\nThe name of the shipping company, as specific as possible. Maximum 100 characters. If there are multiple shipping companies, specify an array. For example: DHL SE or [DHL SE, PostNord]\n\n\nshippingMethod\nshipping_method\nShipping method. Possible values:PickUpStoreHomeBoxRegBoxUnregPickUpPointOwnPostalDHLPackstationDigitalUndefined\n\n\ntrackingNumber\ntracking_number\nTracking number for the shipment. Maximum 100 characters. If there are multiple tracking numbers, specify an array. For example: 050823 or [050823, 050824]\n\n\ntrackingUri\ntracking_uri\nURI where the customer can track their shipment. Maximum 1024 characters.\n\n\n\nreturnShippingCompany\nreturn_shipping_company\nThe name of the shipping company for the return shipment, as specific as possible. Maximum 100 characters. For example: DHL SE\n\n\nreturnTrackingNumber\nreturn_tracking_number\nTracking number for the return shipment. Maximum 100 characters.\n\n\nreturnTrackingUri\nreturn_tracking_uri\nURI where the customer can track their return shipment. Maximum 1024 characters.\n\n\n\n\n    \n\nYou will receive a \/capture response containing a pspReference associated with this request. Once we have processed your request, you will also receive a CAPTURE webhook. For more information, refer to Capture.\nPartial captures\nTo partially capture a Klarna payment, specify in your call to the \/capture endpoint:\n\nmodificationAmount: The amount that the shopper should pay. This should be less than the authorised amount.\nadditionalData.openinvoicedata: Price, product and optionally shipping and tracking information for the items that the shopper should pay for, to be included on the invoice. For the partial capture to be successful, the amounts stated in openinvoicedata need to be correct. You can use the same fields as listed in the manual captures section.\n\nFor more information and an example, refer to Invoice lines.\nRefused payments\nWhen a payment is refused by Klarna, the shopper sees the following message:\n\n  \n\nRecurring payments\nTo make recurring Klarna payments you need to:\n\nCreate a shopper token.\nUse the token to make future payments for the shopper.\n\nCreate a token\nTo create a token, include in your  \/payments request:\n\nstorePaymentMethod: true\n shopperReference&#58; Your unique identifier for the shopper.\n\nWhen the payment has been settled, you receive a  recurring.token.created webhook containing:\n\ntype: recurring.token.created\nshopperReference: your unique identifier for the shopper.\neventId: the pspReference of the initial payment.\nstoredPaymentMethodId: the token that you need to make recurring payments for this shopper.\n\n\nMake sure that your server is able to receive the Recurring tokens life cycle events webhook. You can set up this webhook in your Customer Area.\n\nMake a payment with a token\nTo make a payment with the token, include in your  \/payments request:\n\nshopperReference: The unique shopper identifier that you specified when creating the token.\npaymentMethod.storedPaymentMethodId: The storedPaymentMethodId from the  recurring.token.created webhook.\nYou can also get this value by using the \/listRecurringDetails endpoint.\nshopperInteraction: ContAuth\n\nrecurringProcessingModel: The type of recurring payment that you want to make.\nPossible recurringProcessingModel values:\n\n\n\nrecurringProcessingModel\nDescription\n\n\n\n\nCardOnFile\nOnline purchase where shopper is actively making a purchase using their previously stored payment details.\n\n\nSubscription\nA series of transactions with fixed or variable amounts, following a fixed time interval. This is the default value for payment requests where shopperInteraction: ContAuth\n\n\nUnscheduledCardOnFile\nContracts that occur on a non-fixed schedule using stored payment details. For example, automatic top-ups when cardholder's balance drops below certain amount.\n\n\n\n\n\n\nWhen making a recurring payment, you also need to provide all the parameters required for a Klarna payment request.\n\nThe following is a sample request for Klarna Pay Now, when the shopper is actively making a purchase using previously stored payment details:\n\n    \n\nTest and go live\nBefore accepting live payments, test your integration using the test environment and sample data provided by Klarna.\nYou can then check the status of Klarna test payments in your\u00a0Customer Area\u00a0&gt;\u00a0Transactions\u00a0&gt;\u00a0Payments.\nBefore you go live\nMake sure that:\n\nYou have added Klarna in your live Customer Area.\nYou have considered Klarna's legal and privacy information.\nYou follow the Klarna guidelines on how to present Klarna in your checkout.\nThe invoice lines and VAT are shown correctly on Klarna's pages.\nIf a shopper gets rejected by Klarna, you offer them another payment method.\nYou pass the shopper's name and address in your payment request. This is optional, but providing these parameters improves the shopper experience and increases conversion rates.\n\nTesting in live environment\nWhen testing Klarna payments in the live environment, make sure that you:\n\nProvide real shopper data. For example, your real name, personal email, personal mobile, and home and billing address. Do not provide a company address as billing address.\nChoose an item with a reasonable amount that meets Klarna's minimum requirements. For example, for Pay over time, Klarna requires a minimum amount of GBP&nbsp;1. Klarna can reject a request if the product is too expensive and they do not have enough transaction history for the shopper.\nDo not do multiple tests in a short period from the same device or IP address. Otherwise, velocity rule checks are triggered, which will lead to the transaction being rejected.\n\nIf the conditions above are not met, you can receive a resultCode of Refused. The shopper sees a page with an \"Option Not Available\" message instead of the Klarna Payments widget. Note that these checks are bypassed in test and are only applied in the live environment.\nSee Klarna raw acquirer responses for the most common responses for successful, refused, failed, or cancelled transactions.\nSee also\n\n\n                    Web Drop-in integration guide\n                \n                    Webhooks\n                \n                    API Explorer\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Klarna","lvl3":"Klarna Drop-in integration"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna","lvl3":"\/pt\/payment-methods\/klarna\/web-drop-in"},"levels":4,"category":"Payment method","category_color":"green","tags":["Klarna","Drop-in","integration"]}}
