{"title":"Ratepay Drop-in integration","category":"default","creationDate":1776961628,"content":"<p>Our <a href=\"\/pt\/online-payments\/drop-in-web\">Web Drop-in<\/a> renders Ratepay in your payment form, and collects the required payment information from the shopper.<\/p>\n<p>When making a Ratepay payment, you also need to:<\/p>\n<ol>\n<li>Collect shopper details, and specify these in your <a href=\"#make-a-payment\">payment request<\/a>.<\/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>Using Ratepay's device fingerprinting, <a href=\"#calculate-device-fingerprint\">calculate the shopper's device fingerprint<\/a>, and specify it in your <a href=\"#make-a-payment\">payment request<\/a>. Ratepay uses the fingerprint for risk evaluation.<\/li>\n<li><a href=\"#capture-the-payment\">Capture<\/a> the payment after the goods have been sent. This triggers the invoice to be sent to the shopper by the merchant.<\/li>\n<\/ol>\n<h2 id=\"before-you-begin\">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\/online-payments\/build-your-integration\">Web Drop-in 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 Ratepay in your test Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Import resources for v6<\/h2>\n<p>If you are using Web Drop-in v6, import the resources you need for Ratepay:<\/p>\n<pre><code class=\"language-js\">import { AdyenCheckout, RatePay} from '@adyen\/adyen-web'<\/code><\/pre>\n<h2>Show Ratepay in your payment form<\/h2>\n<p>Drop-in uses 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\">countryCode<\/a> and the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a> from 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> request to show the available payment methods to your shopper.<\/p>\n<p>To show Ratepay in your payment form, 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:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Country\/region<\/th>\n<th style=\"text-align: left;\"><code>countryCode<\/code><\/th>\n<th style=\"text-align: left;\"><code>amount.currency<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Austria<\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>AT<\/strong><\/span><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>EUR<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Germany<\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>DE<\/strong><\/span><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>EUR<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">The Netherlands <br> <strong>v3.22.1 or later<\/strong><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>NL<\/strong><\/span><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>EUR<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Switzerland<\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>CH<\/strong><\/span><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>CHF<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The response contains supported payment method types:<\/p>\n<table>\n<thead>\n<tr>\n<th>Payment Method<\/th>\n<th><code>paymentMethod.type<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ratepay Open Invoice<\/td>\n<td><span translate=\"no\"><strong>ratepay<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td>Ratepay Direct Debit <br> <strong>v5.13.0 or later<\/strong><\/td>\n<td><span translate=\"no\"><strong>ratepay_directdebit<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"configure\">Optional Drop-in configuration<\/h2>\n<p>When you <a href=\"\/pt\/online-payments\/build-your-integration\/sessions-flow?platform=Web&amp;integration=Drop-in#id1031863926\">create the instance of Drop-in<\/a>, you can add optional configuration for Ratepay.<\/p>\n<table>\n<thead>\n<tr>\n<th>Configuration<\/th>\n<th>Description<\/th>\n<th>Data type<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>icon<\/code><\/td>\n<td>The path to the icon that you show for this payment method.<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td><code>name<\/code><\/td>\n<td>The name that you show for this payment method.<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example icon and name configuration'\" :id=\"''\" :code-data='[{\"language\":\"ts\",\"tabTitle\":\"\",\"content\":\"ratepay: { \\\/\\\/ The key for Ratepay Open Invoice.\\n   icon: \\\"https:\\\/\\\/your-company.example.com\\\/ratepay-open-invoice-icon.png\\\",\\n   name: \\\"Open Invoice\\\"\\n},\\nratepay_directdebit: { \\\/\\\/ The key for Ratepay Direct Debit.\\n    icon: \\\"https:\\\/\\\/your-company.example.com\\\/ratepay-direct-debit-icon.png\\\"\\n    name: \\\"Direct Debit\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Pre-filled shopper data<\/h3>\n<p>You can add configuration with the shopper's information, so that you can pre-fill the payment form. The configuration is different for Direct Debit and Open Invoice.<\/p>\n\n<div id=\"tabqYkEW\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Direct debit&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;The &lt;code&gt;data&lt;\\\/code&gt; property includes the following information that you can pre-fill:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Property&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;th&gt;Data type&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails.name&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The registered name of the company.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails.registrationNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The official business registration number.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.firstName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s first name.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.lastName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s last name.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.dateOfBirth&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s date of birth. Format: &lt;code&gt;YYYY-MM-DD&lt;\\\/code&gt;. &lt;br&gt; For example: &lt;strong&gt;1970-07-10&lt;\\\/strong&gt; for July 10, 1970.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.shopperEmail&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shoppers&#039; email address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.telephoneNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s telephone number.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.street&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The street name for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.houseNumberOrName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The house number or name for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.postalCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal code for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.city&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The city for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.stateOrProvince&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The state, province, or region for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.country&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.street&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The street name for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.houseNumberOrName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The house number or building name for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.postalCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal code for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.city&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The city for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.stateOrProvince&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The state, province, or region for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.country&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.countryCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the address of the bank&#039;s location.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.ibanNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The &lt;a href=\\&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/International_Bank_Account_Number\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;International Bank Account Number (IBAN)&lt;\\\/a&gt; for the bank account.&lt;\\\/td&gt;\\n&lt;td&gt;Any&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.ownerName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the bank account holder.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example of pre-filled data for direct debit&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;ts\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;const preFilledData = {\\\\n  personalDetails: {\\\\n    firstName: \\\\\\&quot;John\\\\\\&quot;,\\\\n    lastName: \\\\\\&quot;Smith\\\\\\&quot;,\\\\n    dateOfBirth: \\\\\\&quot;1970-07-10\\\\\\&quot;,\\\\n    shopperEmail: \\\\\\&quot;johnsmith@example.com\\\\\\&quot;,\\\\n    telephoneNumber: \\\\\\&quot;+49123456789\\\\\\&quot;,\\\\n  },\\\\n  billingAddress: {\\\\n    street: \\\\\\&quot;Berlinerstrasse\\\\\\&quot;,\\\\n    houseNumberOrName: \\\\\\&quot;1\\\\\\&quot;,\\\\n    postalCode: \\\\\\&quot;10407\\\\\\&quot;,\\\\n    city: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    country: \\\\\\&quot;DE\\\\\\&quot;,\\\\n  },\\\\n  deliveryAddress: {\\\\n    street: \\\\\\&quot;Berlinerstrasse\\\\\\&quot;,\\\\n    houseNumberOrName: \\\\\\&quot;1\\\\\\&quot;,\\\\n    postalCode: \\\\\\&quot;10407\\\\\\&quot;,\\\\n    city: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    country: \\\\\\&quot;DE\\\\\\&quot;,\\\\n  },\\\\n  bankAccount: {\\\\n    countryCode: \\\\\\&quot;DE\\\\\\&quot;,\\\\n    ibanNumber: \\\\\\&quot;DE87123456781234567890\\\\\\&quot;,\\\\n    ownerName: \\\\\\&quot;John Smith\\\\\\&quot;\\\\n  }\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;h3&gt;Payment form fields configuration&lt;\\\/h3&gt;\\n&lt;p&gt;In the payment form, you can configure if groups of fields are visible or can be edited by the shopper.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Fields&lt;\\\/th&gt;\\n&lt;th&gt;Default value&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;hidden&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example of Ratepay Direct Debit configuration object with default visibility values&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;ts\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;ratepay_directdebit: {\\\\n  data: preFilledData,\\\\n  visibility: {\\\\n      companyDetails: \\\\\\&quot;hidden\\\\\\&quot;,\\\\n      personalDetails: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      billingAddress: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      deliveryAddress: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      bankAccount: \\\\\\&quot;editable\\\\\\&quot;\\\\n  }\\\\n};\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;direct_debit_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Open Invoice&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;The &lt;code&gt;data&lt;\\\/code&gt; property includes the following information that you can pre-fill:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Property&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;th&gt;Data type&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails.name&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The registered name of the company.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails.registrationNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The official business registration number.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.firstName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s first name.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.lastName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s last name.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.dateOfBirth&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s date of birth. Format: &lt;code&gt;YYYY-MM-DD&lt;\\\/code&gt;. &lt;br&gt; For example: &lt;strong&gt;1970-07-10&lt;\\\/strong&gt; for July 10, 1970.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.shopperEmail&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shoppers&#039; email address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails.telephoneNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s telephone number.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.street&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The street name for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.houseNumberOrName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The house number or name for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.postalCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal code for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.city&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The city for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.stateOrProvince&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The state, province, or region for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress.country&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the billing address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.street&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The street name for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.houseNumberOrName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The house number or building name for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.postalCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The postal code for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.city&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The city for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.stateOrProvince&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The state, province, or region for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress.country&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the delivery address.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.countryCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The two-character &lt;a href=\\&quot;https:\\\/\\\/www.iso.org\\\/iso-3166-country-codes.html\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;\\\/a&gt; for the address of the bank&#039;s location.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.ibanNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The &lt;a href=\\&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/International_Bank_Account_Number\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;International Bank Account Number (IBAN)&lt;\\\/a&gt; for the bank account.&lt;\\\/td&gt;\\n&lt;td&gt;Any&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount.ownerName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the bank account holder.&lt;\\\/td&gt;\\n&lt;td&gt;String&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example of pre-filled data&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;ts\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;const preFilledData = {\\\\n  companyDetails: {\\\\n    name: \\\\\\&quot;Your Company Name\\\\\\&quot;,\\\\n    registrationNumber: \\\\\\&quot;abc123_CBA321\\\\\\&quot;,\\\\n  },\\\\n  personalDetails: {\\\\n    firstName: \\\\\\&quot;John\\\\\\&quot;,\\\\n    lastName: \\\\\\&quot;Smith\\\\\\&quot;,\\\\n    dateOfBirth: \\\\\\&quot;1970-07-10\\\\\\&quot;,\\\\n    shopperEmail: \\\\\\&quot;johnsmith@example.com\\\\\\&quot;,\\\\n    telephoneNumber: \\\\\\&quot;\\\\\\&quot;,\\\\n  },\\\\n  billingAddress: {\\\\n    street: \\\\\\&quot;Berlinerstrasse\\\\\\&quot; ,\\\\n    houseNumberOrName: \\\\\\&quot;1\\\\\\&quot;,\\\\n    postalCode: \\\\\\&quot;10407\\\\\\&quot;,\\\\n    city: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    stateOrProvince: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    country: \\\\\\&quot;DE\\\\\\&quot;,\\\\n  },\\\\n  deliveryAddress: {\\\\n    street: \\\\\\&quot;Berlinerstrasse\\\\\\&quot; ,\\\\n    houseNumberOrName: \\\\\\&quot;1\\\\\\&quot;,\\\\n    postalCode: \\\\\\&quot;10407\\\\\\&quot;,\\\\n    city: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    stateOrProvince: \\\\\\&quot;Berlin\\\\\\&quot;,\\\\n    country: \\\\\\&quot;DE\\\\\\&quot;,\\\\n  },\\\\n  bankAccount: {\\\\n    countryCode: \\\\\\&quot;DE\\\\\\&quot;,\\\\n    ibanNumber: \\\\\\&quot;DE87123456781234567890\\\\\\&quot;,\\\\n    ownerName: \\\\\\&quot;John Smith\\\\\\&quot;\\\\n  }\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;h3&gt;Payment form fields configuration&lt;\\\/h3&gt;\\n&lt;p&gt;In the payment form, you can configure if groups of fields are visible or can be edited by the shopper.&lt;\\\/p&gt;\\n&lt;p&gt;Use the &lt;code&gt;visibility&lt;\\\/code&gt; property to configure groups of fields with the possible values:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;strong&gt;hidden&lt;\\\/strong&gt;: The fields do not show up in the payment form.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;readOnly&lt;\\\/strong&gt;: The fields show up in the payment form with the pre-filled values. The shopper cannot change the values.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;: The fields show up in the payment form with the pre-filled values. The shopper can change the values.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Fields&lt;\\\/th&gt;\\n&lt;th&gt;Default value&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;companyDetails&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;hidden&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;personalDetails&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;billingAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;deliveryAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;editable&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bankAccount&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;strong&gt;hidden&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example of Ratepay configuration object with default visibility values&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;ts\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;ratepay: {\\\\n  data: preFilledData,\\\\n  visibility: {\\\\n      companyDetails: \\\\\\&quot;hidden\\\\\\&quot;,\\\\n      personalDetails: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      billingAddress: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      deliveryAddress: \\\\\\&quot;editable\\\\\\&quot;,\\\\n      bankAccount: \\\\\\&quot;hidden\\\\\\&quot;\\\\n  }\\\\n};\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;open_invoice_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"calculate-device-fingerprint\">Calculate the device fingerprint<\/h2>\n<p>Before making a payment you need to implement <a href=\"https:\/\/docs.ratepay.com\/docs\/developer\/device_fingerprinting\/device_fingerprinting\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Ratepay's device fingerprinting<\/a>. Send the calculated device fingerprint when making 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.<\/p>\n<h2 id=\"make-a-payment\">Make a payment<\/h2>\n<p>When the shopper selects to pay, Drop-in calls the <code>onSubmit<\/code> event, which contains a <code>state.data<\/code>.<\/p>\n<ol>\n<li>Pass the <code>state.data<\/code> to your server.<\/li>\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 with the following data:<\/p>\n\n<div id=\"tabUKBX5\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Open Invoice&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;paymentMethod.type&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Set to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;ratepay&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperName.firstName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s first name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperName.lastName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s last name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;telephoneNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s telephone number.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperEmail&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s email address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;dateOfBirth&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s date of birth. Format &lt;a href=\\&quot;https:\\\/\\\/www.w3.org\\\/TR\\\/NOTE-datetime\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO-8601&lt;\\\/a&gt;: YYYY-MM-DD&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;billingAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The address where to send the invoice.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;deviceFingerprint&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;A string containing the shopper&#039;s &lt;a href=\\&quot;#calculate-device-fingerprint\\&quot;&gt;device fingerprint&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;deliveryAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-x-\\&quot; alt=\\&quot;-x-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/x.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Only required if the delivery address is not the same as the billing address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;lineItems&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Price and product information about the purchased items. This is included on the invoice that Ratepay sends to the shopper.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;&#039;\\&quot; :id=\\&quot;&#039;payments&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v68\\\\\\\/payments \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n    \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n        \\\\&amp;quot;value\\\\&amp;quot;: \\\\&amp;quot;1000\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;deviceFingerprint\\\\&amp;quot;: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n    \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n    \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n    \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n    \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n        \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n    \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n        \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n        \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;1011 DJ\\\\&amp;quot;,\\\\n        \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;lineItems\\\\&amp;quot;: [\\\\n        {\\\\n            \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n            \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n            \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n        },\\\\n        {\\\\n            \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n            \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n            \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n        }\\\\n    ]\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v27.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount()\\\\n  .currency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  .value(1000L);\\\\n\\\\nLineItem lineItem1 = new LineItem()\\\\n  .quantity(1L)\\\\n  .amountExcludingTax(331L)\\\\n  .taxPercentage(2100L)\\\\n  .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  .taxAmount(69L)\\\\n  .amountIncludingTax(400L);\\\\n\\\\nLineItem lineItem2 = new LineItem()\\\\n  .quantity(2L)\\\\n  .amountExcludingTax(248L)\\\\n  .taxPercentage(2100L)\\\\n  .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  .taxAmount(52L)\\\\n  .amountIncludingTax(300L);\\\\n\\\\nName name = new Name()\\\\n  .firstName(\\\\&amp;quot;Simon\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\nRatepayDetails ratepayDetails = new RatepayDetails()\\\\n  .type(RatepayDetails.TypeEnum.RATEPAY);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Amsterdam\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;6-50\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;1011 DJ\\\\&amp;quot;);\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;+31858888138\\\\&amp;quot;)\\\\n  .deviceFingerprint(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;)\\\\n  .dateOfBirth(OffsetDateTime.parse(\\\\&amp;quot;1970-07-10\\\\&amp;quot;))\\\\n  .shopperEmail(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;)\\\\n  .reference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\\\n  .shopperName(name)\\\\n  .merchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .countryCode(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  .paymentMethod(new CheckoutPaymentMethod(ratepayDetails))\\\\n  .billingAddress(billingAddress)\\\\n  .shopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v19.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Amount;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\LineItem;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Name;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\CheckoutPaymentMethod;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\BillingAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$amount = new Amount();\\\\n$amount\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(1000);\\\\n\\\\n$lineItem1 = new LineItem();\\\\n$lineItem1\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setAmountExcludingTax(331)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  -&amp;gt;setTaxAmount(69)\\\\n  -&amp;gt;setAmountIncludingTax(400);\\\\n\\\\n$lineItem2 = new LineItem();\\\\n$lineItem2\\\\n  -&amp;gt;setQuantity(2)\\\\n  -&amp;gt;setAmountExcludingTax(248)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  -&amp;gt;setTaxAmount(52)\\\\n  -&amp;gt;setAmountIncludingTax(300);\\\\n\\\\n$name = new Name();\\\\n$name\\\\n  -&amp;gt;setFirstName(\\\\&amp;quot;Simon\\\\&amp;quot;)\\\\n  -&amp;gt;setLastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\\\n$checkoutPaymentMethod\\\\n  -&amp;gt;setType(\\\\&amp;quot;ratepay\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Amsterdam\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;6-50\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;1011 DJ\\\\&amp;quot;);\\\\n\\\\n$paymentRequest = new PaymentRequest();\\\\n$paymentRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;+31858888138\\\\&amp;quot;)\\\\n  -&amp;gt;setDeviceFingerprint(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;)\\\\n  -&amp;gt;setDateOfBirth(\\\\&amp;quot;1970-07-10\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;)\\\\n  -&amp;gt;setReference(\\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;)\\\\n  -&amp;gt;setLineItems(array($lineItem1, $lineItem2))\\\\n  -&amp;gt;setShopperName($name)\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setCountryCode(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  -&amp;gt;setPaymentMethod($checkoutPaymentMethod)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;payments($paymentRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v17.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount\\\\n{\\\\n  Currency = \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Value = 1000\\\\n};\\\\n\\\\nLineItem lineItem1 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  AmountExcludingTax = 331,\\\\n  TaxPercentage = 2100,\\\\n  Description = \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  TaxAmount = 69,\\\\n  AmountIncludingTax = 400\\\\n};\\\\n\\\\nLineItem lineItem2 = new LineItem\\\\n{\\\\n  Quantity = 2,\\\\n  AmountExcludingTax = 248,\\\\n  TaxPercentage = 2100,\\\\n  Description = \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  TaxAmount = 52,\\\\n  AmountIncludingTax = 300\\\\n};\\\\n\\\\nName name = new Name\\\\n{\\\\n  FirstName = \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nRatepayDetails ratepayDetails = new RatepayDetails\\\\n{\\\\n  Type = RatepayDetails.TypeEnum.Ratepay\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;1011 DJ\\\\&amp;quot;\\\\n};\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  DeviceFingerprint = \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  DateOfBirth = DateTime.Parse(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  ShopperEmail = \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  Reference = \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems = new List&amp;lt;LineItem&amp;gt;{ lineItem1, lineItem2 },\\\\n  ShopperName = name,\\\\n  MerchantAccount = \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  CountryCode = \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  PaymentMethod = new CheckoutPaymentMethod(ratepayDetails),\\\\n  BillingAddress = billingAddress,\\\\n  ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentRequest = {\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  paymentMethod: {\\\\n    type: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n  },\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n    value: \\\\&amp;quot;1000\\\\&amp;quot;\\\\n  },\\\\n  deviceFingerprint: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  dateOfBirth: new Date(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  telephoneNumber: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;1011 DJ\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;\\\\n  },\\\\n  lineItems: [ {\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    taxAmount: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  }, {\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    taxAmount: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v10.4.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;time\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\namount := checkout.Amount{\\\\n  Currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Value: 1000,\\\\n}\\\\n\\\\nlineItem1 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  AmountExcludingTax: common.PtrInt64(331),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  Description: common.PtrString(\\\\&amp;quot;Shoes\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #1\\\\&amp;quot;),\\\\n  TaxAmount: common.PtrInt64(69),\\\\n  AmountIncludingTax: common.PtrInt64(400),\\\\n}\\\\n\\\\nlineItem2 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(2),\\\\n  AmountExcludingTax: common.PtrInt64(248),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  Description: common.PtrString(\\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #2\\\\&amp;quot;),\\\\n  TaxAmount: common.PtrInt64(52),\\\\n  AmountIncludingTax: common.PtrInt64(300),\\\\n}\\\\n\\\\nname := checkout.Name{\\\\n  FirstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;Hopper\\\\&amp;quot;,\\\\n}\\\\n\\\\nratepayDetails := checkout.RatepayDetails{\\\\n  Type: \\\\&amp;quot;ratepay\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;1011 DJ\\\\&amp;quot;,\\\\n}\\\\n\\\\npaymentRequest := checkout.PaymentRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;+31858888138\\\\&amp;quot;),\\\\n  DeviceFingerprint: common.PtrString(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;),\\\\n  DateOfBirth:  func() *time.Time { t, _ := time.Parse(time.RFC3339, \\\\&amp;quot;1970-07-10\\\\&amp;quot;); return &amp;amp;t }(),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;),\\\\n  Reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  LineItems: []checkout.LineItem{\\\\n      lineItem1, lineItem2,\\\\n  },\\\\n  ShopperName: &amp;amp;name,\\\\n  MerchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  CountryCode: common.PtrString(\\\\&amp;quot;NL\\\\&amp;quot;),\\\\n  PaymentMethod: checkout.RatepayDetailsAsCheckoutPaymentMethod(&amp;amp;ratepayDetails),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ShopperReference: common.PtrString(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).PaymentRequest(paymentRequest)\\\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.5.1\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: \\\\&amp;quot;1000\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deviceFingerprint\\\\&amp;quot;: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;1011 DJ\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.5.1\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :merchantAccount =&amp;gt; &#039;ADYEN_MERCHANT_ACCOUNT&#039;,\\\\n  :reference =&amp;gt; &#039;YOUR_ORDER_REFERENCE&#039;,\\\\n  :paymentMethod =&amp;gt; {\\\\n    :type =&amp;gt; &#039;ratepay&#039;\\\\n  },\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;EUR&#039;,\\\\n    :value =&amp;gt; &#039;1000&#039;\\\\n  },\\\\n  :deviceFingerprint =&amp;gt; &#039;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...&#039;,\\\\n  :countryCode =&amp;gt; &#039;NL&#039;,\\\\n  :dateOfBirth =&amp;gt; &#039;1970-07-10&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;+31858888138&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;s.hopper@example.com&#039;,\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Simon&#039;,\\\\n    :lastName =&amp;gt; &#039;Hopper&#039;\\\\n  },\\\\n  :shopperReference =&amp;gt; &#039;YOUR_UNIQUE_SHOPPER_ID&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Amsterdam&#039;,\\\\n    :country =&amp;gt; &#039;NL&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;6-50&#039;,\\\\n    :postalCode =&amp;gt; &#039;1011 DJ&#039;,\\\\n    :street =&amp;gt; &#039;Simon Carmiggeltstraat&#039;\\\\n  },\\\\n  :lineItems =&amp;gt; [ {\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;331&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :id =&amp;gt; &#039;Item #1&#039;,\\\\n    :taxAmount =&amp;gt; &#039;69&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;400&#039;,\\\\n    :taxCategory =&amp;gt; &#039;High&#039;\\\\n  }, {\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;248&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :id =&amp;gt; &#039;Item #2&#039;,\\\\n    :taxAmount =&amp;gt; &#039;52&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;300&#039;,\\\\n    :taxCategory =&amp;gt; &#039;High&#039;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst amount: Types.checkout.Amount = {\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  value: 1000\\\\n};\\\\n\\\\nconst lineItem1: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  amountExcludingTax: 331,\\\\n  taxPercentage: 2100,\\\\n  description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  taxAmount: 69,\\\\n  amountIncludingTax: 400\\\\n};\\\\n\\\\nconst lineItem2: Types.checkout.LineItem = {\\\\n  quantity: 2,\\\\n  amountExcludingTax: 248,\\\\n  taxPercentage: 2100,\\\\n  description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  taxAmount: 52,\\\\n  amountIncludingTax: 300\\\\n};\\\\n\\\\nconst name: Types.checkout.Name = {\\\\n  firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nconst ratepayDetails: Types.checkout.RatepayDetails = {\\\\n  type: Types.checkout.RatepayDetails.TypeEnum.Ratepay\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;6-50\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;1011 DJ\\\\&amp;quot;\\\\n};\\\\n\\\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  deviceFingerprint: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  dateOfBirth: new Date(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  shopperEmail: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_REFERENCE\\\\&amp;quot;,\\\\n  lineItems: [lineItem1, lineItem2],\\\\n  shopperName: name,\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  paymentMethod: ratepayDetails,\\\\n  billingAddress: billingAddress,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;open_invoice_0_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Direct Debit&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Ratepay Direct Debit is not available for shoppers in Switzerland.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Parameter&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;paymentMethod.type&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Set to &lt;span translate=\\&quot;no\\&quot;&gt;&lt;strong&gt;ratepay_directdebit&lt;\\\/strong&gt;&lt;\\\/span&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperName.firstName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s first name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperName.lastName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s last name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;telephoneNumber&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s telephone number.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;shopperEmail&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s email address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;dateOfBirth&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s date of birth. Format &lt;a href=\\&quot;https:\\\/\\\/www.w3.org\\\/TR\\\/NOTE-datetime\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO-8601&lt;\\\/a&gt;: YYYY-MM-DD.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;billingAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;The address where to send the invoice.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;deviceFingerprint&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;A string containing the shopper&#039;s &lt;a href=\\&quot;#calculate-device-fingerprint\\&quot;&gt;device fingerprint&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;deliveryAddress&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-x-\\&quot; alt=\\&quot;-x-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/x.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Only required if the delivery address is not the same as the billing address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;lineItems&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Price and product information about the purchased items. This is included on the invoice that Ratepay sends to the shopper.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;bankAccount.countryCode&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s country\\\/region. Not available for shoppers in Switzerland. Format: &lt;a href=\\&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/ISO_3166-1_alpha-2\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO 3166-1 alpha-2&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;bankAccount.iban&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Shopper&#039;s International Bank Account Number (IBAN).&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;code&gt;bankAccount.ownerName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Name of the bank account holder.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n&lt;code-sample :title=\\&quot;&#039;&#039;\\&quot; :id=\\&quot;&#039;payments-directdebit&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v68\\\\\\\/payments \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n    \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n        \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n    },\\\\n    \\\\&amp;quot;bankAccount\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n        \\\\&amp;quot;iban\\\\&amp;quot;: \\\\&amp;quot;NL87123456781234567890\\\\&amp;quot;,\\\\n        \\\\&amp;quot;ownerName\\\\&amp;quot;: \\\\&amp;quot;Simon Hopper\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;deviceFingerprint\\\\&amp;quot;: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n    \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n    \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n    \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n        \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n    \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;,\\\\n    \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n    \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n        \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;136\\\\&amp;quot;,\\\\n        \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;1011DJ\\\\&amp;quot;,\\\\n        \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;lineItems\\\\&amp;quot;: [\\\\n        {\\\\n            \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n            \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n            \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n        },\\\\n        {\\\\n            \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n            \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n            \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n            \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n            \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n        }\\\\n    ]\\\\n}&#039;&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;java&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Java&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Java API Library v27.0.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount()\\\\n  .currency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  .value(1000L);\\\\n\\\\nLineItem lineItem1 = new LineItem()\\\\n  .quantity(1L)\\\\n  .amountExcludingTax(331L)\\\\n  .taxPercentage(2100L)\\\\n  .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  .taxAmount(69L)\\\\n  .amountIncludingTax(400L);\\\\n\\\\nLineItem lineItem2 = new LineItem()\\\\n  .quantity(2L)\\\\n  .amountExcludingTax(248L)\\\\n  .taxPercentage(2100L)\\\\n  .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  .id(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  .taxAmount(52L)\\\\n  .amountIncludingTax(300L);\\\\n\\\\nName name = new Name()\\\\n  .firstName(\\\\&amp;quot;Simon\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\nRatepayDetails ratepayDetails = new RatepayDetails()\\\\n  .type(RatepayDetails.TypeEnum.RATEPAY);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Amsterdam\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;136\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;1011DJ\\\\&amp;quot;);\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;+31858888138\\\\&amp;quot;)\\\\n  .deviceFingerprint(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;)\\\\n  .shopperEmail(\\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;)\\\\n  .dateOfBirth(OffsetDateTime.parse(\\\\&amp;quot;1970-07-10\\\\&amp;quot;))\\\\n  .reference(\\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;)\\\\n  .lineItems(Arrays.asList(lineItem1, lineItem2))\\\\n  .shopperName(name)\\\\n  .merchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .countryCode(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  .paymentMethod(new CheckoutPaymentMethod(ratepayDetails))\\\\n  .billingAddress(billingAddress)\\\\n  .shopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen PHP API Library v19.0.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Amount;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\LineItem;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Name;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\CheckoutPaymentMethod;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\BillingAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\PaymentRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\n$client-&amp;gt;setEnvironment(Environment::TEST);\\\\n\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\n$amount = new Amount();\\\\n$amount\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(1000);\\\\n\\\\n$lineItem1 = new LineItem();\\\\n$lineItem1\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setAmountExcludingTax(331)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #1\\\\&amp;quot;)\\\\n  -&amp;gt;setTaxAmount(69)\\\\n  -&amp;gt;setAmountIncludingTax(400);\\\\n\\\\n$lineItem2 = new LineItem();\\\\n$lineItem2\\\\n  -&amp;gt;setQuantity(2)\\\\n  -&amp;gt;setAmountExcludingTax(248)\\\\n  -&amp;gt;setTaxPercentage(2100)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  -&amp;gt;setId(\\\\&amp;quot;Item #2\\\\&amp;quot;)\\\\n  -&amp;gt;setTaxAmount(52)\\\\n  -&amp;gt;setAmountIncludingTax(300);\\\\n\\\\n$name = new Name();\\\\n$name\\\\n  -&amp;gt;setFirstName(\\\\&amp;quot;Simon\\\\&amp;quot;)\\\\n  -&amp;gt;setLastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\\\n$checkoutPaymentMethod\\\\n  -&amp;gt;setType(\\\\&amp;quot;ratepay\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Amsterdam\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;136\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;1011DJ\\\\&amp;quot;);\\\\n\\\\n$paymentRequest = new PaymentRequest();\\\\n$paymentRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;+31858888138\\\\&amp;quot;)\\\\n  -&amp;gt;setDeviceFingerprint(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;)\\\\n  -&amp;gt;setDateOfBirth(\\\\&amp;quot;1970-07-10\\\\&amp;quot;)\\\\n  -&amp;gt;setReference(\\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;)\\\\n  -&amp;gt;setLineItems(array($lineItem1, $lineItem2))\\\\n  -&amp;gt;setShopperName($name)\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setCountryCode(\\\\&amp;quot;NL\\\\&amp;quot;)\\\\n  -&amp;gt;setPaymentMethod($checkoutPaymentMethod)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;payments($paymentRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v17.0.0\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n    Environment = Environment.Test\\\\n};\\\\nvar client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount\\\\n{\\\\n  Currency = \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Value = 1000\\\\n};\\\\n\\\\nLineItem lineItem1 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  AmountExcludingTax = 331,\\\\n  TaxPercentage = 2100,\\\\n  Description = \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  TaxAmount = 69,\\\\n  AmountIncludingTax = 400\\\\n};\\\\n\\\\nLineItem lineItem2 = new LineItem\\\\n{\\\\n  Quantity = 2,\\\\n  AmountExcludingTax = 248,\\\\n  TaxPercentage = 2100,\\\\n  Description = \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  Id = \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  TaxAmount = 52,\\\\n  AmountIncludingTax = 300\\\\n};\\\\n\\\\nName name = new Name\\\\n{\\\\n  FirstName = \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nRatepayDetails ratepayDetails = new RatepayDetails\\\\n{\\\\n  Type = RatepayDetails.TypeEnum.Ratepay\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;136\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;1011DJ\\\\&amp;quot;\\\\n};\\\\n\\\\nPaymentRequest paymentRequest = new PaymentRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  DeviceFingerprint = \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  ShopperEmail = \\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;,\\\\n  DateOfBirth = DateTime.Parse(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  Reference = \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  LineItems = new List&amp;lt;LineItem&amp;gt;{ lineItem1, lineItem2 },\\\\n  ShopperName = name,\\\\n  MerchantAccount = \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  CountryCode = \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  PaymentMethod = new CheckoutPaymentMethod(ratepayDetails),\\\\n  BillingAddress = billingAddress,\\\\n  ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst paymentRequest = {\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n    value: 1000\\\\n  },\\\\n  bankAccount: {\\\\n    countryCode: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    iban: \\\\&amp;quot;NL87123456781234567890\\\\&amp;quot;,\\\\n    ownerName: \\\\&amp;quot;Simon Hopper\\\\&amp;quot;\\\\n  },\\\\n  deviceFingerprint: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  paymentMethod: {\\\\n    type: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n  },\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  telephoneNumber: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;,\\\\n  dateOfBirth: new Date(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  billingAddress: {\\\\n    street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;136\\\\&amp;quot;,\\\\n    city: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;1011DJ\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;NL\\\\&amp;quot;\\\\n  },\\\\n  lineItems: [ {\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    taxAmount: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  }, {\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n    taxPercentage: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    taxAmount: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v10.4.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;time\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v9\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nclient := adyen.NewClient(&amp;amp;common.Config{\\\\n  ApiKey:      \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  Environment: common.TestEnv,\\\\n})\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\namount := checkout.Amount{\\\\n  Currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Value: 1000,\\\\n}\\\\n\\\\nlineItem1 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  AmountExcludingTax: common.PtrInt64(331),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  Description: common.PtrString(\\\\&amp;quot;Shoes\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #1\\\\&amp;quot;),\\\\n  TaxAmount: common.PtrInt64(69),\\\\n  AmountIncludingTax: common.PtrInt64(400),\\\\n}\\\\n\\\\nlineItem2 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(2),\\\\n  AmountExcludingTax: common.PtrInt64(248),\\\\n  TaxPercentage: common.PtrInt64(2100),\\\\n  Description: common.PtrString(\\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n  Id: common.PtrString(\\\\&amp;quot;Item #2\\\\&amp;quot;),\\\\n  TaxAmount: common.PtrInt64(52),\\\\n  AmountIncludingTax: common.PtrInt64(300),\\\\n}\\\\n\\\\nname := checkout.Name{\\\\n  FirstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;Hopper\\\\&amp;quot;,\\\\n}\\\\n\\\\nratepayDetails := checkout.RatepayDetails{\\\\n  Type: \\\\&amp;quot;ratepay\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  City: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;136\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;1011DJ\\\\&amp;quot;,\\\\n}\\\\n\\\\npaymentRequest := checkout.PaymentRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;+31858888138\\\\&amp;quot;),\\\\n  DeviceFingerprint: common.PtrString(\\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;),\\\\n  DateOfBirth:  func() *time.Time { t, _ := time.Parse(time.RFC3339, \\\\&amp;quot;1970-07-10\\\\&amp;quot;); return &amp;amp;t }(),\\\\n  Reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  LineItems: []checkout.LineItem{\\\\n      lineItem1, lineItem2,\\\\n  },\\\\n  ShopperName: &amp;amp;name,\\\\n  MerchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  CountryCode: common.PtrString(\\\\&amp;quot;NL\\\\&amp;quot;),\\\\n  PaymentMethod: checkout.RatepayDetailsAsCheckoutPaymentMethod(&amp;amp;ratepayDetails),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ShopperReference: common.PtrString(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).PaymentRequest(paymentRequest)\\\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v12.5.1\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\n# Create the request object(s)\\\\njson_request = {\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 1000\\\\n  },\\\\n  \\\\&amp;quot;bankAccount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n    \\\\&amp;quot;iban\\\\&amp;quot;: \\\\&amp;quot;NL87123456781234567890\\\\&amp;quot;,\\\\n    \\\\&amp;quot;ownerName\\\\&amp;quot;: \\\\&amp;quot;Simon Hopper\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deviceFingerprint\\\\&amp;quot;: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot;: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;ratepay\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;firstName\\\\&amp;quot;: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;136\\\\&amp;quot;,\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;1011DJ\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;NL\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;331\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;69\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;400\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;248\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxPercentage\\\\&amp;quot;: \\\\&amp;quot;2100\\\\&amp;quot;,\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;id\\\\&amp;quot;: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxAmount\\\\&amp;quot;: \\\\&amp;quot;52\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;300\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;High\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v9.5.1\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;ADYEN_API_KEY&#039;\\\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\n# Create the request object(s)\\\\nrequest_body = {\\\\n  :merchantAccount =&amp;gt; &#039;ADYEN_MERCHANT_ACCOUNT&#039;,\\\\n  :countryCode =&amp;gt; &#039;NL&#039;,\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;EUR&#039;,\\\\n    :value =&amp;gt; 1000\\\\n  },\\\\n  :bankAccount =&amp;gt; {\\\\n    :countryCode =&amp;gt; &#039;NL&#039;,\\\\n    :iban =&amp;gt; &#039;NL87123456781234567890&#039;,\\\\n    :ownerName =&amp;gt; &#039;Simon Hopper&#039;\\\\n  },\\\\n  :deviceFingerprint =&amp;gt; &#039;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...&#039;,\\\\n  :shopperReference =&amp;gt; &#039;YOUR_UNIQUE_SHOPPER_ID&#039;,\\\\n  :reference =&amp;gt; &#039;YOUR_ORDER_NUMBER&#039;,\\\\n  :paymentMethod =&amp;gt; {\\\\n    :type =&amp;gt; &#039;ratepay&#039;\\\\n  },\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Simon&#039;,\\\\n    :lastName =&amp;gt; &#039;Hopper&#039;\\\\n  },\\\\n  :telephoneNumber =&amp;gt; &#039;+31858888138&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;s.shopper@example.com&#039;,\\\\n  :dateOfBirth =&amp;gt; &#039;1970-07-10&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :street =&amp;gt; &#039;Simon Carmiggeltstraat&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;136&#039;,\\\\n    :city =&amp;gt; &#039;Amsterdam&#039;,\\\\n    :postalCode =&amp;gt; &#039;1011DJ&#039;,\\\\n    :country =&amp;gt; &#039;NL&#039;\\\\n  },\\\\n  :lineItems =&amp;gt; [ {\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;331&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :id =&amp;gt; &#039;Item #1&#039;,\\\\n    :taxAmount =&amp;gt; &#039;69&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;400&#039;,\\\\n    :taxCategory =&amp;gt; &#039;High&#039;\\\\n  }, {\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;248&#039;,\\\\n    :taxPercentage =&amp;gt; &#039;2100&#039;,\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :id =&amp;gt; &#039;Item #2&#039;,\\\\n    :taxAmount =&amp;gt; &#039;52&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;300&#039;,\\\\n    :taxCategory =&amp;gt; &#039;High&#039;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v18.0.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\n\\\\\\\/\\\\\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\\\nconst client = new Client({apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst amount: Types.checkout.Amount = {\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  value: 1000\\\\n};\\\\n\\\\nconst lineItem1: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  amountExcludingTax: 331,\\\\n  taxPercentage: 2100,\\\\n  description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #1\\\\&amp;quot;,\\\\n  taxAmount: 69,\\\\n  amountIncludingTax: 400\\\\n};\\\\n\\\\nconst lineItem2: Types.checkout.LineItem = {\\\\n  quantity: 2,\\\\n  amountExcludingTax: 248,\\\\n  taxPercentage: 2100,\\\\n  description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  id: \\\\&amp;quot;Item #2\\\\&amp;quot;,\\\\n  taxAmount: 52,\\\\n  amountIncludingTax: 300\\\\n};\\\\n\\\\nconst name: Types.checkout.Name = {\\\\n  firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nconst ratepayDetails: Types.checkout.RatepayDetails = {\\\\n  type: Types.checkout.RatepayDetails.TypeEnum.Ratepay\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Amsterdam\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Simon Carmiggeltstraat\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;136\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;1011DJ\\\\&amp;quot;\\\\n};\\\\n\\\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;+31858888138\\\\&amp;quot;,\\\\n  deviceFingerprint: \\\\&amp;quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.shopper@example.com\\\\&amp;quot;,\\\\n  dateOfBirth: new Date(\\\\&amp;quot;1970-07-10\\\\&amp;quot;),\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  lineItems: [lineItem1, lineItem2],\\\\n  shopperName: name,\\\\n  merchantAccount: \\\\&amp;quot;ADYEN_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;NL\\\\&amp;quot;,\\\\n  paymentMethod: ratepayDetails,\\\\n  billingAddress: billingAddress,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:null,&quot;oldTabId&quot;:&quot;direct_debit_1_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='false'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"''\" :id=\"'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\\\/v68\\\/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;ratepay\\&quot;\\n    },\\n    \\&quot;amount\\&quot;: {\\n        \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n        \\&quot;value\\&quot;: \\&quot;1000\\&quot;\\n    },\\n    \\&quot;deviceFingerprint\\&quot;: \\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;,\\n    \\&quot;countryCode\\&quot;: \\&quot;NL\\&quot;,\\n    \\&quot;dateOfBirth\\&quot;: \\&quot;1970-07-10\\&quot;,\\n    \\&quot;telephoneNumber\\&quot;: \\&quot;+31858888138\\&quot;,\\n    \\&quot;shopperEmail\\&quot;: \\&quot;s.hopper@example.com\\&quot;,\\n    \\&quot;shopperName\\&quot;: {\\n        \\&quot;firstName\\&quot;: \\&quot;Simon\\&quot;,\\n        \\&quot;lastName\\&quot;: \\&quot;Hopper\\&quot;\\n    },\\n    \\&quot;shopperReference\\&quot;: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n    \\&quot;billingAddress\\&quot;: {\\n        \\&quot;city\\&quot;: \\&quot;Amsterdam\\&quot;,\\n        \\&quot;country\\&quot;: \\&quot;NL\\&quot;,\\n        \\&quot;houseNumberOrName\\&quot;: \\&quot;6-50\\&quot;,\\n        \\&quot;postalCode\\&quot;: \\&quot;1011 DJ\\&quot;,\\n        \\&quot;street\\&quot;: \\&quot;Simon Carmiggeltstraat\\&quot;\\n    },\\n    \\&quot;lineItems\\&quot;: [\\n        {\\n            \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n            \\&quot;amountExcludingTax\\&quot;: \\&quot;331\\&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;taxAmount\\&quot;: \\&quot;69\\&quot;,\\n            \\&quot;amountIncludingTax\\&quot;: \\&quot;400\\&quot;,\\n            \\&quot;taxCategory\\&quot;: \\&quot;High\\&quot;\\n        },\\n        {\\n            \\&quot;quantity\\&quot;: \\&quot;2\\&quot;,\\n            \\&quot;amountExcludingTax\\&quot;: \\&quot;248\\&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;taxAmount\\&quot;: \\&quot;52\\&quot;,\\n            \\&quot;amountIncludingTax\\&quot;: \\&quot;300\\&quot;,\\n            \\&quot;taxCategory\\&quot;: \\&quot;High\\&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;EUR\\&quot;)\\n  .value(1000L);\\n\\nLineItem lineItem1 = new LineItem()\\n  .quantity(1L)\\n  .amountExcludingTax(331L)\\n  .taxPercentage(2100L)\\n  .description(\\&quot;Shoes\\&quot;)\\n  .id(\\&quot;Item #1\\&quot;)\\n  .taxAmount(69L)\\n  .amountIncludingTax(400L);\\n\\nLineItem lineItem2 = new LineItem()\\n  .quantity(2L)\\n  .amountExcludingTax(248L)\\n  .taxPercentage(2100L)\\n  .description(\\&quot;Socks\\&quot;)\\n  .id(\\&quot;Item #2\\&quot;)\\n  .taxAmount(52L)\\n  .amountIncludingTax(300L);\\n\\nName name = new Name()\\n  .firstName(\\&quot;Simon\\&quot;)\\n  .lastName(\\&quot;Hopper\\&quot;);\\n\\nRatepayDetails ratepayDetails = new RatepayDetails()\\n  .type(RatepayDetails.TypeEnum.RATEPAY);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n  .country(\\&quot;NL\\&quot;)\\n  .city(\\&quot;Amsterdam\\&quot;)\\n  .houseNumberOrName(\\&quot;6-50\\&quot;)\\n  .street(\\&quot;Simon Carmiggeltstraat\\&quot;)\\n  .postalCode(\\&quot;1011 DJ\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .amount(amount)\\n  .telephoneNumber(\\&quot;+31858888138\\&quot;)\\n  .deviceFingerprint(\\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;)\\n  .dateOfBirth(OffsetDateTime.parse(\\&quot;1970-07-10\\&quot;))\\n  .shopperEmail(\\&quot;s.hopper@example.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  .countryCode(\\&quot;NL\\&quot;)\\n  .paymentMethod(new CheckoutPaymentMethod(ratepayDetails))\\n  .billingAddress(billingAddress)\\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\\\\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;EUR\\&quot;)\\n  -&gt;setValue(1000);\\n\\n$lineItem1 = new LineItem();\\n$lineItem1\\n  -&gt;setQuantity(1)\\n  -&gt;setAmountExcludingTax(331)\\n  -&gt;setTaxPercentage(2100)\\n  -&gt;setDescription(\\&quot;Shoes\\&quot;)\\n  -&gt;setId(\\&quot;Item #1\\&quot;)\\n  -&gt;setTaxAmount(69)\\n  -&gt;setAmountIncludingTax(400);\\n\\n$lineItem2 = new LineItem();\\n$lineItem2\\n  -&gt;setQuantity(2)\\n  -&gt;setAmountExcludingTax(248)\\n  -&gt;setTaxPercentage(2100)\\n  -&gt;setDescription(\\&quot;Socks\\&quot;)\\n  -&gt;setId(\\&quot;Item #2\\&quot;)\\n  -&gt;setTaxAmount(52)\\n  -&gt;setAmountIncludingTax(300);\\n\\n$name = new Name();\\n$name\\n  -&gt;setFirstName(\\&quot;Simon\\&quot;)\\n  -&gt;setLastName(\\&quot;Hopper\\&quot;);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setType(\\&quot;ratepay\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n  -&gt;setCountry(\\&quot;NL\\&quot;)\\n  -&gt;setCity(\\&quot;Amsterdam\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;6-50\\&quot;)\\n  -&gt;setStreet(\\&quot;Simon Carmiggeltstraat\\&quot;)\\n  -&gt;setPostalCode(\\&quot;1011 DJ\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setAmount($amount)\\n  -&gt;setTelephoneNumber(\\&quot;+31858888138\\&quot;)\\n  -&gt;setDeviceFingerprint(\\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;)\\n  -&gt;setDateOfBirth(\\&quot;1970-07-10\\&quot;)\\n  -&gt;setShopperEmail(\\&quot;s.hopper@example.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;setCountryCode(\\&quot;NL\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setBillingAddress($billingAddress)\\n  -&gt;setShopperReference(\\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v17.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;EUR\\&quot;,\\n  Value = 1000\\n};\\n\\nLineItem lineItem1 = new LineItem\\n{\\n  Quantity = 1,\\n  AmountExcludingTax = 331,\\n  TaxPercentage = 2100,\\n  Description = \\&quot;Shoes\\&quot;,\\n  Id = \\&quot;Item #1\\&quot;,\\n  TaxAmount = 69,\\n  AmountIncludingTax = 400\\n};\\n\\nLineItem lineItem2 = new LineItem\\n{\\n  Quantity = 2,\\n  AmountExcludingTax = 248,\\n  TaxPercentage = 2100,\\n  Description = \\&quot;Socks\\&quot;,\\n  Id = \\&quot;Item #2\\&quot;,\\n  TaxAmount = 52,\\n  AmountIncludingTax = 300\\n};\\n\\nName name = new Name\\n{\\n  FirstName = \\&quot;Simon\\&quot;,\\n  LastName = \\&quot;Hopper\\&quot;\\n};\\n\\nRatepayDetails ratepayDetails = new RatepayDetails\\n{\\n  Type = RatepayDetails.TypeEnum.Ratepay\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n  Country = \\&quot;NL\\&quot;,\\n  City = \\&quot;Amsterdam\\&quot;,\\n  HouseNumberOrName = \\&quot;6-50\\&quot;,\\n  Street = \\&quot;Simon Carmiggeltstraat\\&quot;,\\n  PostalCode = \\&quot;1011 DJ\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Amount = amount,\\n  TelephoneNumber = \\&quot;+31858888138\\&quot;,\\n  DeviceFingerprint = \\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;,\\n  DateOfBirth = DateTime.Parse(\\&quot;1970-07-10\\&quot;),\\n  ShopperEmail = \\&quot;s.hopper@example.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  CountryCode = \\&quot;NL\\&quot;,\\n  PaymentMethod = new CheckoutPaymentMethod(ratepayDetails),\\n  BillingAddress = billingAddress,\\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;ratepay\\&quot;\\n  },\\n  amount: {\\n    currency: \\&quot;EUR\\&quot;,\\n    value: \\&quot;1000\\&quot;\\n  },\\n  deviceFingerprint: \\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;,\\n  countryCode: \\&quot;NL\\&quot;,\\n  dateOfBirth: new Date(\\&quot;1970-07-10\\&quot;),\\n  telephoneNumber: \\&quot;+31858888138\\&quot;,\\n  shopperEmail: \\&quot;s.hopper@example.com\\&quot;,\\n  shopperName: {\\n    firstName: \\&quot;Simon\\&quot;,\\n    lastName: \\&quot;Hopper\\&quot;\\n  },\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  billingAddress: {\\n    city: \\&quot;Amsterdam\\&quot;,\\n    country: \\&quot;NL\\&quot;,\\n    houseNumberOrName: \\&quot;6-50\\&quot;,\\n    postalCode: \\&quot;1011 DJ\\&quot;,\\n    street: \\&quot;Simon Carmiggeltstraat\\&quot;\\n  },\\n  lineItems: [ {\\n    quantity: \\&quot;1\\&quot;,\\n    amountExcludingTax: \\&quot;331\\&quot;,\\n    taxPercentage: \\&quot;2100\\&quot;,\\n    description: \\&quot;Shoes\\&quot;,\\n    id: \\&quot;Item #1\\&quot;,\\n    taxAmount: \\&quot;69\\&quot;,\\n    amountIncludingTax: \\&quot;400\\&quot;,\\n    taxCategory: \\&quot;High\\&quot;\\n  }, {\\n    quantity: \\&quot;2\\&quot;,\\n    amountExcludingTax: \\&quot;248\\&quot;,\\n    taxPercentage: \\&quot;2100\\&quot;,\\n    description: \\&quot;Socks\\&quot;,\\n    id: \\&quot;Item #2\\&quot;,\\n    taxAmount: \\&quot;52\\&quot;,\\n    amountIncludingTax: \\&quot;300\\&quot;,\\n    taxCategory: \\&quot;High\\&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;time\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\namount := checkout.Amount{\\n  Currency: \\&quot;EUR\\&quot;,\\n  Value: 1000,\\n}\\n\\nlineItem1 := checkout.LineItem{\\n  Quantity: common.PtrInt64(1),\\n  AmountExcludingTax: common.PtrInt64(331),\\n  TaxPercentage: common.PtrInt64(2100),\\n  Description: common.PtrString(\\&quot;Shoes\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #1\\&quot;),\\n  TaxAmount: common.PtrInt64(69),\\n  AmountIncludingTax: common.PtrInt64(400),\\n}\\n\\nlineItem2 := checkout.LineItem{\\n  Quantity: common.PtrInt64(2),\\n  AmountExcludingTax: common.PtrInt64(248),\\n  TaxPercentage: common.PtrInt64(2100),\\n  Description: common.PtrString(\\&quot;Socks\\&quot;),\\n  Id: common.PtrString(\\&quot;Item #2\\&quot;),\\n  TaxAmount: common.PtrInt64(52),\\n  AmountIncludingTax: common.PtrInt64(300),\\n}\\n\\nname := checkout.Name{\\n  FirstName: \\&quot;Simon\\&quot;,\\n  LastName: \\&quot;Hopper\\&quot;,\\n}\\n\\nratepayDetails := checkout.RatepayDetails{\\n  Type: \\&quot;ratepay\\&quot;,\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n  Country: \\&quot;NL\\&quot;,\\n  City: \\&quot;Amsterdam\\&quot;,\\n  HouseNumberOrName: \\&quot;6-50\\&quot;,\\n  Street: \\&quot;Simon Carmiggeltstraat\\&quot;,\\n  PostalCode: \\&quot;1011 DJ\\&quot;,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Amount: amount,\\n  TelephoneNumber: common.PtrString(\\&quot;+31858888138\\&quot;),\\n  DeviceFingerprint: common.PtrString(\\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;),\\n  DateOfBirth:  func() *time.Time { t, _ := time.Parse(time.RFC3339, \\&quot;1970-07-10\\&quot;); return &amp;t }(),\\n  ShopperEmail: common.PtrString(\\&quot;s.hopper@example.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  CountryCode: common.PtrString(\\&quot;NL\\&quot;),\\n  PaymentMethod: checkout.RatepayDetailsAsCheckoutPaymentMethod(&amp;ratepayDetails),\\n  BillingAddress: &amp;billingAddress,\\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;ratepay\\&quot;\\n  },\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n    \\&quot;value\\&quot;: \\&quot;1000\\&quot;\\n  },\\n  \\&quot;deviceFingerprint\\&quot;: \\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;,\\n  \\&quot;countryCode\\&quot;: \\&quot;NL\\&quot;,\\n  \\&quot;dateOfBirth\\&quot;: \\&quot;1970-07-10\\&quot;,\\n  \\&quot;telephoneNumber\\&quot;: \\&quot;+31858888138\\&quot;,\\n  \\&quot;shopperEmail\\&quot;: \\&quot;s.hopper@example.com\\&quot;,\\n  \\&quot;shopperName\\&quot;: {\\n    \\&quot;firstName\\&quot;: \\&quot;Simon\\&quot;,\\n    \\&quot;lastName\\&quot;: \\&quot;Hopper\\&quot;\\n  },\\n  \\&quot;shopperReference\\&quot;: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;,\\n  \\&quot;billingAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;Amsterdam\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;NL\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;6-50\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;1011 DJ\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Simon Carmiggeltstraat\\&quot;\\n  },\\n  \\&quot;lineItems\\&quot;: [ {\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;331\\&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;taxAmount\\&quot;: \\&quot;69\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;400\\&quot;,\\n    \\&quot;taxCategory\\&quot;: \\&quot;High\\&quot;\\n  }, {\\n    \\&quot;quantity\\&quot;: \\&quot;2\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;248\\&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;taxAmount\\&quot;: \\&quot;52\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;300\\&quot;,\\n    \\&quot;taxCategory\\&quot;: \\&quot;High\\&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; 'ratepay'\\n  },\\n  :amount =&gt; {\\n    :currency =&gt; 'EUR',\\n    :value =&gt; '1000'\\n  },\\n  :deviceFingerprint =&gt; 'eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...',\\n  :countryCode =&gt; 'NL',\\n  :dateOfBirth =&gt; '1970-07-10',\\n  :telephoneNumber =&gt; '+31858888138',\\n  :shopperEmail =&gt; 's.hopper@example.com',\\n  :shopperName =&gt; {\\n    :firstName =&gt; 'Simon',\\n    :lastName =&gt; 'Hopper'\\n  },\\n  :shopperReference =&gt; 'YOUR_UNIQUE_SHOPPER_ID',\\n  :billingAddress =&gt; {\\n    :city =&gt; 'Amsterdam',\\n    :country =&gt; 'NL',\\n    :houseNumberOrName =&gt; '6-50',\\n    :postalCode =&gt; '1011 DJ',\\n    :street =&gt; 'Simon Carmiggeltstraat'\\n  },\\n  :lineItems =&gt; [ {\\n    :quantity =&gt; '1',\\n    :amountExcludingTax =&gt; '331',\\n    :taxPercentage =&gt; '2100',\\n    :description =&gt; 'Shoes',\\n    :id =&gt; 'Item #1',\\n    :taxAmount =&gt; '69',\\n    :amountIncludingTax =&gt; '400',\\n    :taxCategory =&gt; 'High'\\n  }, {\\n    :quantity =&gt; '2',\\n    :amountExcludingTax =&gt; '248',\\n    :taxPercentage =&gt; '2100',\\n    :description =&gt; 'Socks',\\n    :id =&gt; 'Item #2',\\n    :taxAmount =&gt; '52',\\n    :amountIncludingTax =&gt; '300',\\n    :taxCategory =&gt; 'High'\\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;EUR\\&quot;,\\n  value: 1000\\n};\\n\\nconst lineItem1: Types.checkout.LineItem = {\\n  quantity: 1,\\n  amountExcludingTax: 331,\\n  taxPercentage: 2100,\\n  description: \\&quot;Shoes\\&quot;,\\n  id: \\&quot;Item #1\\&quot;,\\n  taxAmount: 69,\\n  amountIncludingTax: 400\\n};\\n\\nconst lineItem2: Types.checkout.LineItem = {\\n  quantity: 2,\\n  amountExcludingTax: 248,\\n  taxPercentage: 2100,\\n  description: \\&quot;Socks\\&quot;,\\n  id: \\&quot;Item #2\\&quot;,\\n  taxAmount: 52,\\n  amountIncludingTax: 300\\n};\\n\\nconst name: Types.checkout.Name = {\\n  firstName: \\&quot;Simon\\&quot;,\\n  lastName: \\&quot;Hopper\\&quot;\\n};\\n\\nconst ratepayDetails: Types.checkout.RatepayDetails = {\\n  type: Types.checkout.RatepayDetails.TypeEnum.Ratepay\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n  country: \\&quot;NL\\&quot;,\\n  city: \\&quot;Amsterdam\\&quot;,\\n  houseNumberOrName: \\&quot;6-50\\&quot;,\\n  street: \\&quot;Simon Carmiggeltstraat\\&quot;,\\n  postalCode: \\&quot;1011 DJ\\&quot;\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  amount: amount,\\n  telephoneNumber: \\&quot;+31858888138\\&quot;,\\n  deviceFingerprint: \\&quot;eyJ2ZXJzaW9uIjoiMS4wLjAiLCJkZXZ...\\&quot;,\\n  dateOfBirth: new Date(\\&quot;1970-07-10\\&quot;),\\n  shopperEmail: \\&quot;s.hopper@example.com\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  lineItems: [lineItem1, lineItem2],\\n  shopperName: name,\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  countryCode: \\&quot;NL\\&quot;,\\n  paymentMethod: ratepayDetails,\\n  billingAddress: billingAddress,\\n  shopperReference: \\&quot;YOUR_UNIQUE_SHOPPER_ID\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<p>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 contains:<\/p>\n<ul>\n<li>(Only for Open Invoice payments) <code>additionalData.openinvoicedata.descriptor<\/code>: The purpose of the payment which you should print on the invoice. The shopper provides it when making a bank transfer, so Ratepay can match the payment to the transaction.<\/li>\n<li><code>resultCode<\/code>: Use this to <a href=\"#present-the-payment-result\">present the payment<\/a> result to your shopper.<\/li>\n<li><code>pspReference<\/code>: Our unique reference for the payment.<\/li>\n<li><code>merchantReference<\/code>: Your <code>reference<\/code> from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example response for a successful Ratepay Open Invoice payment'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"additionalData\\\": {\\n        \\\"openinvoicedata.descriptor\\\": \\\"DN0099661Y8\\\"\\n  },\\n  \\\"pspReference\\\":\\\"881567437271705K\\\",\\n  \\\"resultCode\\\":\\\"Authorised\\\",\\n  \\\"merchantReference\\\":\\\"YOUR_ORDER_NUMBER\\\"\\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 <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#responses-200-resultCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">resultCode<\/a> that you received 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 to present the payment result to your shopper.<\/p>\n<p>The <code>resultCode<\/code> values you can receive for Ratepay 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 successfully authorised.<\/td>\n<td>Inform the shopper that the payment was successful. You can also add a message, for example: <em>Thank you for your order. Your purchase order number is XYZ.<\/em><br> After the goods have been sent, you also need to <a href=\"#capture-the-payment\">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<\/tr>\n<tr>\n<td><strong>Refused<\/strong><\/td>\n<td>The payment was refused by Ratepay.<\/td>\n<td>Ask the shopper to try the payment again using a different payment method.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"capture-the-payment\">Capture the payment<\/h2>\n<p>This section only applies to Ratepay Open invoice.<\/p>\n<p>After the goods have been sent, you also need to\u00a0<a href=\"#capture-the-payment\">capture<\/a>\u00a0the payment. All Ratepay Open invoice payments must be\u00a0<a href=\"\/pt\/online-payments\/capture#manual-capture\">manually captured<\/a>, even if you have enabled automatic capture for other payment methods. Capturing the payment is what triggers the invoice to be sent to the shopper.<\/p>\n<h3 id=\"partial-captures\">Partial captures<\/h3>\n<p>To <a href=\"\/pt\/online-payments\/capture\">partially capture<\/a> a Ratepay Open invoice payment, specify in your\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/capture\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/capture<\/a> request:<\/p>\n<ul>\n<li><code>modificationAmount<\/code>: The amount that the shopper should pay.\u00a0<\/li>\n<li><code>additionalData.openinvoicedata<\/code>: Price and product information for the items that the shopper should pay for.<\/li>\n<\/ul>\n<p>Although the field names are different, the information in <code>additionalData.openinvoicedata<\/code> is the same as what you provided in <code>lineItems<\/code> when making 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:<\/p>\n<table>\n<thead>\n<tr>\n<th>openinvoicedata<\/th>\n<th>lineItems<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>itemAmount<\/code><\/td>\n<td><code>amountExcludingTax<\/code><\/td>\n<td>The price for one item, without the tax, in <a href=\"\/pt\/development-resources\/currency-codes\">minor units<\/a>.<\/td>\n<\/tr>\n<tr>\n<td><code>itemVatAmount<\/code><\/td>\n<td><code>taxAmount<\/code><\/td>\n<td>The tax amount for one item, in minor units.<\/td>\n<\/tr>\n<tr>\n<td><code>itemVatPercentage<\/code><\/td>\n<td><code>taxPercentage<\/code><\/td>\n<td>The tax percentage, in minor units.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The following example shows how to make a partial capture request if the shopper only kept one pair of socks from the two included in the <a href=\"#make-a-payment\">original payment request<\/a>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/capture request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"originalReference\\\":\\\"COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\\",\\n   \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"modificationAmount\\\":{\\n      \\\"currency\\\":\\\"EUR\\\",\\n      \\\"value\\\":\\\"700\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"2\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"EUR\\\",\\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.vatCategory\\\":\\\"High\\\",\\n      \\\"openinvoicedata.line1.itemId\\\":\\\"Item #1\\\",\\n      \\\"openinvoicedata.line2.currencyCode\\\":\\\"EUR\\\",\\n      \\\"openinvoicedata.line2.description\\\":\\\"Socks\\\",\\n      \\\"openinvoicedata.line2.itemAmount\\\":\\\"248\\\",\\n      \\\"openinvoicedata.line2.itemVatAmount\\\":\\\"52\\\",\\n      \\\"openinvoicedata.line2.itemVatPercentage\\\":\\\"2100\\\",\\n      \\\"openinvoicedata.line2.numberOfItems\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line2.vatCategory\\\":\\\"High\\\",\\n      \\\"openinvoicedata.line2.itemId\\\":\\\"Item #2\\\",\\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>Any unclaimed amount that is left after partially capturing a payment should be <a href=\"#refunds-and-cancellations\">manually cancelled<\/a>.<\/p>\n<div class=\"sc-notice info\"><div>\n<p>To set up multiple partial captures, contact our <a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a>.\u00a0Multiple partial captures will create\u00a0a new invoice for each capture.<\/p>\n<\/div><\/div>\n<h2 id=\"refunds-and-cancellations\">Refunds and cancellations<\/h2>\n<p>If\u00a0a Ratepay payment has not yet been captured, you can\u00a0<a href=\"\/pt\/online-payments\/cancel\">cancel<\/a> it. If the Ratepay payment has already been captured and you want to return the funds to the shopper, you need to\u00a0<a href=\"\/pt\/online-payments\/refund\">refund<\/a>\u00a0it.<\/p>\n<h3 id=\"partial-refunds\">Partial refunds<\/h3>\n<p>To <a href=\"\/pt\/online-payments\/refund\">partially refund<\/a> a Ratepay payment, specify in your  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/(paymentPspReference)\/refunds\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/{paymentPspReference}\/refunds<\/a> request:<\/p>\n<ul>\n<li><code>modificationAmount<\/code>: The amount to be refunded to the shopper.<\/li>\n<li><code>additionalData.acquirerReference<\/code>: The <code>acquirerReference<\/code> of the capture. This is needed if there are multiple partial captures available for the payment. When refunding in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>, you can add the <code>acquirerReference<\/code> manually as well.<\/li>\n<li>(Only for Open invoice payments)<code>additionalData.openinvoicedata<\/code>: Price and product information about the returned items.<\/li>\n<\/ul>\n<p>Although the field names are different, the information in <code>additionalData.openinvoicedata<\/code> is the same as what you provided in <code>lineItems<\/code> when making 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:<\/p>\n<table>\n<thead>\n<tr>\n<th>openinvoicedata<\/th>\n<th>lineItems<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>itemAmount<\/code><\/td>\n<td><code>amountExcludingTax<\/code><\/td>\n<td>The price for one item, without the tax, in <a href=\"\/pt\/development-resources\/currency-codes\">minor units<\/a>.<\/td>\n<\/tr>\n<tr>\n<td><code>itemVatAmount<\/code><\/td>\n<td><code>taxAmount<\/code><\/td>\n<td>The tax amount for one item, in minor units.<\/td>\n<\/tr>\n<tr>\n<td><code>itemVatPercentage<\/code><\/td>\n<td><code>taxPercentage<\/code><\/td>\n<td>The tax percentage, in minor units.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The following example shows how to make a partial refund request if the shopper returned the shoes included in the <a href=\"#make-a-payment\">original payment request<\/a>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/refund request'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"originalReference\\\":\\\"COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\\",\\n   \\\"modificationAmount\\\":{\\n      \\\"currency\\\":\\\"EUR\\\",\\n      \\\"value\\\":\\\"400\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"EUR\\\",\\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.vatCategory\\\":\\\"High\\\"\\n   },\\n   \\\"reference\\\":\\\"YOUR_REFUND_REFERENCE\\\"\\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 you can accept live Ratepay payments, you need to <a href=\"\/pt\/payment-methods\/add-payment-methods\">submit a request for Ratepay<\/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>, and provide us your Ratepay live credentials.<\/p>\n<p>Ratepay provides detailed <a href=\"https:\/\/docs.ratepay.com\/docs\/developer\/api_integration\/payment_1.8\/payment_api_documentation\/responses\/overview_result_codes\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">error codes<\/a> as well as <a href=\"https:\/\/docs.ratepay.com\/docs\/developer\/testing\/test_data\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">test data<\/a> and recommendations on how to test some of the <a href=\"https:\/\/docs.ratepay.com\/docs\/developer\/testing\/test_cases\/direct_api_integration\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">most common scenarios<\/a>.<\/p>\n<p>You can check the status of the 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<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/drop-in-web\"\n                        target=\"_self\"\n                        >\n                    Web Drop-in integration guide\n                <\/a><\/li><li><a href=\"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\/ratepay\/web-drop-in","articleFields":{"description":"Add Ratepay to an existing Drop-in integration.","parameters":{"payment_method":"Ratepay","component_class":"RatePay","country_code":"NL","currency":"EUR","payment_method_type":"ratepay","integration":"Drop-in","platform":"Web"},"feedback_component":true},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/ratepay\/web-drop-in","title":"Ratepay Drop-in integration","content":"Our Web Drop-in renders Ratepay in your payment form, and collects the required payment information from the shopper.\nWhen making a Ratepay payment, you also need to:\n\nCollect shopper details, and specify these in your payment request.\nProvide information about the purchased items by specifying lineItems in your payment request.\nUsing Ratepay's device fingerprinting, calculate the shopper's device fingerprint, and specify it in your payment request. Ratepay uses the fingerprint for risk evaluation.\nCapture the payment after the goods have been sent. This triggers the invoice to be sent to the shopper by the merchant.\n\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built your Web Drop-in integration.  \n\n\nSetup steps\nBefore you begin, add Ratepay in your test Customer Area.\n\n\n\nImport resources for v6\nIf you are using Web Drop-in v6, import the resources you need for Ratepay:\nimport { AdyenCheckout, RatePay} from '@adyen\/adyen-web'\nShow Ratepay in your payment form\nDrop-in uses the  countryCode and the  amount.currency from the  \/paymentMethods request to show the available payment methods to your shopper.\nTo show Ratepay in your payment form, specify in your  \/paymentMethods request one of the following combinations:\n\n\n\nCountry\/region\ncountryCode\namount.currency\n\n\n\n\nAustria\nAT\nEUR\n\n\nGermany\nDE\nEUR\n\n\nThe Netherlands  v3.22.1 or later\nNL\nEUR\n\n\nSwitzerland\nCH\nCHF\n\n\n\nThe response contains supported payment method types:\n\n\n\nPayment Method\npaymentMethod.type\n\n\n\n\nRatepay Open Invoice\nratepay\n\n\nRatepay Direct Debit  v5.13.0 or later\nratepay_directdebit\n\n\n\nOptional Drop-in configuration\nWhen you create the instance of Drop-in, you can add optional configuration for Ratepay.\n\n\n\nConfiguration\nDescription\nData type\n\n\n\n\nicon\nThe path to the icon that you show for this payment method.\nString\n\n\nname\nThe name that you show for this payment method.\nString\n\n\n\n\n    \n\nPre-filled shopper data\nYou can add configuration with the shopper's information, so that you can pre-fill the payment form. The configuration is different for Direct Debit and Open Invoice.\n\n\n    \n        \n        \n    \n\n\nCalculate the device fingerprint\nBefore making a payment you need to implement Ratepay's device fingerprinting. Send the calculated device fingerprint when making a  \/payments request.\nMake a payment\nWhen the shopper selects to pay, Drop-in calls the onSubmit event, which contains a state.data.\n\nPass the state.data to your server.\n\nFrom your server, make a  \/payments request with the following data:\n\n\n    \n        \n        \n    \n\n\n\n\n\n\n\nThe  \/payments response contains:\n\n(Only for Open Invoice payments) additionalData.openinvoicedata.descriptor: The purpose of the payment which you should print on the invoice. The shopper provides it when making a bank transfer, so Ratepay can match the payment to the transaction.\nresultCode: Use this to present the payment result to your shopper.\npspReference: Our unique reference for the payment.\nmerchantReference: Your reference from the  \/payments request.\n\n\n    \n\nPresent the payment result\nUse the\u00a0 resultCode that you received in the  \/payments response to present the payment result to your shopper.\nThe resultCode values you can receive for Ratepay are:\n\n\n\nresultCode\nDescription\nAction to take\n\n\n\n\nAuthorised\nThe payment was successfully authorised.\nInform the shopper that the payment was successful. You can also add a message, for example: Thank you for your order. Your purchase order number is XYZ. 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\nRefused\nThe payment was refused by Ratepay.\nAsk the shopper to try the payment again using a different payment method.\n\n\n\nCapture the payment\nThis section only applies to Ratepay Open invoice.\nAfter the goods have been sent, you also need to\u00a0capture\u00a0the payment. All Ratepay Open invoice payments must be\u00a0manually captured, even if you have enabled automatic capture for other payment methods. Capturing the payment is what triggers the invoice to be sent to the shopper.\nPartial captures\nTo partially capture a Ratepay Open invoice payment, specify in your\u00a0\/capture request:\n\nmodificationAmount: The amount that the shopper should pay.\u00a0\nadditionalData.openinvoicedata: Price and product information for the items that the shopper should pay for.\n\nAlthough the field names are different, the information in additionalData.openinvoicedata is the same as what you provided in lineItems when making a  \/payments request:\n\n\n\nopeninvoicedata\nlineItems\nDescription\n\n\n\n\nitemAmount\namountExcludingTax\nThe price for one item, without the tax, in minor units.\n\n\nitemVatAmount\ntaxAmount\nThe tax amount for one item, in minor units.\n\n\nitemVatPercentage\ntaxPercentage\nThe tax percentage, in minor units.\n\n\n\nThe following example shows how to make a partial capture request if the shopper only kept one pair of socks from the two included in the original payment request.\n\n    \n\nAny unclaimed amount that is left after partially capturing a payment should be manually cancelled.\n\nTo set up multiple partial captures, contact our Support Team.\u00a0Multiple partial captures will create\u00a0a new invoice for each capture.\n\nRefunds and cancellations\nIf\u00a0a Ratepay payment has not yet been captured, you can\u00a0cancel it. If the Ratepay payment has already been captured and you want to return the funds to the shopper, you need to\u00a0refund\u00a0it.\nPartial refunds\nTo partially refund a Ratepay payment, specify in your  \/payments\/{paymentPspReference}\/refunds request:\n\nmodificationAmount: The amount to be refunded to the shopper.\nadditionalData.acquirerReference: The acquirerReference of the capture. This is needed if there are multiple partial captures available for the payment. When refunding in your Customer Area, you can add the acquirerReference manually as well.\n(Only for Open invoice payments)additionalData.openinvoicedata: Price and product information about the returned items.\n\nAlthough the field names are different, the information in additionalData.openinvoicedata is the same as what you provided in lineItems when making a  \/payments request:\n\n\n\nopeninvoicedata\nlineItems\nDescription\n\n\n\n\nitemAmount\namountExcludingTax\nThe price for one item, without the tax, in minor units.\n\n\nitemVatAmount\ntaxAmount\nThe tax amount for one item, in minor units.\n\n\nitemVatPercentage\ntaxPercentage\nThe tax percentage, in minor units.\n\n\n\nThe following example shows how to make a partial refund request if the shopper returned the shoes included in the original payment request.\n\n    \n\nTest and go live\nBefore you can accept live Ratepay payments, you need to submit a request for Ratepay in your live Customer Area, and provide us your Ratepay live credentials.\nRatepay provides detailed error codes as well as test data and recommendations on how to test some of the most common scenarios.\nYou can check the status of the test payments in your\u00a0Customer Area\u00a0&gt;\u00a0Transactions\u00a0&gt;\u00a0Payments.\nSee also\n\n\n                    Web Drop-in integration guide\n                \n                    API Explorer\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Ratepay","lvl3":"Ratepay Drop-in integration"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/ratepay","lvl3":"\/pt\/payment-methods\/ratepay\/web-drop-in"},"levels":4,"category":"Payment method","category_color":"green","tags":["Ratepay","Drop-in","integration"]},"articleFiles":{"payments.js":"<p alt=\"\">payments.js<\/p>"}}
