{"title":"Billie via Klarna","category":"default","creationDate":1776961628,"content":"<div class=\"additional-info-block output-inline\">\n<div class=\"additional-info-block__body\"><p><img alt=\"payment-methods-icon\" src=\"\/images\/4\/9\/3\/8\/4\/49384708def8d90a69ad77cba9034ede201ec46d-billie.png\" \/>&nbsp;&nbsp;<strong>Read more<\/strong><\/p><p>Read more about Billie on <a href=\"https:\/\/www.billie.io\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">their website<\/a>.<\/p><\/div><\/div>\n\n<p>Billie is a Berlin-based Buy Now Pay Later (BNPL) provider that specializes in providing open invoice and deferred payment options to Business-to-Business (B2B) customers. With Billie, merchants can accept invoice payments that are immediately settled in full.<\/p>\n<p>Adyen offers Billie through a Klarna integration.<\/p>\n<table class=\"table-payments-methods\">\n    <thead>\n        <tr>\n                            <th>\n                                            Payment type\n                                    <\/th>\n                            <th>\n                                            Payment flow\n                                    <\/th>\n                            <th>\n                                            Countries\n                                    <\/th>\n                            <th>\n                                            Currencies\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/tokenization\" target=\"_blank\">Recurring<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/refund\" target=\"_blank\">Refunds<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/refund\/#refund-a-payment\" target=\"_blank\">Partial refunds<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/refund\" target=\"_blank\">Multiple partial refunds<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/capture\" target=\"_blank\">Separate captures<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/capture\/#partial-capture\" target=\"_blank\">Partial captures<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/online-payments\/capture\/#multiple-partial-captures\" target=\"_blank\">Multiple partial captures<\/a>\n                                    <\/th>\n                            <th>\n                                            <a href=\"\/risk-management\/chargeback-guidelines\" target=\"_blank\">Chargebacks<\/a>\n                                    <\/th>\n                    <\/tr>\n    <\/thead>\n    <tbody>\n        <tr>\n                                               <td>\n                     Buy Now Pay Later\n                                        <\/td>\n                                                               <td>\n                     Redirect, Inline widget\n                                        <\/td>\n                                                               <td>\n                     International\n                                        <\/td>\n                                                               <td>\n                     EUR, GBP, NOK, SEK\n                                        <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" alt=\"x\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                                                <td class=\"u-text-align-center\">\n                        <img class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" alt=\"checkmark\"><\/br>\n                                            <\/td>\n                                    <\/tr>\n    <\/tbody>\n<\/table>\n\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 your <a href=\"\/pt\/payment-methods\/klarna\">Klarna integration<\/a> for the intended platform (Web, iOS, Android, React) and integration (API-only, Drop-in, Components).  <\/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 Billie in your test Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Required fields<\/h2>\n<p>Billie is an extension to a Klarna integration. Wherever you must specify <code>paymentMethod.type<\/code>, use <span translate=\"no\"><strong>klarna_b2b<\/strong><\/span> to process a Billie payment.<\/p>\n<p>Billie requires that your payment request includes the  <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> object and the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/sessions#request-company\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">company<\/a> object, which contains details about the company you are invoicing:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>company.name<\/code><\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The company name.<\/td>\n<\/tr>\n<tr>\n<td><code>company.homepage<\/code><\/td>\n<td><\/td>\n<td>The company website's home page.<\/td>\n<\/tr>\n<tr>\n<td><code>company.registrationNumber<\/code><\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The company's registration number. Required for all countries except DE and AT.<\/td>\n<\/tr>\n<tr>\n<td><code>company.registryLocation<\/code><\/td>\n<td><\/td>\n<td>The country code where the company is located. <br>Format: the two-letter <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO-3166-1 alpha-2<\/a> country code. Exception: <strong>QZ<\/strong> (Kosovo).<\/td>\n<\/tr>\n<tr>\n<td><code>company.taxId<\/code><\/td>\n<td><\/td>\n<td>The company's tax ID.<\/td>\n<\/tr>\n<tr>\n<td><code>company.type<\/code><\/td>\n<td><\/td>\n<td>The company's type.<br>For example, <span translate=\"no\"><strong>GmbH<\/strong><\/span> or <span translate=\"no\"><strong>AB<\/strong><\/span>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Payment request and response<\/h2>\n<p>The following is 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 Billie. Note the required <code>paymentMethod<\/code> and <code>company<\/code> objects:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Sample Billie request'\" :id=\"'billie-payments-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 \\\\\\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_b2b\\&quot;,\\n    },\\n    \\&quot;amount\\&quot;:{\\n       \\&quot;currency\\&quot;:\\&quot;EUR\\&quot;,\\n       \\&quot;value\\&quot;: 50000\\n    },\\n    \\&quot;shopperLocale\\&quot;:\\&quot;de_DE\\&quot;,\\n    \\&quot;countryCode\\&quot;:\\&quot;DE\\&quot;,\\n    \\&quot;telephoneNumber\\&quot;: \\&quot;+49 840 839 298\\&quot;,\\n    \\&quot;shopperEmail\\&quot;:\\&quot;youremail@email.com\\&quot;,\\n    \\&quot;shopperName\\&quot;:{\\n        \\&quot;firstName\\&quot;:\\&quot;Testperson-de\\&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;Berlin\\&quot;,\\n        \\&quot;country\\&quot;:\\&quot;DE\\&quot;,\\n        \\&quot;houseNumberOrName\\&quot;:\\&quot;4\\&quot;,\\n        \\&quot;postalCode\\&quot;:\\&quot;10969\\&quot;,\\n        \\&quot;street\\&quot;:\\&quot;Charlottenstrasse\\&quot;\\n    },\\n    \\&quot;returnUrl\\&quot;:\\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n    \\&quot;company\\&quot;:{\\n        \\&quot;homepage\\&quot;:\\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;,\\n        \\&quot;name\\&quot;:\\&quot;Billie GmbH\\&quot;,\\n        \\&quot;registrationNumber\\&quot;:\\&quot;HRB182428\\&quot;,\\n        \\&quot;registryLocation\\&quot;:\\&quot;DE\\&quot;,\\n        \\&quot;taxId\\&quot;:\\&quot;DE310295470\\&quot;,\\n        \\&quot;type\\&quot;:\\&quot;GmbH\\&quot;\\n    },\\n    \\&quot;lineItems\\&quot;:[\\n        {\\n           \\&quot;quantity\\&quot;:\\&quot;1\\&quot;,\\n           \\&quot;taxPercentage\\&quot;:\\&quot;2100\\&quot;,\\n           \\&quot;description\\&quot;:\\&quot;Hammer\\&quot;,\\n           \\&quot;id\\&quot;:\\&quot;Item #1\\&quot;,\\n           \\&quot;amountIncludingTax\\&quot;:\\&quot;20000\\&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;Nails\\&quot;,\\n           \\&quot;id\\&quot;:\\&quot;Item #2\\&quot;,\\n           \\&quot;amountIncludingTax\\&quot;:\\&quot;15000\\&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 v25.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\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Request objects\\nAmount amount = new Amount()\\n\\t.currency(\\&quot;EUR\\&quot;)\\n\\t.value(50000L);\\n\\nLineItem lineItem1 = new LineItem()\\n\\t.quantity(1L)\\n\\t.taxPercentage(2100L)\\n\\t.imageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n\\t.description(\\&quot;Hammer\\&quot;)\\n\\t.id(\\&quot;Item #1\\&quot;)\\n\\t.amountIncludingTax(20000L)\\n\\t.productUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\nLineItem lineItem2 = new LineItem()\\n\\t.quantity(2L)\\n\\t.taxPercentage(2100L)\\n\\t.imageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n\\t.description(\\&quot;Nails\\&quot;)\\n\\t.id(\\&quot;Item #2\\&quot;)\\n\\t.amountIncludingTax(15000L)\\n\\t.productUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\nName name = new Name()\\n\\t.firstName(\\&quot;Testperson-de\\&quot;)\\n\\t.lastName(\\&quot;Approved\\&quot;);\\n\\nKlarnaDetails klarnaDetails = new KlarnaDetails()\\n\\t.subtype(\\&quot;sdk\\&quot;)\\n\\t.type(KlarnaDetails.TypeEnum.KLARNA_B2B);\\n\\nCompany company = new Company()\\n\\t.registrationNumber(\\&quot;HRB182428\\&quot;)\\n\\t.registryLocation(\\&quot;DE\\&quot;)\\n\\t.taxId(\\&quot;DE310295470\\&quot;)\\n\\t.name(\\&quot;Billie GmbH\\&quot;)\\n\\t.type(\\&quot;GmbH\\&quot;)\\n\\t.homepage(\\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n\\t.country(\\&quot;DE\\&quot;)\\n\\t.city(\\&quot;Berlin\\&quot;)\\n\\t.houseNumberOrName(\\&quot;4\\&quot;)\\n\\t.street(\\&quot;Charlottenstrasse\\&quot;)\\n\\t.postalCode(\\&quot;10969\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n\\t.amount(amount)\\n\\t.telephoneNumber(\\&quot;+49 840 839 298\\&quot;)\\n\\t.shopperEmail(\\&quot;youremail@email.com\\&quot;)\\n\\t.reference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n\\t.lineItems(Arrays.asList(lineItem1, lineItem2))\\n\\t.shopperName(name)\\n\\t.merchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n\\t.countryCode(\\&quot;DE\\&quot;)\\n\\t.paymentMethod(new CheckoutPaymentMethod(klarnaDetails))\\n\\t.company(company)\\n\\t.shopperLocale(\\&quot;de_DE\\&quot;)\\n\\t.billingAddress(billingAddress)\\n\\t.returnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;)\\n\\t.shopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n\\\/\\\/ Make 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 v17.4.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\\\\CheckoutPaymentMethod;\\nuse Adyen\\\\Model\\\\Checkout\\\\Company;\\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$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Request objects\\n$amount = new Amount();\\n$amount\\n\\t-&gt;setCurrency(\\&quot;EUR\\&quot;)\\n\\t-&gt;setValue(50000);\\n\\n$lineItem1 = new LineItem();\\n$lineItem1\\n\\t-&gt;setQuantity(1)\\n\\t-&gt;setTaxPercentage(2100)\\n\\t-&gt;setImageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n\\t-&gt;setDescription(\\&quot;Hammer\\&quot;)\\n\\t-&gt;setId(\\&quot;Item #1\\&quot;)\\n\\t-&gt;setAmountIncludingTax(20000)\\n\\t-&gt;setProductUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\n$lineItem2 = new LineItem();\\n$lineItem2\\n\\t-&gt;setQuantity(2)\\n\\t-&gt;setTaxPercentage(2100)\\n\\t-&gt;setImageUrl(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;)\\n\\t-&gt;setDescription(\\&quot;Nails\\&quot;)\\n\\t-&gt;setId(\\&quot;Item #2\\&quot;)\\n\\t-&gt;setAmountIncludingTax(15000)\\n\\t-&gt;setProductUrl(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;);\\n\\n$name = new Name();\\n$name\\n\\t-&gt;setFirstName(\\&quot;Testperson-de\\&quot;)\\n\\t-&gt;setLastName(\\&quot;Approved\\&quot;);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n\\t-&gt;setSubtype(\\&quot;sdk\\&quot;)\\n\\t-&gt;setType(\\&quot;klarna_b2b\\&quot;);\\n\\n$company = new Company();\\n$company\\n\\t-&gt;setRegistrationNumber(\\&quot;HRB182428\\&quot;)\\n\\t-&gt;setRegistryLocation(\\&quot;DE\\&quot;)\\n\\t-&gt;setTaxId(\\&quot;DE310295470\\&quot;)\\n\\t-&gt;setName(\\&quot;Billie GmbH\\&quot;)\\n\\t-&gt;setType(\\&quot;GmbH\\&quot;)\\n\\t-&gt;setHomepage(\\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n\\t-&gt;setCountry(\\&quot;DE\\&quot;)\\n\\t-&gt;setCity(\\&quot;Berlin\\&quot;)\\n\\t-&gt;setHouseNumberOrName(\\&quot;4\\&quot;)\\n\\t-&gt;setStreet(\\&quot;Charlottenstrasse\\&quot;)\\n\\t-&gt;setPostalCode(\\&quot;10969\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n\\t-&gt;setAmount($amount)\\n\\t-&gt;setTelephoneNumber(\\&quot;+49 840 839 298\\&quot;)\\n\\t-&gt;setShopperEmail(\\&quot;youremail@email.com\\&quot;)\\n\\t-&gt;setReference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n\\t-&gt;setLineItems(array($lineItem1, $lineItem2))\\n\\t-&gt;setShopperName($name)\\n\\t-&gt;setMerchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n\\t-&gt;setCountryCode(\\&quot;DE\\&quot;)\\n\\t-&gt;setPaymentMethod($checkoutPaymentMethod)\\n\\t-&gt;setCompany($company)\\n\\t-&gt;setShopperLocale(\\&quot;de_DE\\&quot;)\\n\\t-&gt;setBillingAddress($billingAddress)\\n\\t-&gt;setReturnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;)\\n\\t-&gt;setShopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Make 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 v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Fill in your request objects\\nAmount amount = new Amount\\n{\\n\\tCurrency = \\&quot;EUR\\&quot;,\\n\\tValue = 50000\\n};\\n\\nLineItem lineItem1 = new LineItem\\n{\\n\\tQuantity = 1,\\n\\tTaxPercentage = 2100,\\n\\tImageUrl = \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n\\tDescription = \\&quot;Hammer\\&quot;,\\n\\tId = \\&quot;Item #1\\&quot;,\\n\\tAmountIncludingTax = 20000,\\n\\tProductUrl = \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nLineItem lineItem2 = new LineItem\\n{\\n\\tQuantity = 2,\\n\\tTaxPercentage = 2100,\\n\\tImageUrl = \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n\\tDescription = \\&quot;Nails\\&quot;,\\n\\tId = \\&quot;Item #2\\&quot;,\\n\\tAmountIncludingTax = 15000,\\n\\tProductUrl = \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nName name = new Name\\n{\\n\\tFirstName = \\&quot;Testperson-de\\&quot;,\\n\\tLastName = \\&quot;Approved\\&quot;\\n};\\n\\nKlarnaDetails klarnaDetails = new KlarnaDetails\\n{\\n\\tSubtype = \\&quot;sdk\\&quot;,\\n\\tType = KlarnaDetails.TypeEnum.KlarnaB2b\\n};\\n\\nCompany company = new Company\\n{\\n\\tRegistrationNumber = \\&quot;HRB182428\\&quot;,\\n\\tRegistryLocation = \\&quot;DE\\&quot;,\\n\\tTaxId = \\&quot;DE310295470\\&quot;,\\n\\tName = \\&quot;Billie GmbH\\&quot;,\\n\\tType = \\&quot;GmbH\\&quot;,\\n\\tHomepage = \\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n\\tCountry = \\&quot;DE\\&quot;,\\n\\tCity = \\&quot;Berlin\\&quot;,\\n\\tHouseNumberOrName = \\&quot;4\\&quot;,\\n\\tStreet = \\&quot;Charlottenstrasse\\&quot;,\\n\\tPostalCode = \\&quot;10969\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n\\tAmount = amount,\\n\\tTelephoneNumber = \\&quot;+49 840 839 298\\&quot;,\\n\\tShopperEmail = \\&quot;youremail@email.com\\&quot;,\\n\\tReference = \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n\\tLineItems = new List&lt;LineItem&gt;{ lineItem1, lineItem2 },\\n\\tShopperName = name,\\n\\tMerchantAccount = \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n\\tCountryCode = \\&quot;DE\\&quot;,\\n\\tPaymentMethod = new CheckoutPaymentMethod(klarnaDetails),\\n\\tCompany = company,\\n\\tShopperLocale = \\&quot;de_DE\\&quot;,\\n\\tBillingAddress = billingAddress,\\n\\tReturnUrl = \\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n\\tShopperReference = \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Make 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 v16.1.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;YOUR_X_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  paymentMethod: {\\n    type: \\&quot;klarna_b2b\\&quot;,\\n  },\\n  amount: {\\n    currency: \\&quot;EUR\\&quot;,\\n    value: 50000\\n  },\\n  shopperLocale: \\&quot;de_DE\\&quot;,\\n  countryCode: \\&quot;DE\\&quot;,\\n  telephoneNumber: \\&quot;+49 840 839 298\\&quot;,\\n  shopperEmail: \\&quot;youremail@email.com\\&quot;,\\n  shopperName: {\\n    firstName: \\&quot;Testperson-de\\&quot;,\\n    lastName: \\&quot;Approved\\&quot;\\n  },\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  billingAddress: {\\n    city: \\&quot;Berlin\\&quot;,\\n    country: \\&quot;DE\\&quot;,\\n    houseNumberOrName: \\&quot;4\\&quot;,\\n    postalCode: \\&quot;10969\\&quot;,\\n    street: \\&quot;Charlottenstrasse\\&quot;\\n  },\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n  company: {\\n    homepage: \\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;,\\n    name: \\&quot;Billie GmbH\\&quot;,\\n    registrationNumber: \\&quot;HRB182428\\&quot;,\\n    registryLocation: \\&quot;DE\\&quot;,\\n    taxId: \\&quot;DE310295470\\&quot;,\\n    type: \\&quot;GmbH\\&quot;\\n  },\\n  lineItems: [ {\\n    quantity: \\&quot;1\\&quot;,\\n    taxPercentage: \\&quot;2100\\&quot;,\\n    description: \\&quot;Hammer\\&quot;,\\n    id: \\&quot;Item #1\\&quot;,\\n    amountIncludingTax: \\&quot;20000\\&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;Nails\\&quot;,\\n    id: \\&quot;Item #2\\&quot;,\\n    amountIncludingTax: \\&quot;15000\\&quot;,\\n    productUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;,\\n    imageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;\\n  } ]\\n}\\n\\n\\\/\\\/ Make 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 v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/checkout\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Fill in your request objects\\namount := checkout.Amount{\\n\\tCurrency: \\&quot;EUR\\&quot;,\\n\\tValue: 50000,\\n}\\n\\nlineItem1 := checkout.LineItem{\\n\\tQuantity: common.PtrInt64(1),\\n\\tTaxPercentage: common.PtrInt64(2100),\\n\\tImageUrl: common.PtrString(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;),\\n\\tDescription: common.PtrString(\\&quot;Hammer\\&quot;),\\n\\tId: common.PtrString(\\&quot;Item #1\\&quot;),\\n\\tAmountIncludingTax: common.PtrInt64(20000),\\n\\tProductUrl: common.PtrString(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;),\\n}\\n\\nlineItem2 := checkout.LineItem{\\n\\tQuantity: common.PtrInt64(2),\\n\\tTaxPercentage: common.PtrInt64(2100),\\n\\tImageUrl: common.PtrString(\\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;),\\n\\tDescription: common.PtrString(\\&quot;Nails\\&quot;),\\n\\tId: common.PtrString(\\&quot;Item #2\\&quot;),\\n\\tAmountIncludingTax: common.PtrInt64(15000),\\n\\tProductUrl: common.PtrString(\\&quot;URL_TO_PURCHASED_ITEM\\&quot;),\\n}\\n\\nname := checkout.Name{\\n\\tFirstName: \\&quot;Testperson-de\\&quot;,\\n\\tLastName: \\&quot;Approved\\&quot;,\\n}\\n\\nklarnaDetails := checkout.KlarnaDetails{\\n\\tSubtype: common.PtrString(\\&quot;sdk\\&quot;),\\n\\tType: \\&quot;klarna_b2b\\&quot;,\\n}\\n\\ncompany := checkout.Company{\\n\\tRegistrationNumber: common.PtrString(\\&quot;HRB182428\\&quot;),\\n\\tRegistryLocation: common.PtrString(\\&quot;DE\\&quot;),\\n\\tTaxId: common.PtrString(\\&quot;DE310295470\\&quot;),\\n\\tName: common.PtrString(\\&quot;Billie GmbH\\&quot;),\\n\\tType: common.PtrString(\\&quot;GmbH\\&quot;),\\n\\tHomepage: common.PtrString(\\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;),\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n\\tCountry: \\&quot;DE\\&quot;,\\n\\tCity: \\&quot;Berlin\\&quot;,\\n\\tHouseNumberOrName: \\&quot;4\\&quot;,\\n\\tStreet: \\&quot;Charlottenstrasse\\&quot;,\\n\\tPostalCode: \\&quot;10969\\&quot;,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n\\tAmount: amount,\\n\\tTelephoneNumber: common.PtrString(\\&quot;+49 840 839 298\\&quot;),\\n\\tShopperEmail: common.PtrString(\\&quot;youremail@email.com\\&quot;),\\n\\tReference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n\\tLineItems: []checkout.LineItem{\\n\\t\\t\\tlineItem1, lineItem2,\\n\\t},\\n\\tShopperName: &amp;name,\\n\\tMerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n\\tCountryCode: common.PtrString(\\&quot;DE\\&quot;),\\n\\tPaymentMethod: checkout.KlarnaDetailsAsCheckoutPaymentMethod(&amp;klarnaDetails),\\n\\tCompany: &amp;company,\\n\\tShopperLocale: common.PtrString(\\&quot;de_DE\\&quot;),\\n\\tBillingAddress: &amp;billingAddress,\\n\\tReturnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n\\tShopperReference: common.PtrString(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;),\\n}\\n\\n\\\/\\\/ Make 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.0.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\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_b2b\\&quot;,\\n  },\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;: 50000\\n  },\\n  \\&quot;shopperLocale\\&quot;: \\&quot;de_DE\\&quot;,\\n  \\&quot;countryCode\\&quot;: \\&quot;DE\\&quot;,\\n  \\&quot;telephoneNumber\\&quot;: \\&quot;+49 840 839 298\\&quot;,\\n  \\&quot;shopperEmail\\&quot;: \\&quot;youremail@email.com\\&quot;,\\n  \\&quot;shopperName\\&quot;: {\\n    \\&quot;firstName\\&quot;: \\&quot;Testperson-de\\&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;Berlin\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;DE\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;4\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;10969\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Charlottenstrasse\\&quot;\\n  },\\n  \\&quot;returnUrl\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n  \\&quot;company\\&quot;: {\\n    \\&quot;homepage\\&quot;: \\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;,\\n    \\&quot;name\\&quot;: \\&quot;Billie GmbH\\&quot;,\\n    \\&quot;registrationNumber\\&quot;: \\&quot;HRB182428\\&quot;,\\n    \\&quot;registryLocation\\&quot;: \\&quot;DE\\&quot;,\\n    \\&quot;taxId\\&quot;: \\&quot;DE310295470\\&quot;,\\n    \\&quot;type\\&quot;: \\&quot;GmbH\\&quot;\\n  },\\n  \\&quot;lineItems\\&quot;: [ {\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;taxPercentage\\&quot;: \\&quot;2100\\&quot;,\\n    \\&quot;description\\&quot;: \\&quot;Hammer\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #1\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;20000\\&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;Nails\\&quot;,\\n    \\&quot;id\\&quot;: \\&quot;Item #2\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;15000\\&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\\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.1.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nrequest_body = {\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_REFERENCE',\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'klarna_b2b',\\n  },\\n  :amount =&gt; {\\n    :currency =&gt; 'EUR',\\n    :value =&gt; 50000\\n  },\\n  :shopperLocale =&gt; 'de_DE',\\n  :countryCode =&gt; 'DE',\\n  :telephoneNumber =&gt; '+49 840 839 298',\\n  :shopperEmail =&gt; 'youremail@email.com',\\n  :shopperName =&gt; {\\n    :firstName =&gt; 'Testperson-de',\\n    :lastName =&gt; 'Approved'\\n  },\\n  :shopperReference =&gt; 'YOUR_UNIQUE_SHOPPER_ID',\\n  :billingAddress =&gt; {\\n    :city =&gt; 'Berlin',\\n    :country =&gt; 'DE',\\n    :houseNumberOrName =&gt; '4',\\n    :postalCode =&gt; '10969',\\n    :street =&gt; 'Charlottenstrasse'\\n  },\\n  :returnUrl =&gt; 'https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..',\\n  :company =&gt; {\\n    :homepage =&gt; 'https:\\\/\\\/www.billie.io\\\/',\\n    :name =&gt; 'Billie GmbH',\\n    :registrationNumber =&gt; 'HRB182428',\\n    :registryLocation =&gt; 'DE',\\n    :taxId =&gt; 'DE310295470',\\n    :type =&gt; 'GmbH'\\n  },\\n  :lineItems =&gt; [ {\\n    :quantity =&gt; '1',\\n    :taxPercentage =&gt; '2100',\\n    :description =&gt; 'Hammer',\\n    :id =&gt; 'Item #1',\\n    :amountIncludingTax =&gt; '20000',\\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; 'Nails',\\n    :id =&gt; 'Item #2',\\n    :amountIncludingTax =&gt; '15000',\\n    :productUrl =&gt; 'URL_TO_PURCHASED_ITEM',\\n    :imageUrl =&gt; 'URL_TO_PICTURE_OF_PURCHASED_ITEM'\\n  } ]\\n}\\n\\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 v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request objects\\nconst amount: Types.checkout.Amount = {\\n\\tcurrency: \\&quot;EUR\\&quot;,\\n\\tvalue: 50000\\n};\\n\\nconst lineItem1: Types.checkout.LineItem = {\\n\\tquantity: 1,\\n\\ttaxPercentage: 2100,\\n\\timageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n\\tdescription: \\&quot;Hammer\\&quot;,\\n\\tid: \\&quot;Item #1\\&quot;,\\n\\tamountIncludingTax: 20000,\\n\\tproductUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nconst lineItem2: Types.checkout.LineItem = {\\n\\tquantity: 2,\\n\\ttaxPercentage: 2100,\\n\\timageUrl: \\&quot;URL_TO_PICTURE_OF_PURCHASED_ITEM\\&quot;,\\n\\tdescription: \\&quot;Nails\\&quot;,\\n\\tid: \\&quot;Item #2\\&quot;,\\n\\tamountIncludingTax: 15000,\\n\\tproductUrl: \\&quot;URL_TO_PURCHASED_ITEM\\&quot;\\n};\\n\\nconst name: Types.checkout.Name = {\\n\\tfirstName: \\&quot;Testperson-de\\&quot;,\\n\\tlastName: \\&quot;Approved\\&quot;\\n};\\n\\nconst klarnaDetails: Types.checkout.KlarnaDetails = {\\n\\tsubtype: \\&quot;sdk\\&quot;,\\n\\ttype: Types.checkout.KlarnaDetails.TypeEnum.KlarnaB2b\\n};\\n\\nconst company: Types.checkout.Company = {\\n\\tregistrationNumber: \\&quot;HRB182428\\&quot;,\\n\\tregistryLocation: \\&quot;DE\\&quot;,\\n\\ttaxId: \\&quot;DE310295470\\&quot;,\\n\\tname: \\&quot;Billie GmbH\\&quot;,\\n\\ttype: \\&quot;GmbH\\&quot;,\\n\\thomepage: \\&quot;https:\\\/\\\/www.billie.io\\\/\\&quot;\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n\\tcountry: \\&quot;DE\\&quot;,\\n\\tcity: \\&quot;Berlin\\&quot;,\\n\\thouseNumberOrName: \\&quot;4\\&quot;,\\n\\tstreet: \\&quot;Charlottenstrasse\\&quot;,\\n\\tpostalCode: \\&quot;10969\\&quot;\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n\\tamount: amount,\\n\\ttelephoneNumber: \\&quot;+49 840 839 298\\&quot;,\\n\\tshopperEmail: \\&quot;youremail@email.com\\&quot;,\\n\\treference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n\\tlineItems: [lineItem1, lineItem2],\\n\\tshopperName: name,\\n\\tmerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n\\tcountryCode: \\&quot;DE\\&quot;,\\n\\tpaymentMethod: klarnaDetails,\\n\\tcompany: company,\\n\\tshopperLocale: \\&quot;de_DE\\&quot;,\\n\\tbillingAddress: billingAddress,\\n\\treturnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/?shopperOrder=12xy..\\&quot;,\\n\\tshopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Make 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<div class=\"notices green\">\n<p>If you use the <a href=\"#widget\">inline widget<\/a>, additionally include <code>paymentMethod.subtype<\/code>: <span translate=\"no\"><strong>sdk<\/strong><\/span>.<\/p>\n<\/div>\n<p>The response to 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 depends on which payment flow you are using:<\/p>\n<ul>\n<li><a href=\"#redirect\">Redirect<\/a><\/li>\n<li><a href=\"#widget\">Inline widget<\/a><\/li>\n<\/ul>\n<h3 id=\"redirect\">Redirect to Billie<\/h3>\n<p>If you use the default redirect flow, the shopper is redirected to Klarna to complete the payment. The response contains an <code>action<\/code> object with the information you need to redirect the shopper:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Sample Billie response (redirect)'\" :id=\"'billie-payments-response'\" :code-data='[{\"language\":\"bash\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"additionalData\\\": {\\n        \\\"pspref\\\": \\\"TXDMTP4PCTGLNK82\\\",\\n        \\\"klarnapayments.session_id\\\": \\\"85b820c2-9048...\\\",\\n        \\\"klarnapayments.client_token\\\": \\\"eyJhbGciOiJSUz...\\\"\\n    },\\n    \\\"pspReference\\\": \\\"TXDMTP4PCTGLNK82\\\",\\n    \\\"resultCode\\\": \\\"RedirectShopper\\\",\\n    \\\"action\\\": {\\n        \\\"paymentMethodType\\\": \\\"klarna_b2b\\\",\\n        \\\"url\\\": \\\"https:\\\/\\\/checkoutshopper-test.adyen.com...\\\",\\n        \\\"method\\\": \\\"GET\\\",\\n        \\\"type\\\": \\\"redirect\\\"\\n    }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3 id=\"widget\">Inline widget<\/h3>\n<p>To use the inline widget, your <code>\/payments<\/code> request must include <code>paymentMethod.subtype<\/code>: <span translate=\"no\"><strong>sdk<\/strong><\/span>.<\/p>\n<p>The shopper completes the payment in your checkout. The <code>\/payments<\/code> response contains:<\/p>\n<ul>\n<li><code>resultCode<\/code>: <span translate=\"no\"><strong>Pending<\/strong><\/span><\/li>\n<li><code>paymentData<\/code>: A value that you need to submit to 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>  endpoint later.<\/li>\n<li><code>redirect<\/code>: Object containing a client token.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Sample Billie response (widget)'\" :id=\"'billie-payments-response-widget'\" :code-data='[{\"language\":\"bash\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"resultCode\\\":\\\"Pending\\\",\\n   \\\"details\\\":[\\n      {\\n         \\\"key\\\":\\\"token\\\",\\n         \\\"type\\\":\\\"text\\\"\\n      }\\n   ],\\n   \\\"paymentData\\\":\\\"abcxyz...\\\",\\n   \\\"redirect\\\":{\\n      \\\"data\\\":{\\n         \\\"klarnapayments.client_token\\\":\\\"eyJhbGciOiJu ...\\\"\\n      }\\n   }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Test and go live<\/h2>\n<p>Test Billie in your Customer Area with the Billie sandbox.<\/p>\n<h2>How do you want to integrate?<\/h2>\n<div class=\"next-steps\" id=\"next-steps\" >\n<a href=\"\/payment-methods\/klarna\/web\" class=\"next-steps__step\" style=\"width:45%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><p><img style=\"width: 40px;\" alt=\"This is the web icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/web\/web.svg?decoding=auto&amp;fetchpriority=auto\"><\/p><h6 class=\"next-steps__title\">Web<\/h6><p>Use our pre-built UI solutions to add Billie to your website.<\/p><\/div><\/p><\/a><a href=\"\/payment-methods\/klarna\/ios\" class=\"next-steps__step\" style=\"width:45%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><p><img style=\"width: 38px;\" alt=\"This is the iOS icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/ios\/ios.svg?decoding=auto&amp;fetchpriority=auto\"><\/p><h6 class=\"next-steps__title\">iOS<\/h6><p>Use our pre-built UI solutions to add Billie to your iOS app.<\/p><\/div><\/p><\/a><a href=\"\/payment-methods\/klarna\/android\" class=\"next-steps__step\" style=\"width:45%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><p><img style=\"width: 35px;\" alt=\"This is the Android icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/android\/android.svg?decoding=auto&amp;fetchpriority=auto\"><\/p><h6 class=\"next-steps__title\">Android<\/h6><p>Use our pre-built UI solutions to add Billie to your Android app.<\/p><\/div><\/p><\/a><a href=\"\/payment-methods\/klarna\/api-only\" class=\"next-steps__step\" style=\"width:45%;\" target=\"_self\"><p class=\"next-steps__body\"><div style=\"text-align: center;\"><p><img style=\"width: 38px;\" alt=\"This is the API only icon.\" src=\"\/user\/pages\/reuse\/image-library\/01.icons\/api-only\/checkout-api-only.svg?decoding=auto&amp;fetchpriority=auto\"><\/p><h6 class=\"next-steps__title\">API-only<\/h6><p>Use our pre-built UI solutions to add Billie to your API-only integration.<\/p><\/div><\/p><\/a><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna\/billie","articleFields":{"description":"Accept Billie payments through a connection with Klarna.","parameters":{"payment_method":"Billie"},"type":"page","feedback_component":true,"payment_method":{"info":{"name":"Billie","type":"Buy Now Pay Later","payment_flow":"Redirect, Inline widget","supported_integrations":{"api-only":{"supported":true},"web-drop-in":{"supported":true},"web-component":{"supported":true},"ios-drop-in":{"supported":true},"ios-component":{"supported":true},"android-drop-in":{"supported":true},"android-component":{"supported":true},"react-native-drop-in":{"supported":true},"react-native-component":{"supported":true}},"tx_variant":["klarna_b2b"]},"features":{"recurring":false,"refunds":true,"partial_refunds":true,"multiple_partial_refunds":true,"chargebacks":true,"separate_captures":true,"partial_captures":true,"multiple_partial_captures":true},"features_note":{"recurring":null,"chargebacks":null},"countries":["AT","DE","GB","FR","NL","NO","SE"],"processing_currencies":["EUR","GBP","NOK","SEK"],"processing_settlement":["EUR","GBP","NOK","SEK"]},"display_in_overview":true,"page_id":"7d7d73a7-d3a5-4a0b-b4a7-38a6a559a5fd","filters_component":false,"decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/klarna\/billie","title":"Billie via Klarna","content":"\n&nbsp;&nbsp;Read moreRead more about Billie on their website.\n\nBillie is a Berlin-based Buy Now Pay Later (BNPL) provider that specializes in providing open invoice and deferred payment options to Business-to-Business (B2B) customers. With Billie, merchants can accept invoice payments that are immediately settled in full.\nAdyen offers Billie through a Klarna integration.\n\n    \n        \n                            \n                                            Payment type\n                                    \n                            \n                                            Payment flow\n                                    \n                            \n                                            Countries\n                                    \n                            \n                                            Currencies\n                                    \n                            \n                                            Recurring\n                                    \n                            \n                                            Refunds\n                                    \n                            \n                                            Partial refunds\n                                    \n                            \n                                            Multiple partial refunds\n                                    \n                            \n                                            Separate captures\n                                    \n                            \n                                            Partial captures\n                                    \n                            \n                                            Multiple partial captures\n                                    \n                            \n                                            Chargebacks\n                                    \n                    \n    \n    \n        \n                                               \n                     Buy Now Pay Later\n                                        \n                                                               \n                     Redirect, Inline widget\n                                        \n                                                               \n                     International\n                                        \n                                                               \n                     EUR, GBP, NOK, SEK\n                                        \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                                                \n                        \n                                            \n                                    \n    \n\n\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built your Klarna integration for the intended platform (Web, iOS, Android, React) and integration (API-only, Drop-in, Components).  \n\n\nSetup steps\nBefore you begin, add Billie in your test Customer Area.\n\n\n\nRequired fields\nBillie is an extension to a Klarna integration. Wherever you must specify paymentMethod.type, use klarna_b2b to process a Billie payment.\nBillie requires that your payment request includes the  shopperName object and the  company object, which contains details about the company you are invoicing:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\ncompany.name\n\nThe company name.\n\n\ncompany.homepage\n\nThe company website's home page.\n\n\ncompany.registrationNumber\n\nThe company's registration number. Required for all countries except DE and AT.\n\n\ncompany.registryLocation\n\nThe country code where the company is located. Format: the two-letter ISO-3166-1 alpha-2 country code. Exception: QZ (Kosovo).\n\n\ncompany.taxId\n\nThe company's tax ID.\n\n\ncompany.type\n\nThe company's type.For example, GmbH or AB.\n\n\n\nPayment request and response\nThe following is a sample  \/payments request for Billie. Note the required paymentMethod and company objects:\n\n    \n\n\nIf you use the inline widget, additionally include paymentMethod.subtype: sdk.\n\nThe response to your  \/payments request depends on which payment flow you are using:\n\nRedirect\nInline widget\n\nRedirect to Billie\nIf you use the default redirect flow, the shopper is redirected to Klarna to complete the payment. The response contains an action object with the information you need to redirect the shopper:\n\n    \n\nInline widget\nTo use the inline widget, your \/payments request must include paymentMethod.subtype: sdk.\nThe shopper completes the payment in your checkout. The \/payments response contains:\n\nresultCode: Pending\npaymentData: A value that you need to submit to the  \/payments\/details  endpoint later.\nredirect: Object containing a client token.\n\n\n    \n\nTest and go live\nTest Billie in your Customer Area with the Billie sandbox.\nHow do you want to integrate?\n\nWebUse our pre-built UI solutions to add Billie to your website.iOSUse our pre-built UI solutions to add Billie to your iOS app.AndroidUse our pre-built UI solutions to add Billie to your Android app.API-onlyUse our pre-built UI solutions to add Billie to your API-only integration.\n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Klarna","lvl3":"Billie via Klarna"},"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\/billie"},"levels":4,"category":"Payment method","category_color":"green","tags":["Billie","Klarna"]},"articleFiles":{"billie.png":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/images\/e\/0\/a\/4\/a\/e0a4afb2ef71502c6459a845ae1d19669911867f-billie.png\" \/>","billie-payments-request.js":"<p alt=\"\">billie-payments-request.js<\/p>"}}
