{"title":"Klarna Redirect Component","category":"default","creationDate":1567783140,"content":"<div class=\"sc-notice info\"><div>\n<p><strong>If you are using Android Components v5.0.0 or later:<\/strong><\/p>\n<p>This payment method requires no additional configuration.<\/p>\n<p>Follow the  <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Android&amp;integration=Components\">Components integration guide<\/a> and use the following module and Component names:<\/p>\n<ul>\n<li>To <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow\/?platform=Android&amp;integration=Components#import\">import the module<\/a>: <strong>instant<\/strong><\/li>\n<li>To <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Android&amp;integration=Components#launch-and-show\">launch and show the Component<\/a>: <strong>InstantPaymentComponent<\/strong><\/li>\n<\/ul>\n<\/div><\/div>\n<p>If you have an existing Android Components integration, you can use our Redirect Component to redirect the shopper to Klarna to complete the payment. When making a Klarna payment, you need to:<\/p>\n<ol>\n<li><a href=\"#show-in-your-payment-form\">Include Klarna in the list of available payment methods<\/a>.<\/li>\n<li>Collect shopper details, and specify these in your <a href=\"#make-a-payment\">payment request<\/a>. Klarna uses this information for risk checks.<\/li>\n<li>Provide information about the purchased items by specifying <code>lineItems<\/code> in your <a href=\"#make-a-payment\">payment request<\/a>.<\/li>\n<li><a href=\"#handle-the-redirect\">Handle the redirect<\/a>.<\/li>\n<li><a href=\"#capture\">Capture the payment<\/a> after the goods have been sent. This triggers the payment instructions to be sent to the shopper.<\/li>\n<\/ol>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have built an Advanced flow <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Android&amp;integration=Components\">Android Components integration<\/a>. <\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin, <a href=\"\/pt\/payment-methods\/add-payment-methods\">add Klarna in your Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"show-in-your-payment-form\">Show Klarna in your payment form<\/h2>\n<p>When making a Klarna payment, collect the following shopper details:<\/p>\n<table>\n<thead>\n<tr>\n<th>Shopper detail<\/th>\n<th>Description<\/th>\n<th>Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Shopper name<\/td>\n<td>The shopper's full name.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Shopper email<\/td>\n<td>The shopper's email address. This is where Klarna will send the invoice.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>The billing address<\/td>\n<td>The postal address to be included on the invoice.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"notices yellow\">\n<p>For improved conversion rates, we strongly recommend that you collect the shopper name and the billing address.<\/p>\n<\/div>\n<p>If you are using the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> to show available payment methods to the shopper, specify in your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> request one of the following combinations of  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a> and  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a>, depending on which Klarna payment method you want to accept:<\/p>\n<div class=\"sticky-table-container\">\n    \n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Country\/region<\/th>\n<th style=\"text-align: center;\"><code>countryCode<\/code><\/th>\n<th style=\"text-align: center;\"><code>amount.currency<\/code><\/th>\n<th style=\"text-align: center;\">Pay now<\/th>\n<th style=\"text-align: center;\">Pay later<\/th>\n<th style=\"text-align: center;\">Pay over time<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Australia<\/td>\n<td style=\"text-align: center;\">AU<\/td>\n<td style=\"text-align: center;\">AUD<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Austria<\/td>\n<td style=\"text-align: center;\">AT<\/td>\n<td style=\"text-align: center;\">EUR<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Belgium<\/td>\n<td style=\"text-align: center;\">BE<\/td>\n<td style=\"text-align: center;\">EUR<\/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: 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: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Canada<\/td>\n<td style=\"text-align: center;\">CA<\/td>\n<td style=\"text-align: center;\">CAD<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Czech Republic<\/td>\n<td style=\"text-align: center;\">CZ<\/td>\n<td style=\"text-align: center;\">CZK<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Denmark<\/td>\n<td style=\"text-align: center;\">DK<\/td>\n<td style=\"text-align: center;\">DKK<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Finland<\/td>\n<td style=\"text-align: center;\">FI<\/td>\n<td style=\"text-align: center;\">EUR<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">France<\/td>\n<td style=\"text-align: center;\">FR<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Germany<\/td>\n<td style=\"text-align: center;\">DE<\/td>\n<td style=\"text-align: center;\">EUR<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Greece<\/td>\n<td style=\"text-align: center;\">GR<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Ireland<\/td>\n<td style=\"text-align: center;\">IE<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Italy<\/td>\n<td style=\"text-align: center;\">IT<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Norway<\/td>\n<td style=\"text-align: center;\">NO<\/td>\n<td style=\"text-align: center;\">NOK<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Poland<\/td>\n<td style=\"text-align: center;\">PL<\/td>\n<td style=\"text-align: center;\">PLN<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Portugal<\/td>\n<td style=\"text-align: center;\">PT<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Romania<\/td>\n<td style=\"text-align: center;\">RO<\/td>\n<td style=\"text-align: center;\">RON<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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<\/tr>\n<tr>\n<td style=\"text-align: left;\">Spain<\/td>\n<td style=\"text-align: center;\">ES<\/td>\n<td style=\"text-align: center;\">EUR<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Sweden<\/td>\n<td style=\"text-align: center;\">SE<\/td>\n<td style=\"text-align: center;\">SEK<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Switzerland<\/td>\n<td style=\"text-align: center;\">CH<\/td>\n<td style=\"text-align: center;\">CHF<\/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: 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: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">The Netherlands<\/td>\n<td style=\"text-align: center;\">NL<\/td>\n<td style=\"text-align: center;\">EUR<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">United Kingdom<\/td>\n<td style=\"text-align: center;\">GB<\/td>\n<td style=\"text-align: center;\">GBP<\/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: 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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">United States<\/td>\n<td style=\"text-align: center;\">US<\/td>\n<td style=\"text-align: center;\">USD<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/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: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<\/div>\n\n<p>The  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> response contains:<\/p>\n<ul>\n<li><code>paymentMethod.type<\/code>: <span translate=\"no\"><strong>klarna_paynow<\/strong><\/span> for Klarna Pay Now.<\/li>\n<li><code>paymentMethod.type<\/code>: <span translate=\"no\"><strong>klarna<\/strong><\/span> for Klarna buy now pay later.<\/li>\n<li><code>paymentMethod.type<\/code>: <span translate=\"no\"><strong>klarna_account<\/strong><\/span> for Klarna Pay Over Time.<\/li>\n<\/ul>\n<div class=\"notices green\">\n<p>We provide logos for Klarna which you can use on your payment form. For more information, refer to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#downloading-logos\">Downloading logos<\/a>.<\/p>\n<\/div>\n<h2>Make a payment<\/h2>\n<p>Klarna requires shopper details such as name and address to approve a payment. To improve shopper experience and conversion rates, provide these details in the payment request and make sure that the parameters in the request match.<\/p>\n<p><strong>Send the shopper name and billing address in the request.<\/strong><br \/>\nWe recommend that you send the shopper name and billing address to improve the shopper experience. If not provided in the request, Klarna will ask the shopper to provide these parameters in the checkout page.<\/p>\n<p><strong>Make sure that the country, the currency, and the shopper locale in the request are compatible.<\/strong><\/p>\n<ul>\n<li>Klarna will only approve the payment if the country it is made from matches the currency and the country specified in the billing address.<\/li>\n<li>The Klarna checkout page can only be rendered in another language if the specified locale matches the country and currency used in the request. By default, the checkout page is rendered is English (<code>en-US<\/code>).<\/li>\n<\/ul>\n<p>The following table shows the possible combinations that you can send in a payment request:<\/p>\n<table>\n<thead>\n<tr>\n<th>Country<\/th>\n<th><code>countryCode<\/code><br><code>billingAddress.country<\/code><\/th>\n<th><code>amount.currency<\/code><\/th>\n<th><code>shopperLocale<\/code><br>default<\/th>\n<th><code>shopperLocale<\/code> <br>alternative<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Australia<\/td>\n<td>AU<\/td>\n<td>AUD<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>en_GB<\/code><\/td>\n<\/tr>\n<tr>\n<td>Austria<\/td>\n<td>AT<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>de_AT<\/code><\/td>\n<\/tr>\n<tr>\n<td>Belgium<\/td>\n<td>BE<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>nl_BE<\/code>, <code>fr_BE<\/code><\/td>\n<\/tr>\n<tr>\n<td>Canada<\/td>\n<td>CA<\/td>\n<td>CAD<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>fr_FR<\/code><\/td>\n<\/tr>\n<tr>\n<td>Czechia<\/td>\n<td>CZ<\/td>\n<td>CZK<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>cs_CZ<\/code><\/td>\n<\/tr>\n<tr>\n<td>Denmark<\/td>\n<td>DK<\/td>\n<td>DKK<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>da_DK<\/code><\/td>\n<\/tr>\n<tr>\n<td>Finland<\/td>\n<td>FI<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>fi_FI<\/code>, <code>sv_FI<\/code>, <code>en_FI<\/code><\/td>\n<\/tr>\n<tr>\n<td>France<\/td>\n<td>FR<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>fr_FR<\/code>, <code>en_FR<\/code><\/td>\n<\/tr>\n<tr>\n<td>Germany<\/td>\n<td>DE<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>de_DE<\/code><\/td>\n<\/tr>\n<tr>\n<td>Greece<\/td>\n<td>GR<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>el_GR<\/code><\/td>\n<\/tr>\n<tr>\n<td>Ireland<\/td>\n<td>IE<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>en_GB<\/code><\/td>\n<\/tr>\n<tr>\n<td>Italy<\/td>\n<td>IT<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>it_IT<\/code><\/td>\n<\/tr>\n<tr>\n<td>Norway<\/td>\n<td>NO<\/td>\n<td>NOK<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>nb_NO<\/code><\/td>\n<\/tr>\n<tr>\n<td>Poland<\/td>\n<td>PL<\/td>\n<td>PLN<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>pl_PL<\/code><\/td>\n<\/tr>\n<tr>\n<td>Portugal<\/td>\n<td>PT<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>pt_PT<\/code><\/td>\n<\/tr>\n<tr>\n<td>Romania<\/td>\n<td>RO<\/td>\n<td>RON<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>ro_RO<\/code><\/td>\n<\/tr>\n<tr>\n<td>Spain<\/td>\n<td>ES<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>es_ES<\/code><\/td>\n<\/tr>\n<tr>\n<td>Sweden<\/td>\n<td>SE<\/td>\n<td>SEK<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>sv_SE<\/code><\/td>\n<\/tr>\n<tr>\n<td>Switzerland<\/td>\n<td>CH<\/td>\n<td>CHF<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>de_CH<\/code>, <code>fr_CH<\/code>, <code>it_CH<\/code><\/td>\n<\/tr>\n<tr>\n<td>The Netherlands<\/td>\n<td>NL<\/td>\n<td>EUR<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>nl_NL<\/code><\/td>\n<\/tr>\n<tr>\n<td>United Kingdom<\/td>\n<td>GB<\/td>\n<td>GBP<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>en_GB<\/code><\/td>\n<\/tr>\n<tr>\n<td>United States<\/td>\n<td>US<\/td>\n<td>USD<\/td>\n<td><code>en_US<\/code><\/td>\n<td><code>es_US<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Make a payment request<\/h3>\n<ol>\n<li>\n<p>From your server, make a  <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, specifying:<\/p>\n<ul>\n<li><code>paymentMethod.type<\/code>: The type of Klarna payment the shopper wants to use.\u00a0 Possible values:<\/li>\n<li><span translate=\"no\"><strong>klarna_paynow<\/strong><\/span> for Klarna Pay Now.<\/li>\n<li><span translate=\"no\"><strong>klarna<\/strong><\/span> for Klarna buy now pay later.<\/li>\n<li><span translate=\"no\"><strong>klarna_account<\/strong><\/span> for Klarna Pay Over Time.<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter name<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-lineItems\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">lineItems<\/a><\/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.<br>For Klarna to approve the payment, the total amount specified in <code>lineItems<\/code> must match the <code>amount.value<\/code>, and each line item must include a <code>description<\/code>. <br> You can optionally specify <code>productUrl<\/code> and <code>imageUrl<\/code> to include a link to and a picture of the purchased items in the invoice.<br\/>See <a href=\"\/pt\/payment-methods\/klarna\/airlines\/\">Klarna for airlines<\/a> for details on how to use <code>lineItems<\/code> when payments are made to an airline.<br><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperEmail\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperEmail<\/a><\/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\" \/> <br>See note<a href=\"#shopperEmail\">\n  <sup>1<\/sup>\n<\/a><\/td>\n<td style=\"text-align: left;\">The shopper's email address. This is where Klarna will send the payment instructions. <br> For requirements on this field, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/customer-data-requirements\/#details-needed-per-market\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <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><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">A unique reference to identify the shopper (minimum length three characters).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperName\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperName<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The shopper's full name. <br> Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. <br> For requirements on this field, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/customer-data-requirements\/#details-needed-per-market\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-billingAddress\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">billingAddress<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The postal address of the shopper. <br> Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page. <br> For requirements on this field, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/customer-data-requirements\/#details-needed-per-market\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-deliveryAddress\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">deliveryAddress<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The postal address where the purchased goods should be delivered. If not provided, this is the same as the billing address. <br> For requirements on this field, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/customer-data-requirements\/#details-needed-per-market\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>. <br><br>If the recipient name is different from the shopper making the payment, specify <code>deliveryAddress.firstName<\/code> and <code>deliveryAddress.lastName<\/code> to share the recipient name with Klarna.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperLocale\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperLocale<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">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.<br><br> This has to match the <code>countryCode<\/code> and <code>currency<\/code> used in the request. For more information, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/puchase-countries-currencies-locales\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-countryCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a><\/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 shopper's <a href=\"\/pt\/payment-methods\/klarna#supported-countries\">country<\/a>. <br><br> This has to match the country of the <code>billingAddress<\/code>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-telephoneNumber\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">telephoneNumber<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The shopper's telephone number, if provided. <br> For requirements on this field, see <a href=\"https:\/\/docs.klarna.com\/klarna-payments\/in-depth-knowledge\/customer-data-requirements\/#details-needed-per-market\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/CheckoutService\/latest\/post\/payments__reqParam_additionalData-AdditionalDataOpenInvoice-openinvoicedata-merchantData\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">additionalData.<br \/>openinvoicedata.merchantData<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">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 <code>attachment.body<\/code> value described in <a href=\"https:\/\/docs.klarna.com\/api\/attachment-schema\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Klarna's documentation<\/a>. <br>See <a href=\"\/pt\/payment-methods\/klarna\/airlines\/\">Klarna for airlines<\/a> for details on how to use <code>additionalData<\/code> when payments are made to an airline.<br> Do not include this in the test environment, because test values cause an error.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<p><a id=\"shopperEmail\"><\/a><sup>1<\/sup>You need to include <code>shopperEmail<\/code> to defend against potential disputes from shoppers.<\/p>\n<p>A sample  <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 for Klarna buy now pay later:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'klarna-payments'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n   \\&quot;merchantAccount\\&quot;:\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;reference\\&quot;:\\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n   \\&quot;paymentMethod\\&quot;:{\\n      \\&quot;type\\&quot;:\\&quot;klarna\\&quot;\\n   },\\n   \\&quot;amount\\&quot;:{\\n      \\&quot;currency\\&quot;:\\&quot;SEK\\&quot;,\\n      \\&quot;value\\&quot;: 1000\\n   },\\n   \\&quot;shopperLocale\\&quot;:\\&quot;en_US\\&quot;,\\n   \\&quot;countryCode\\&quot;:\\&quot;SE\\&quot;,\\n   \\&quot;telephoneNumber\\&quot;: \\&quot;+46 840 839 298\\&quot;,\\n   \\&quot;shopperEmail\\&quot;:\\&quot;youremail@email.com\\&quot;,\\n   \\&quot;shopperName\\&quot;:{\\n      \\&quot;firstName\\&quot;:\\&quot;Testperson-se\\&quot;,\\n      \\&quot;lastName\\&quot;:\\&quot;Approved\\&quot;\\n   },\\n   \\&quot;shopperReference\\&quot;:\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n   \\&quot;billingAddress\\&quot;:{\\n      \\&quot;city\\&quot;:\\&quot;Ankeborg\\&quot;,\\n      \\&quot;country\\&quot;:\\&quot;SE\\&quot;,\\n      \\&quot;houseNumberOrName\\&quot;:\\&quot;1\\&quot;,\\n      \\&quot;postalCode\\&quot;:\\&quot;12345\\&quot;,\\n      \\&quot;street\\&quot;:\\&quot;Stargatan\\&quot;\\n   },\\n   \\&quot;deliveryAddress\\&quot;:{\\n      \\&quot;city\\&quot;:\\&quot;Ankeborg\\&quot;,\\n      \\&quot;country\\&quot;:\\&quot;SE\\&quot;,\\n      \\&quot;houseNumberOrName\\&quot;:\\&quot;1\\&quot;,\\n      \\&quot;postalCode\\&quot;:\\&quot;12345\\&quot;,\\n      \\&quot;street\\&quot;:\\&quot;Stargatan\\&quot;\\n   },\\n   \\&quot;returnUrl\\&quot;:\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n   \\&quot;lineItems\\&quot;:[\\n      {\\n         \\&quot;quantity\\&quot;:\\&quot;1\\&quot;,\\n         \\&quot;taxPercentage\\&quot;:\\&quot;2100\\&quot;,\\n         \\&quot;description\\&quot;:\\&quot;Shoes\\&quot;,\\n         \\&quot;id\\&quot;:\\&quot;Item #1\\&quot;,\\n         \\&quot;amountIncludingTax\\&quot;:\\&quot;400\\&quot;,\\n         \\&quot;productUrl\\&quot;: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n         \\&quot;imageUrl\\&quot;: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n      },\\n      {\\n         \\&quot;quantity\\&quot;:\\&quot;2\\&quot;,\\n         \\&quot;taxPercentage\\&quot;:\\&quot;2100\\&quot;,\\n         \\&quot;description\\&quot;:\\&quot;Socks\\&quot;,\\n         \\&quot;id\\&quot;:\\&quot;Item #2\\&quot;,\\n         \\&quot;amountIncludingTax\\&quot;:\\&quot;300\\&quot;,\\n         \\&quot;productUrl\\&quot;: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n         \\&quot;imageUrl\\&quot;: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n      }\\n   ]\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v27.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount()\\n  .currency(\\&quot;SEK\\&quot;)\\n  .value(1000L);\\n\\nLineItem lineItem1 = new LineItem()\\n  .quantity(1L)\\n  .taxPercentage(2100L)\\n  .imageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n  .description(\\&quot;Shoes\\&quot;)\\n  .id(\\&quot;Item #1\\&quot;)\\n  .amountIncludingTax(400L)\\n  .productUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\nLineItem lineItem2 = new LineItem()\\n  .quantity(2L)\\n  .taxPercentage(2100L)\\n  .imageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n  .description(\\&quot;Socks\\&quot;)\\n  .id(\\&quot;Item #2\\&quot;)\\n  .amountIncludingTax(300L)\\n  .productUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\nName name = new Name()\\n  .firstName(\\&quot;Testperson-se\\&quot;)\\n  .lastName(\\&quot;Approved\\&quot;);\\n\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\n  .country(\\&quot;SE\\&quot;)\\n  .city(\\&quot;Ankeborg\\&quot;)\\n  .houseNumberOrName(\\&quot;1\\&quot;)\\n  .street(\\&quot;Stargatan\\&quot;)\\n  .postalCode(\\&quot;12345\\&quot;);\\n\\nKlarnaDetails klarnaDetails = new KlarnaDetails()\\n  .type(KlarnaDetails.TypeEnum.KLARNA);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n  .country(\\&quot;SE\\&quot;)\\n  .city(\\&quot;Ankeborg\\&quot;)\\n  .houseNumberOrName(\\&quot;1\\&quot;)\\n  .street(\\&quot;Stargatan\\&quot;)\\n  .postalCode(\\&quot;12345\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .amount(amount)\\n  .telephoneNumber(\\&quot;+46 840 839 298\\&quot;)\\n  .shopperEmail(\\&quot;youremail@email.com\\&quot;)\\n  .reference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\n  .shopperName(name)\\n  .merchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  .deliveryAddress(deliveryAddress)\\n  .countryCode(\\&quot;SE\\&quot;)\\n  .paymentMethod(new CheckoutPaymentMethod(klarnaDetails))\\n  .shopperLocale(\\&quot;en_US\\&quot;)\\n  .billingAddress(billingAddress)\\n  .returnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;)\\n  .shopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n\\\/\\\/ Send the request\\nPaymentsApi service = new PaymentsApi(client);\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v19.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\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-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;SEK\\&quot;)\\n  -&gt;setValue(1000);\\n\\n$lineItem1 = new LineItem();\\n$lineItem1\\n  -&gt;setQuantity(1)\\n  -&gt;setTaxPercentage(2100)\\n  -&gt;setImageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n  -&gt;setDescription(\\&quot;Shoes\\&quot;)\\n  -&gt;setId(\\&quot;Item #1\\&quot;)\\n  -&gt;setAmountIncludingTax(400)\\n  -&gt;setProductUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\n$lineItem2 = new LineItem();\\n$lineItem2\\n  -&gt;setQuantity(2)\\n  -&gt;setTaxPercentage(2100)\\n  -&gt;setImageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n  -&gt;setDescription(\\&quot;Socks\\&quot;)\\n  -&gt;setId(\\&quot;Item #2\\&quot;)\\n  -&gt;setAmountIncludingTax(300)\\n  -&gt;setProductUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\n$name = new Name();\\n$name\\n  -&gt;setFirstName(\\&quot;Testperson-se\\&quot;)\\n  -&gt;setLastName(\\&quot;Approved\\&quot;);\\n\\n$deliveryAddress = new DeliveryAddress();\\n$deliveryAddress\\n  -&gt;setCountry(\\&quot;SE\\&quot;)\\n  -&gt;setCity(\\&quot;Ankeborg\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;1\\&quot;)\\n  -&gt;setStreet(\\&quot;Stargatan\\&quot;)\\n  -&gt;setPostalCode(\\&quot;12345\\&quot;);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setType(\\&quot;klarna\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n  -&gt;setCountry(\\&quot;SE\\&quot;)\\n  -&gt;setCity(\\&quot;Ankeborg\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;1\\&quot;)\\n  -&gt;setStreet(\\&quot;Stargatan\\&quot;)\\n  -&gt;setPostalCode(\\&quot;12345\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setAmount($amount)\\n  -&gt;setTelephoneNumber(\\&quot;+46 840 839 298\\&quot;)\\n  -&gt;setShopperEmail(\\&quot;youremail@email.com\\&quot;)\\n  -&gt;setReference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n  -&gt;setLineItems(array($lineItem1, $lineItem2))\\n  -&gt;setShopperName($name)\\n  -&gt;setMerchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setDeliveryAddress($deliveryAddress)\\n  -&gt;setCountryCode(\\&quot;SE\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setShopperLocale(\\&quot;en_US\\&quot;)\\n  -&gt;setBillingAddress($billingAddress)\\n  -&gt;setReturnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;)\\n  -&gt;setShopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v17.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;SEK\\&quot;,\\n  Value = 1000\\n};\\n\\nLineItem lineItem1 = new LineItem\\n{\\n  Quantity = 1,\\n  TaxPercentage = 2100,\\n  ImageUrl = \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n  Description = \\&quot;Shoes\\&quot;,\\n  Id = \\&quot;Item #1\\&quot;,\\n  AmountIncludingTax = 400,\\n  ProductUrl = \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nLineItem lineItem2 = new LineItem\\n{\\n  Quantity = 2,\\n  TaxPercentage = 2100,\\n  ImageUrl = \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n  Description = \\&quot;Socks\\&quot;,\\n  Id = \\&quot;Item #2\\&quot;,\\n  AmountIncludingTax = 300,\\n  ProductUrl = \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nName name = new Name\\n{\\n  FirstName = \\&quot;Testperson-se\\&quot;,\\n  LastName = \\&quot;Approved\\&quot;\\n};\\n\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\n{\\n  Country = \\&quot;SE\\&quot;,\\n  City = \\&quot;Ankeborg\\&quot;,\\n  HouseNumberOrName = \\&quot;1\\&quot;,\\n  Street = \\&quot;Stargatan\\&quot;,\\n  PostalCode = \\&quot;12345\\&quot;\\n};\\n\\nKlarnaDetails klarnaDetails = new KlarnaDetails\\n{\\n  Type = KlarnaDetails.TypeEnum.Klarna\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n  Country = \\&quot;SE\\&quot;,\\n  City = \\&quot;Ankeborg\\&quot;,\\n  HouseNumberOrName = \\&quot;1\\&quot;,\\n  Street = \\&quot;Stargatan\\&quot;,\\n  PostalCode = \\&quot;12345\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Amount = amount,\\n  TelephoneNumber = \\&quot;+46 840 839 298\\&quot;,\\n  ShopperEmail = \\&quot;youremail@email.com\\&quot;,\\n  Reference = \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  LineItems = new List&lt;LineItem&gt;{ lineItem1, lineItem2 },\\n  ShopperName = name,\\n  MerchantAccount = \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  DeliveryAddress = deliveryAddress,\\n  CountryCode = \\&quot;SE\\&quot;,\\n  PaymentMethod = new CheckoutPaymentMethod(klarnaDetails),\\n  ShopperLocale = \\&quot;en_US\\&quot;,\\n  BillingAddress = billingAddress,\\n  ReturnUrl = \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  ShopperReference = \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentsService(client);\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&quot;});&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  paymentMethod: {\\n    type: \\&quot;klarna\\&quot;\\n  },\\n  amount: {\\n    currency: \\&quot;SEK\\&quot;,\\n    value: 1000\\n  },\\n  shopperLocale: \\&quot;en_US\\&quot;,\\n  countryCode: \\&quot;SE\\&quot;,\\n  telephoneNumber: \\&quot;+46 840 839 298\\&quot;,\\n  shopperEmail: \\&quot;youremail@email.com\\&quot;,\\n  shopperName: {\\n    firstName: \\&quot;Testperson-se\\&quot;,\\n    lastName: \\&quot;Approved\\&quot;\\n  },\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  billingAddress: {\\n    city: \\&quot;Ankeborg\\&quot;,\\n    country: \\&quot;SE\\&quot;,\\n    houseNumberOrName: \\&quot;1\\&quot;,\\n    postalCode: \\&quot;12345\\&quot;,\\n    street: \\&quot;Stargatan\\&quot;\\n  },\\n  deliveryAddress: {\\n    city: \\&quot;Ankeborg\\&quot;,\\n    country: \\&quot;SE\\&quot;,\\n    houseNumberOrName: \\&quot;1\\&quot;,\\n    postalCode: \\&quot;12345\\&quot;,\\n    street: \\&quot;Stargatan\\&quot;\\n  },\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  lineItems: [ {\\n    quantity: \\&quot;1\\&quot;,\\n    taxPercentage: \\&quot;2100\\&quot;,\\n    description: \\&quot;Shoes\\&quot;,\\n    id: \\&quot;Item #1\\&quot;,\\n    amountIncludingTax: \\&quot;400\\&quot;,\\n    productUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n    imageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n  }, {\\n    quantity: \\&quot;2\\&quot;,\\n    taxPercentage: \\&quot;2100\\&quot;,\\n    description: \\&quot;Socks\\&quot;,\\n    id: \\&quot;Item #2\\&quot;,\\n    amountIncludingTax: \\&quot;300\\&quot;,\\n    productUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n    imageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n  } ]\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v10.4.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\namount := checkout.Amount{\\n  Currency: \\&quot;SEK\\&quot;,\\n  Value: 1000,\\n}\\n\\nlineItem1 := checkout.LineItem{\\n  Quantity: common.PtrInt64(1),\\n  TaxPercentage: common.PtrInt64(2100),\\n  ImageUrl: common.PtrString(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;),\\n  Description: common.PtrString(\\&quot;Shoes\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #1\\&quot;),\\n  AmountIncludingTax: common.PtrInt64(400),\\n  ProductUrl: common.PtrString(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;),\\n}\\n\\nlineItem2 := checkout.LineItem{\\n  Quantity: common.PtrInt64(2),\\n  TaxPercentage: common.PtrInt64(2100),\\n  ImageUrl: common.PtrString(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;),\\n  Description: common.PtrString(\\&quot;Socks\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #2\\&quot;),\\n  AmountIncludingTax: common.PtrInt64(300),\\n  ProductUrl: common.PtrString(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;),\\n}\\n\\nname := checkout.Name{\\n  FirstName: \\&quot;Testperson-se\\&quot;,\\n  LastName: \\&quot;Approved\\&quot;,\\n}\\n\\ndeliveryAddress := checkout.DeliveryAddress{\\n  Country: \\&quot;SE\\&quot;,\\n  City: \\&quot;Ankeborg\\&quot;,\\n  HouseNumberOrName: \\&quot;1\\&quot;,\\n  Street: \\&quot;Stargatan\\&quot;,\\n  PostalCode: \\&quot;12345\\&quot;,\\n}\\n\\nklarnaDetails := checkout.KlarnaDetails{\\n  Type: \\&quot;klarna\\&quot;,\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n  Country: \\&quot;SE\\&quot;,\\n  City: \\&quot;Ankeborg\\&quot;,\\n  HouseNumberOrName: \\&quot;1\\&quot;,\\n  Street: \\&quot;Stargatan\\&quot;,\\n  PostalCode: \\&quot;12345\\&quot;,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Amount: amount,\\n  TelephoneNumber: common.PtrString(\\&quot;+46 840 839 298\\&quot;),\\n  ShopperEmail: common.PtrString(\\&quot;youremail@email.com\\&quot;),\\n  Reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  LineItems: []checkout.LineItem{\\n      lineItem1, lineItem2,\\n  },\\n  ShopperName: &amp;name,\\n  MerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  DeliveryAddress: &amp;deliveryAddress,\\n  CountryCode: common.PtrString(\\&quot;SE\\&quot;),\\n  PaymentMethod: checkout.KlarnaDetailsAsCheckoutPaymentMethod(&amp;klarnaDetails),\\n  ShopperLocale: common.PtrString(\\&quot;en_US\\&quot;),\\n  BillingAddress: &amp;billingAddress,\\n  ReturnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  ShopperReference: common.PtrString(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;)\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\&quot;UUID\\&quot;).PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.5.1\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;klarna\\&quot;\\n  },\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;SEK\\&quot;,\\n    \\&quot;value\\&quot;: 1000\\n  },\\n  \\&quot;shopperLocale\\&quot;: \\&quot;en_US\\&quot;,\\n  \\&quot;countryCode\\&quot;: \\&quot;SE\\&quot;,\\n  \\&quot;telephoneNumber\\&quot;: \\&quot;+46 840 839 298\\&quot;,\\n  \\&quot;shopperEmail\\&quot;: \\&quot;youremail@email.com\\&quot;,\\n  \\&quot;shopperName\\&quot;: {\\n    \\&quot;firstName\\&quot;: \\&quot;Testperson-se\\&quot;,\\n    \\&quot;lastName\\&quot;: \\&quot;Approved\\&quot;\\n  },\\n  \\&quot;shopperReference\\&quot;: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  \\&quot;billingAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;Ankeborg\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;SE\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;12345\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Stargatan\\&quot;\\n  },\\n  \\&quot;deliveryAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;Ankeborg\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;SE\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;12345\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Stargatan\\&quot;\\n  },\\n  \\&quot;returnUrl\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  \\&quot;lineItems\\&quot;: [ {\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;taxPercentage\\&quot;: \\&quot;2100\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;Shoes\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #1\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;400\\&quot;,\\n    \\&quot;productUrl\\&quot;: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n    \\&quot;imageUrl\\&quot;: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n  }, {\\n    \\&quot;quantity\\&quot;: \\&quot;2\\&quot;,\\n    \\&quot;taxPercentage\\&quot;: \\&quot;2100\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;Socks\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #2\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;300\\&quot;,\\n    \\&quot;productUrl\\&quot;: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n    \\&quot;imageUrl\\&quot;: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n  } ]\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.5.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'ADYEN_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_REFERENCE',\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'klarna'\\n  },\\n  :amount =&gt; {\\n    :currency =&gt; 'SEK',\\n    :value =&gt; 1000\\n  },\\n  :shopperLocale =&gt; 'en_US',\\n  :countryCode =&gt; 'SE',\\n  :telephoneNumber =&gt; '+46 840 839 298',\\n  :shopperEmail =&gt; 'youremail@email.com',\\n  :shopperName =&gt; {\\n    :firstName =&gt; 'Testperson-se',\\n    :lastName =&gt; 'Approved'\\n  },\\n  :shopperReference =&gt; 'YOUR_UNIQUE_SHOPPER_ID',\\n  :billingAddress =&gt; {\\n    :city =&gt; 'Ankeborg',\\n    :country =&gt; 'SE',\\n    :houseNumberOrName =&gt; '1',\\n    :postalCode =&gt; '12345',\\n    :street =&gt; 'Stargatan'\\n  },\\n  :deliveryAddress =&gt; {\\n    :city =&gt; 'Ankeborg',\\n    :country =&gt; 'SE',\\n    :houseNumberOrName =&gt; '1',\\n    :postalCode =&gt; '12345',\\n    :street =&gt; 'Stargatan'\\n  },\\n  :returnUrl =&gt; 'https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..',\\n  :lineItems =&gt; [ {\\n    :quantity =&gt; '1',\\n    :taxPercentage =&gt; '2100',\\n    :description =&gt; 'Shoes',\\n    :id =&gt; 'Item #1',\\n    :amountIncludingTax =&gt; '400',\\n    :productUrl =&gt; 'URL_TO_PURCHASED_ITEM',\\n    :imageUrl =&gt; 'URL_TO_PICTURE_OF_PURCHASED_ITEM'\\n  }, {\\n    :quantity =&gt; '2',\\n    :taxPercentage =&gt; '2100',\\n    :description =&gt; 'Socks',\\n    :id =&gt; 'Item #2',\\n    :amountIncludingTax =&gt; '300',\\n    :productUrl =&gt; 'URL_TO_PURCHASED_ITEM',\\n    :imageUrl =&gt; 'URL_TO_PICTURE_OF_PURCHASED_ITEM'\\n  } ]\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;SEK\\&quot;,\\n  value: 1000\\n};\\n\\nconst lineItem1: Types.checkout.LineItem = {\\n  quantity: 1,\\n  taxPercentage: 2100,\\n  imageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n  description: \\&quot;Shoes\\&quot;,\\n  id: \\&quot;Item #1\\&quot;,\\n  amountIncludingTax: 400,\\n  productUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nconst lineItem2: Types.checkout.LineItem = {\\n  quantity: 2,\\n  taxPercentage: 2100,\\n  imageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n  description: \\&quot;Socks\\&quot;,\\n  id: \\&quot;Item #2\\&quot;,\\n  amountIncludingTax: 300,\\n  productUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nconst name: Types.checkout.Name = {\\n  firstName: \\&quot;Testperson-se\\&quot;,\\n  lastName: \\&quot;Approved\\&quot;\\n};\\n\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\n  country: \\&quot;SE\\&quot;,\\n  city: \\&quot;Ankeborg\\&quot;,\\n  houseNumberOrName: \\&quot;1\\&quot;,\\n  street: \\&quot;Stargatan\\&quot;,\\n  postalCode: \\&quot;12345\\&quot;\\n};\\n\\nconst klarnaDetails: Types.checkout.KlarnaDetails = {\\n  type: Types.checkout.KlarnaDetails.TypeEnum.Klarna\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n  country: \\&quot;SE\\&quot;,\\n  city: \\&quot;Ankeborg\\&quot;,\\n  houseNumberOrName: \\&quot;1\\&quot;,\\n  street: \\&quot;Stargatan\\&quot;,\\n  postalCode: \\&quot;12345\\&quot;\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  amount: amount,\\n  telephoneNumber: \\&quot;+46 840 839 298\\&quot;,\\n  shopperEmail: \\&quot;youremail@email.com\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  lineItems: [lineItem1, lineItem2],\\n  shopperName: name,\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  deliveryAddress: deliveryAddress,\\n  countryCode: \\&quot;SE\\&quot;,\\n  paymentMethod: klarnaDetails,\\n  shopperLocale: \\&quot;en_US\\&quot;,\\n  billingAddress: billingAddress,\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>In the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> response, check the <code>action<\/code> object for the information that you must use to redirect the shopper.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/payments response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"resultCode\\\":\\\"RedirectShopper\\\",\\n  \\\"action\\\":{\\n    \\\"paymentMethodType\\\":\\\"klarna\\\",\\n    \\\"method\\\":\\\"GET\\\",\\n    \\\"url\\\":\\\"https:\\\/\\\/checkoutshopper-test.adyen.com\\\/checkoutshopper\\\/checkoutPaymentRedirect?redirectData=...\\\",\\n    \\\"type\\\":\\\"redirect\\\"\\n  }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<ol start=\"2\">\n<li>Pass the <code>action<\/code> object to your client app.<\/li>\n<\/ol>\n<h2>Handle the redirect<\/h2>\n<ol>\n<li>Use the <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow\/?platform=Android&amp;integration=Components#handle-a-redirect\">Redirect Component<\/a> to redirect the shopper to Klarna.<\/li>\n<li>After the shopper returns to your app, make a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> request from your server, providing:\n<ul>\n<li><code>details<\/code>: The <code>actionComponentData.details<\/code> object from the Redirect Component.<\/li>\n<\/ul><\/li>\n<\/ol>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/payments\/details request'\" :id=\"''\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v68\\\/payments\\\/details \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n     \\&quot;details\\&quot;: {\\n       \\&quot;redirectResult\\&quot;: \\&quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\&quot;\\n   }\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>You receive a response containing:<\/p>\n<ul>\n<li><code>resultCode<\/code>: Use this to present the payment result to your shopper.<\/li>\n<li><code>pspReference<\/code>: Our unique identifier for the transaction.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/payments\/details response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"resultCode\\\": \\\"Authorised\\\",\\n      \\\"pspReference\\\": \\\"PPKFQ89R6QRXGN82\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"present-the-payment-result\">Present the payment result<\/h2>\n<p>Use the\u00a0<code>resultCode<\/code>\u00a0from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response to present the payment result to your shopper. The <code>resultCode<\/code> values you can receive for Klarna are:<\/p>\n<table>\n<thead>\n<tr>\n<th>resultCode<\/th>\n<th>Description<\/th>\n<th>Action to take<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Authorised<\/strong><\/td>\n<td>The payment was successful.<\/td>\n<td>Inform the shopper that the payment was successful. After the goods have been sent, you also need to <a href=\"#capture\">capture<\/a> the payment.<\/td>\n<\/tr>\n<tr>\n<td><strong>Cancelled<\/strong><\/td>\n<td>The shopper cancelled the payment.<\/td>\n<td>Ask the shopper whether they want to continue with the order, or ask them to select a different payment method.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><strong>Refused<\/strong><\/td>\n<td>The payment was refused by Klarna, as it didn't pass their risk checks.<\/td>\n<td>Ask the shopper to try the payment again using a different payment method.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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\/payment-result\/refusedbyklarna.png\" src=\"\">\n  <img alt=\"\" src=\"\/user\/pages\/reuse\/payment-method-pages\/klarna\/payment-result\/refusedbyklarna.png\" \/>\n<\/a><\/p>\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>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\/build-your-integration\/sessions-flow?platform=Android&amp;integration=Components\"\n                        target=\"_self\"\n                        >\n                    Android Components 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\/android-component","articleFields":{"description":"Add Klarna to an existing Components integration.","parameters":{"payment_method":"Klarna","payment_method_type":"klarna","return_url":"adyencheckout:\/\/your.package.name","integration":"Components","platform":"Android","integration_guide_url":"build-your-integration\/sessions-flow?platform=Android&integration=Components","module_import":"instant","android_component":"InstantPaymentComponent"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna\/android-component","title":"Klarna Redirect Component","content":"\nIf you are using Android Components v5.0.0 or later:\nThis payment method requires no additional configuration.\nFollow the  Components integration guide and use the following module and Component names:\n\nTo import the module: instant\nTo launch and show the Component: InstantPaymentComponent\n\n\nIf you have an existing Android Components integration, you can use our Redirect Component to redirect the shopper to Klarna to complete the payment. When making a Klarna payment, you need to:\n\nInclude Klarna in the list of available payment methods.\nCollect shopper details, and specify these in your payment request. Klarna uses this information for risk checks.\nProvide information about the purchased items by specifying lineItems in your payment request.\nHandle the redirect.\nCapture the payment after the goods have been sent. This triggers the payment instructions to be sent to the shopper.\n\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built an Advanced flow Android Components integration. \n\n\nSetup steps\nBefore you begin, add Klarna in your Customer Area.\n\n\n\nShow Klarna in your payment form\nWhen making a Klarna payment, collect the following shopper details:\n\n\n\nShopper detail\nDescription\nRequired\n\n\n\n\nShopper name\nThe shopper's full name.\n\n\n\nShopper email\nThe shopper's email address. This is where Klarna will send the invoice.\n\n\n\nThe billing address\nThe postal address to be included on the invoice.\n\n\n\n\n\nFor improved conversion rates, we strongly recommend that you collect the shopper name and the billing address.\n\nIf you are using the  \/paymentMethods to show available payment methods to the shopper, specify in your  \/paymentMethods request one of the following combinations of  countryCode and  amount.currency, depending on which Klarna payment method you want to accept:\n\n    \n\n\n\nCountry\/region\ncountryCode\namount.currency\nPay now\nPay later\nPay over time\n\n\n\n\nAustralia\nAU\nAUD\n\n\n\n\n\nAustria\nAT\nEUR\n\n\n\n\n\nBelgium\nBE\nEUR\n\n\n\n\n\nCanada\nCA\nCAD\n\n\n\n\n\nCzech Republic\nCZ\nCZK\n\n\n\n\n\nDenmark\nDK\nDKK\n\n\n\n\n\nFinland\nFI\nEUR\n\n\n\n\n\nFrance\nFR\nEUR\n\n\n\n\n\nGermany\nDE\nEUR\n\n\n\n\n\nGreece\nGR\nEUR\n\n\n\n\n\nIreland\nIE\nEUR\n\n\n\n\n\nItaly\nIT\nEUR\n\n\n\n\n\nNorway\nNO\nNOK\n\n\n\n\n\nPoland\nPL\nPLN\n\n\n\n\n\nPortugal\nPT\nEUR\n\n\n\n\n\nRomania\nRO\nRON\n\n\n\n\n\nSpain\nES\nEUR\n\n\n\n\n\nSweden\nSE\nSEK\n\n\n\n\n\nSwitzerland\nCH\nCHF\n\n\n\n\n\nThe Netherlands\nNL\nEUR\n\n\n\n\n\nUnited Kingdom\nGB\nGBP\n\n\n\n\n\nUnited States\nUS\nUSD\n\n\n\n\n\n\n\n\n\nThe  \/paymentMethods response contains:\n\npaymentMethod.type: klarna_paynow for Klarna Pay Now.\npaymentMethod.type: klarna for Klarna buy now pay later.\npaymentMethod.type: klarna_account for Klarna Pay Over Time.\n\n\nWe provide logos for Klarna which you can use on your payment form. For more information, refer to Downloading logos.\n\nMake a payment\nKlarna requires shopper details such as name and address to approve a payment. To improve shopper experience and conversion rates, provide these details in the payment request and make sure that the parameters in the request match.\nSend the shopper name and billing address in the request.\nWe recommend that you send the shopper name and billing address to improve the shopper experience. If not provided in the request, Klarna will ask the shopper to provide these parameters in the checkout page.\nMake sure that the country, the currency, and the shopper locale in the request are compatible.\n\nKlarna will only approve the payment if the country it is made from matches the currency and the country specified in the billing address.\nThe Klarna checkout page can only be rendered in another language if the specified locale matches the country and currency used in the request. By default, the checkout page is rendered is English (en-US).\n\nThe following table shows the possible combinations that you can send in a payment request:\n\n\n\nCountry\ncountryCodebillingAddress.country\namount.currency\nshopperLocaledefault\nshopperLocale alternative\n\n\n\n\nAustralia\nAU\nAUD\nen_US\nen_GB\n\n\nAustria\nAT\nEUR\nen_US\nde_AT\n\n\nBelgium\nBE\nEUR\nen_US\nnl_BE, fr_BE\n\n\nCanada\nCA\nCAD\nen_US\nfr_FR\n\n\nCzechia\nCZ\nCZK\nen_US\ncs_CZ\n\n\nDenmark\nDK\nDKK\nen_US\nda_DK\n\n\nFinland\nFI\nEUR\nen_US\nfi_FI, sv_FI, en_FI\n\n\nFrance\nFR\nEUR\nen_US\nfr_FR, en_FR\n\n\nGermany\nDE\nEUR\nen_US\nde_DE\n\n\nGreece\nGR\nEUR\nen_US\nel_GR\n\n\nIreland\nIE\nEUR\nen_US\nen_GB\n\n\nItaly\nIT\nEUR\nen_US\nit_IT\n\n\nNorway\nNO\nNOK\nen_US\nnb_NO\n\n\nPoland\nPL\nPLN\nen_US\npl_PL\n\n\nPortugal\nPT\nEUR\nen_US\npt_PT\n\n\nRomania\nRO\nRON\nen_US\nro_RO\n\n\nSpain\nES\nEUR\nen_US\nes_ES\n\n\nSweden\nSE\nSEK\nen_US\nsv_SE\n\n\nSwitzerland\nCH\nCHF\nen_US\nde_CH, fr_CH, it_CH\n\n\nThe Netherlands\nNL\nEUR\nen_US\nnl_NL\n\n\nUnited Kingdom\nGB\nGBP\nen_US\nen_GB\n\n\nUnited States\nUS\nUSD\nen_US\nes_US\n\n\n\nMake a payment request\n\n\nFrom your server, make a  \/payments request, specifying:\n\npaymentMethod.type: The type of Klarna payment the shopper wants to use.\u00a0 Possible values:\nklarna_paynow for Klarna Pay Now.\nklarna for Klarna buy now pay later.\nklarna_account for Klarna Pay Over Time.\n\n\n\n\nParameter name\nRequired\nDescription\n\n\n\n\n lineItems\n\nPrice and product information about the purchased items.For Klarna to approve the payment, the total amount specified in lineItems must match the amount.value, and each line item must include a description.  You can optionally specify productUrl and imageUrl to include a link to and a picture of the purchased items in the invoice.See Klarna for airlines for details on how to use lineItems when payments are made to an airline.\n\n\n shopperEmail\n See note\n  1\n\nThe shopper's email address. This is where Klarna will send the payment instructions.  For requirements on this field, see Klarna's documentation.\n\n\n shopperReference\n\nA unique reference to identify the shopper (minimum length three characters).\n\n\n shopperName\n\nThe shopper's full name.  Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page.  For requirements on this field, see Klarna's documentation.\n\n\n billingAddress\n\nThe postal address of the shopper.  Recommended to increase conversion rates. If you do not include it, Klarna will ask the shopper to provide this in the checkout page.  For requirements on this field, see Klarna's documentation.\n\n\n deliveryAddress\n\nThe postal address where the purchased goods should be delivered. If not provided, this is the same as the billing address.  For requirements on this field, see Klarna's documentation. If the recipient name is different from the shopper making the payment, specify deliveryAddress.firstName and deliveryAddress.lastName to share the recipient name with Klarna.\n\n\n shopperLocale\n\nA 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. This has to match the countryCode and currency used in the request. For more information, see Klarna's documentation.\n\n\n countryCode\n\nThe shopper's country.  This has to match the country of the billingAddress.\n\n\n telephoneNumber\n\nThe shopper's telephone number, if provided.  For requirements on this field, see Klarna's documentation.\n\n\nadditionalData.openinvoicedata.merchantData\n\nFor 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 attachment.body value described in Klarna's documentation. See Klarna for airlines for details on how to use additionalData when payments are made to an airline. Do not include this in the test environment, because test values cause an error.\n\n\n\n\n\n1You need to include shopperEmail to defend against potential disputes from shoppers.\nA sample  \/payments request for Klarna buy now pay later:\n\n    \n\nIn the  \/payments response, check the action object for the information that you must use to redirect the shopper.\n\n    \n\n\nPass the action object to your client app.\n\nHandle the redirect\n\nUse the Redirect Component to redirect the shopper to Klarna.\nAfter the shopper returns to your app, make a POST  \/payments\/details request from your server, providing:\n\ndetails: The actionComponentData.details object from the Redirect Component.\n\n\n\n    \n\nYou receive a response containing:\n\nresultCode: Use this to present the payment result to your shopper.\npspReference: Our unique identifier for the transaction.\n\n\n    \n\nPresent the payment result\nUse the\u00a0resultCode\u00a0from the  \/payments\/details response to present the payment result to your shopper. The resultCode values you can receive for Klarna are:\n\n\n\nresultCode\nDescription\nAction to take\n\n\n\n\nAuthorised\nThe payment was successful.\nInform the shopper that the payment was successful. After the goods have been sent, you also need to capture the payment.\n\n\nCancelled\nThe shopper cancelled the payment.\nAsk the shopper whether they want to continue with the order, or ask them to select a different payment method.\n\n\n\nRefused\nThe payment was refused by Klarna, as it didn't pass their risk checks.\nAsk the shopper to try the payment again using a different payment method.\n\n\n\nWhen a payment is refused by Klarna, the shopper sees the following message:\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.\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                    Android Components 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 Redirect Component"},"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\/android-component"},"levels":4,"category":"Payment method","category_color":"green","tags":["Klarna","Redirect","Component"]}}
