{"title":"PayBright Component","category":"default","creationDate":1776961628,"content":"<div class=\"notices red\">\n<p>PayBright has been acquired by <a href=\"\/pt\/payment-methods\/affirm\">Affirm<\/a>. Adyen will not accept new PayBright integrations.<\/p>\n<\/div>\n<p>This page explains how to add PayBright to your existing Web Components integration.<\/p>\n<p>When making an PayBright payment, you also need to:<\/p>\n<ol>\n<li>Collect shopper details, and specify these <a href=\"#api-reference\">in your <code>\/sessions<\/code> or <code>\/payments<\/code> request<\/a>.\nPayBright uses these for risk checks.<\/li>\n<li>Provide information about the purchased items by specifying <code>lineItems<\/code>.<\/li>\n<\/ol>\n<h2>Requirements<\/h2>\n<p>Select the <a href=\"\/pt\/online-payments\/build-your-integration\">server-side flow<\/a> that your integration uses:<\/p>\n\n<div id=\"tabXLRnH\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Sessions flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built a Sessions flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Web&amp;amp;integration=Components\\&quot;&gt;Web Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add PayBright in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-requirements_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Requirement&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: left;\\&quot;&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Integration type&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Make sure that you have built an Advanced flow &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/advanced-flow?platform=Web&amp;amp;integration=Components\\&quot;&gt;Web Components integration&lt;\\\/a&gt;. &lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;&lt;strong&gt;Setup steps&lt;\\\/strong&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: left;\\&quot;&gt;Before you begin, &lt;a href=\\&quot;\\\/pt\\\/payment-methods\\\/add-payment-methods\\&quot;&gt;add PayBright in your Customer Area&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-requirements_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"api-reference\">API reference<\/h2>\n<p>Select which endpoint you are using:<\/p>\n\n<div id=\"tabNVl2n\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;&lt;code&gt;\\\/sessions&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;This is the default with &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/sessions-flow?platform=Web&amp;amp;integration=Components\\&quot;&gt;Components v5.0.0&lt;\\\/a&gt; or later.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Parameter name&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-shopperName\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperName&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Shopper&#039;s first name and last name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/sessions__reqParam_dateOfBirth\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;dateOfBirth&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s date of birth.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-shopperEmail\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperEmail&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s email address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__resParam_telephoneNumber\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;telephoneNumber&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s phone number.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__resParam_countryCode\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;countryCode&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s country. For example, &lt;code&gt;CA&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-billingAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;billingAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The address where to send the invoice.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__reqParam_shopperReference\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A unique reference to identify the shopper (minimum length three characters).&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-deliveryAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;deliveryAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The address where the purchased goods should be delivered. If blank or missing, &lt;code&gt;billingAddress&lt;\\\/code&gt; is used by default.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/sessions__resParam_shopperLocale\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperLocale&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A combination of language code and country code to define which language should be used in the PayBright checkout page.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/sessions#request-lineItems\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;lineItems&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Price and product information about the purchased items. This is optional, but we recommend to include this data to improve approval rates.&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;paybright-web-sessions&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;curl&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v69\\\\\\\/sessions \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n   \\\\&amp;quot;merchantAccount\\\\&amp;quot;:\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n   \\\\&amp;quot;countryCode\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n   \\\\&amp;quot;amount\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;currency\\\\&amp;quot;:\\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;:6000\\\\n   },\\\\n   \\\\&amp;quot;shopperLocale\\\\&amp;quot;:\\\\&amp;quot;en_CA\\\\&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;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;dateOfBirth\\\\&amp;quot;:\\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n   \\\\&amp;quot;telephoneNumber\\\\&amp;quot;:\\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperEmail\\\\&amp;quot;:\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n   \\\\&amp;quot;{hint:state.data.billingAddress from onSubmit}billingAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;240\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;ON\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;{hint:state.data.deliveryAddress from onSubmit}deliveryAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;240\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;ON\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;returnUrl\\\\&amp;quot;:\\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n   \\\\&amp;quot;lineItems\\\\&amp;quot;:[\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;4000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;3310\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&amp;quot;\\\\n      },\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;2\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;3000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;2480\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&amp;quot;\\\\n      },\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&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 v39.3.0\\\\nimport com.adyen.Client;\\\\nimport com.adyen.enums.Environment;\\\\nimport com.adyen.model.checkout.*;\\\\nimport java.time.OffsetDateTime;\\\\nimport java.util.*;\\\\nimport com.adyen.model.RequestOptions;\\\\nimport com.adyen.service.checkout.*;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nClient client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nAmount amount = new Amount()\\\\n  .currency(\\\\&amp;quot;CAD\\\\&amp;quot;)\\\\n  .value(6000L);\\\\n\\\\nLineItem lineItem1 = new LineItem()\\\\n  .quantity(1L)\\\\n  .amountExcludingTax(3310L)\\\\n  .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  .amountIncludingTax(4000L);\\\\n\\\\nLineItem lineItem2 = new LineItem()\\\\n  .quantity(2L)\\\\n  .amountExcludingTax(2480L)\\\\n  .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  .amountIncludingTax(3000L);\\\\n\\\\nLineItem lineItem3 = new LineItem()\\\\n  .quantity(1L)\\\\n  .amountExcludingTax(-1000L)\\\\n  .description(\\\\&amp;quot;Discount\\\\&amp;quot;)\\\\n  .amountIncludingTax(-1000L);\\\\n\\\\nName name = new Name()\\\\n  .firstName(\\\\&amp;quot;Simon\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\\\n  .country(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  .stateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Toronto\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Richmond St W\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  .stateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;Toronto\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;Richmond St W\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;+16478491378\\\\&amp;quot;)\\\\n  .shopperEmail(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;)\\\\n  .reference(\\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;)\\\\n  .lineItems(Arrays.asList(lineItem1, lineItem2, lineItem3))\\\\n  .shopperName(name)\\\\n  .merchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .deliveryAddress(deliveryAddress)\\\\n  .countryCode(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  .shopperLocale(\\\\&amp;quot;en_CA\\\\&amp;quot;)\\\\n  .billingAddress(billingAddress)\\\\n  .returnUrl(\\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  .shopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nPaymentsApi service = new PaymentsApi(client);\\\\nCreateCheckoutSessionResponse response = service.sessions(createCheckoutSessionRequest, new RequestOptions().idempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;));&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;php&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;PHP&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;&amp;lt;?php\\\\n\\\\\\\/\\\\\\\/ Adyen PHP API Library v28.2.0\\\\nuse Adyen\\\\\\\\Client;\\\\nuse Adyen\\\\\\\\Environment;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Amount;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\LineItem;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\Name;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\DeliveryAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\BillingAddress;\\\\nuse Adyen\\\\\\\\Model\\\\\\\\Checkout\\\\\\\\CreateCheckoutSessionRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\PaymentsApi;\\\\n\\\\n$client = new Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also 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;CAD\\\\&amp;quot;)\\\\n  -&amp;gt;setValue(6000);\\\\n\\\\n$lineItem1 = new LineItem();\\\\n$lineItem1\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setAmountExcludingTax(3310)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(4000);\\\\n\\\\n$lineItem2 = new LineItem();\\\\n$lineItem2\\\\n  -&amp;gt;setQuantity(2)\\\\n  -&amp;gt;setAmountExcludingTax(2480)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(3000);\\\\n\\\\n$lineItem3 = new LineItem();\\\\n$lineItem3\\\\n  -&amp;gt;setQuantity(1)\\\\n  -&amp;gt;setAmountExcludingTax(-1000)\\\\n  -&amp;gt;setDescription(\\\\&amp;quot;Discount\\\\&amp;quot;)\\\\n  -&amp;gt;setAmountIncludingTax(-1000);\\\\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$deliveryAddress = new DeliveryAddress();\\\\n$deliveryAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  -&amp;gt;setStateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Toronto\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Richmond St W\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  -&amp;gt;setStateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;Toronto\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;Richmond St W\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\n\\\\n$createCheckoutSessionRequest = new CreateCheckoutSessionRequest();\\\\n$createCheckoutSessionRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;+16478491378\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;)\\\\n  -&amp;gt;setReference(\\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;)\\\\n  -&amp;gt;setLineItems(array($lineItem1, $lineItem2, $lineItem3))\\\\n  -&amp;gt;setShopperName($name)\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setDeliveryAddress($deliveryAddress)\\\\n  -&amp;gt;setCountryCode(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperLocale(\\\\&amp;quot;en_CA\\\\&amp;quot;)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setReturnUrl(\\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new PaymentsApi($client);\\\\n$response = $service-&amp;gt;sessions($createCheckoutSessionRequest, $requestOptions);&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;cs&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;C#&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen .net API Library v32.1.1\\\\nusing Adyen;\\\\nusing Environment = Adyen.Model.Environment;\\\\nusing Adyen.Model;\\\\nusing Adyen.Model.Checkout;\\\\nusing Adyen.Service.Checkout;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nvar config = new Config()\\\\n{\\\\n    XApiKey = \\\\&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;CAD\\\\&amp;quot;,\\\\n  Value = 6000\\\\n};\\\\n\\\\nLineItem lineItem1 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  AmountExcludingTax = 3310,\\\\n  Description = \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  AmountIncludingTax = 4000\\\\n};\\\\n\\\\nLineItem lineItem2 = new LineItem\\\\n{\\\\n  Quantity = 2,\\\\n  AmountExcludingTax = 2480,\\\\n  Description = \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  AmountIncludingTax = 3000\\\\n};\\\\n\\\\nLineItem lineItem3 = new LineItem\\\\n{\\\\n  Quantity = 1,\\\\n  AmountExcludingTax = -1000,\\\\n  Description = \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n  AmountIncludingTax = -1000\\\\n};\\\\n\\\\nName name = new Name\\\\n{\\\\n  FirstName = \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\\\n{\\\\n  Country = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince = \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;M5V 2C5\\\\&amp;quot;\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince = \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;M5V 2C5\\\\&amp;quot;\\\\n};\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  ShopperEmail = \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  Reference = \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  LineItems = new List&amp;lt;LineItem&amp;gt;{ lineItem1, lineItem2, lineItem3 },\\\\n  ShopperName = name,\\\\n  MerchantAccount = \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress = deliveryAddress,\\\\n  CountryCode = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  ShopperLocale = \\\\&amp;quot;en_CA\\\\&amp;quot;,\\\\n  BillingAddress = billingAddress,\\\\n  ReturnUrl = \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new PaymentsService(client);\\\\nvar response = service.Sessions(createCheckoutSessionRequest, requestOptions: new RequestOptions { IdempotencyKey = \\\\&amp;quot;UUID\\\\&amp;quot;});&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;js&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (JavaScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v29.0.0\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nconst config = new Config({\\\\n  apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  environment: EnvironmentEnum.TEST\\\\n});\\\\n\\\\nconst client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst createCheckoutSessionRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n    value: 6000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;en_CA\\\\&amp;quot;,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  dateOfBirth: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  returnUrl: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  lineItems: [ {\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;4000\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;3310\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;3000\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;2480\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    description: \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.sessions(createCheckoutSessionRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;go&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Go&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Go API Library v21.0.0\\\\nimport (\\\\n  \\\\&amp;quot;context\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v21\\\\\\\/src\\\\\\\/common\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v21\\\\\\\/src\\\\\\\/adyen\\\\&amp;quot;\\\\n  \\\\&amp;quot;github.com\\\\\\\/adyen\\\\\\\/adyen-go-api-library\\\\\\\/v21\\\\\\\/src\\\\\\\/checkout\\\\&amp;quot;\\\\n)\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also 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;CAD\\\\&amp;quot;,\\\\n  Value: 6000,\\\\n}\\\\n\\\\nlineItem1 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  AmountExcludingTax: common.PtrInt64(3310),\\\\n  Description: common.PtrString(\\\\&amp;quot;Shoes\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(4000),\\\\n}\\\\n\\\\nlineItem2 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(2),\\\\n  AmountExcludingTax: common.PtrInt64(2480),\\\\n  Description: common.PtrString(\\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(3000),\\\\n}\\\\n\\\\nlineItem3 := checkout.LineItem{\\\\n  Quantity: common.PtrInt64(1),\\\\n  AmountExcludingTax: common.PtrInt64(-1000),\\\\n  Description: common.PtrString(\\\\&amp;quot;Discount\\\\&amp;quot;),\\\\n  AmountIncludingTax: common.PtrInt64(-1000),\\\\n}\\\\n\\\\nname := checkout.Name{\\\\n  FirstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;Hopper\\\\&amp;quot;,\\\\n}\\\\n\\\\ndeliveryAddress := checkout.DeliveryAddress{\\\\n  Country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince: common.PtrString(\\\\&amp;quot;ON\\\\&amp;quot;),\\\\n  City: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince: common.PtrString(\\\\&amp;quot;ON\\\\&amp;quot;),\\\\n  City: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n}\\\\n\\\\ncreateCheckoutSessionRequest := checkout.CreateCheckoutSessionRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;+16478491378\\\\&amp;quot;),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;),\\\\n  Reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  LineItems: []checkout.LineItem{\\\\n      lineItem1, lineItem2, lineItem3,\\\\n  },\\\\n  ShopperName: &amp;amp;name,\\\\n  MerchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  DeliveryAddress: &amp;amp;deliveryAddress,\\\\n  CountryCode: common.PtrString(\\\\&amp;quot;CA\\\\&amp;quot;),\\\\n  ShopperLocale: common.PtrString(\\\\&amp;quot;en_CA\\\\&amp;quot;),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ReturnUrl: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  ShopperReference: common.PtrString(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.PaymentsApi.SessionsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).CreateCheckoutSessionRequest(createCheckoutSessionRequest)\\\\nres, httpRes, err := service.PaymentsApi.Sessions(context.Background(), req)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;py&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Python&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Python API Library v13.6.0\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;\\\\n# For the LIVE environment, also 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;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 6000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;en_CA\\\\&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;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;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;4000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;3310\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;3000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;2480\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.sessions(request=json_request, idempotency_key=\\\\&amp;quot;UUID\\\\&amp;quot;)&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;rb&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;Ruby&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;# Adyen Ruby API Library v10.4.0\\\\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, also 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;YOUR_MERCHANT_ACCOUNT&#039;,\\\\n  :countryCode =&amp;gt; &#039;CA&#039;,\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;CAD&#039;,\\\\n    :value =&amp;gt; 6000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;en_CA&#039;,\\\\n  :shopperReference =&amp;gt; &#039;YOUR_UNIQUE_SHOPPER_ID&#039;,\\\\n  :reference =&amp;gt; &#039;YOUR_ORDER_NUMBER&#039;,\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Simon&#039;,\\\\n    :lastName =&amp;gt; &#039;Hopper&#039;\\\\n  },\\\\n  :dateOfBirth =&amp;gt; &#039;1970-07-10&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;+16478491378&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;s.hopper@example.com&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Toronto&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;240&#039;,\\\\n    :postalCode =&amp;gt; &#039;M5V 2C5&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;ON&#039;,\\\\n    :street =&amp;gt; &#039;Richmond St W&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Toronto&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;240&#039;,\\\\n    :postalCode =&amp;gt; &#039;M5V 2C5&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;ON&#039;,\\\\n    :street =&amp;gt; &#039;Richmond St W&#039;\\\\n  },\\\\n  :returnUrl =&amp;gt; &#039;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..&#039;,\\\\n  :lineItems =&amp;gt; [ {\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;4000&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;3310&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  }, {\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;3000&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;2480&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  }, {\\\\n    :description =&amp;gt; &#039;Discount&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;-1000&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;-1000&#039;,\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  } ]\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.payments_api.sessions(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;},{&amp;quot;language&amp;quot;:&amp;quot;ts&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;NodeJS (TypeScript)&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;\\\\\\\/\\\\\\\/ Adyen Node API Library v29.0.0\\\\nimport { Client, CheckoutAPI, Types } from \\\\&amp;quot;@adyen\\\\\\\/api-library\\\\&amp;quot;;\\\\n\\\\n\\\\\\\/\\\\\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\\\nconst config = new Config({\\\\n  apiKey: \\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;,\\\\n  environment: EnvironmentEnum.TEST\\\\n});\\\\n\\\\nconst client = new Client(config);\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object(s)\\\\nconst amount: Types.checkout.Amount = {\\\\n  currency: \\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n  value: 6000\\\\n};\\\\n\\\\nconst lineItem1: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  amountExcludingTax: 3310,\\\\n  description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n  amountIncludingTax: 4000\\\\n};\\\\n\\\\nconst lineItem2: Types.checkout.LineItem = {\\\\n  quantity: 2,\\\\n  amountExcludingTax: 2480,\\\\n  description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n  amountIncludingTax: 3000\\\\n};\\\\n\\\\nconst lineItem3: Types.checkout.LineItem = {\\\\n  quantity: 1,\\\\n  amountExcludingTax: -1000,\\\\n  description: \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n  amountIncludingTax: -1000\\\\n};\\\\n\\\\nconst name: Types.checkout.Name = {\\\\n  firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n};\\\\n\\\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\\\n  country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;\\\\n};\\\\n\\\\nconst createCheckoutSessionRequest: Types.checkout.CreateCheckoutSessionRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  reference: \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  lineItems: [lineItem1, lineItem2, lineItem3],\\\\n  shopperName: name,\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  deliveryAddress: deliveryAddress,\\\\n  countryCode: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  shopperLocale: \\\\&amp;quot;en_CA\\\\&amp;quot;,\\\\n  billingAddress: billingAddress,\\\\n  returnUrl: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  shopperReference: \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.PaymentsApi.sessions(createCheckoutSessionRequest, { idempotencyKey: \\\\&amp;quot;UUID\\\\&amp;quot; });&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;sessions&quot;,&quot;oldTabId&quot;:&quot;sessions-api_1&quot;,&quot;relation&quot;:&quot;sessions&quot;},{&quot;title&quot;:&quot;&lt;code&gt;\\\/payments&lt;\\\/code&gt;&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;If you implemented an &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\&quot;&gt;additional use case&lt;\\\/a&gt;.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Parameter name&lt;\\\/th&gt;\\n&lt;th style=\\&quot;text-align: center;\\&quot;&gt;Required&lt;\\\/th&gt;\\n&lt;th&gt;Description&lt;\\\/th&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/thead&gt;\\n&lt;tbody&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperName\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperName&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Shopper&#039;s first name and last name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-dateOfBirth\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;dateOfBirth&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s date of birth.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperEmail\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperEmail&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s email address.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/payments__resParam_telephoneNumber\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;telephoneNumber&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s phone number.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/payments__resParam_countryCode\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;countryCode&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The shopper&#039;s country. For example, &lt;code&gt;CA&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-billingAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;billingAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The address where to send the invoice.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-shopperReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;img title=\\&quot;-white_check_mark-\\&quot; alt=\\&quot;-white_check_mark-\\&quot; class=\\&quot;smileys\\&quot; src=\\&quot;\\\/user\\\/data\\\/smileys\\\/emoji\\\/white_check_mark.png\\&quot; \\\/&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A unique reference to identify the shopper (minimum length three characters).&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-deliveryAddress\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;deliveryAddress&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The address where the purchased goods should be delivered. If blank or missing, &lt;code&gt;billingAddress&lt;\\\/code&gt; is used by default.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/#\\\/CheckoutService\\\/latest\\\/post\\\/payments__resParam_shopperLocale\\&quot; class=\\&quot;codeLabel external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;shopperLocale&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;A combination of language code and country code to define which language should be used in the PayBright checkout page.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt; &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments#request-lineItems\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;lineItems&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td style=\\&quot;text-align: center;\\&quot;&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Price and product information about the purchased items. This is optional, but we recommend to include this data to improve approval rates.&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;paybright-web-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;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n   \\\\&amp;quot;countryCode\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n   \\\\&amp;quot;amount\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;currency\\\\&amp;quot;:\\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;:6000\\\\n   },\\\\n   \\\\&amp;quot;shopperLocale\\\\&amp;quot;:\\\\&amp;quot;en_CA\\\\&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;paybright\\\\&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;dateOfBirth\\\\&amp;quot;:\\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n   \\\\&amp;quot;telephoneNumber\\\\&amp;quot;:\\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperEmail\\\\&amp;quot;:\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n   \\\\&amp;quot;{hint:state.data.billingAddress from onSubmit}billingAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;240\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;ON\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;{hint:state.data.deliveryAddress from onSubmit}deliveryAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;240\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;ON\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;returnUrl\\\\&amp;quot;:\\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n   \\\\&amp;quot;lineItems\\\\&amp;quot;:[\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;4000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;3310\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&amp;quot;\\\\n      },\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;2\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;3000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;2480\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&amp;quot;\\\\n      },\\\\n      {\\\\n         \\\\&amp;quot;description\\\\&amp;quot;:\\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;:\\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;:\\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n         \\\\&amp;quot;quantity\\\\&amp;quot;:\\\\&amp;quot;1\\\\&amp;quot;,\\\\n         \\\\&amp;quot;taxCategory\\\\&amp;quot;:\\\\&amp;quot;Low\\\\&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;Client client = new Client(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;, Environment.TEST);\\\\n\\\\nCheckout checkout = new Checkout(client);\\\\n\\\\nPaymentsRequest paymentsRequest = new PaymentsRequest();\\\\npaymentsRequest.setMerchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;);\\\\npaymentsRequest.setCountryCode(\\\\&amp;quot;CA\\\\&amp;quot;);\\\\n\\\\nAmount amount = new Amount();\\\\namount.setCurrency(\\\\&amp;quot;USD\\\\&amp;quot;);\\\\namount.setValue(6000L);\\\\n\\\\npaymentsRequest.setAmount(amount);\\\\npaymentsRequest.setShopperLocale(\\\\&amp;quot;en_CA\\\\&amp;quot;);\\\\npaymentsRequest.setShopperReference(\\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;);\\\\npaymentsRequest.setReference(\\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;);\\\\npaymentsRequest.setChannel(PaymentsRequest.ChannelEnum.WEB);\\\\n\\\\nDefaultPaymentMethodDetails defaultPaymentMethodDetails = new DefaultPaymentMethodDetails();\\\\ndefaultPaymentMethodDetails.setType(\\\\&amp;quot;paybright\\\\&amp;quot;);\\\\npaymentsRequest.setPaymentMethod(defaultPaymentMethodDetails);\\\\n\\\\nName shopperName = new Name();\\\\nshopperName.setFirstName(\\\\&amp;quot;Simon\\\\&amp;quot;);\\\\nshopperName.setLastName(\\\\&amp;quot;Hopper\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setTelephoneNumber(\\\\&amp;quot;+16478491378\\\\&amp;quot;);\\\\npaymentsRequest.setShopperEmail(\\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;);\\\\npaymentsRequest.setDateOfBirth(\\\\&amp;quot;1970-07-10\\\\&amp;quot;);\\\\n\\\\n\\\\nAddress billingAddress = new Address();\\\\nbillingAddress.setStreet(\\\\&amp;quot;Richmond St W\\\\&amp;quot;);\\\\nbillingAddress.setHouseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;);\\\\nbillingAddress.setCity(\\\\&amp;quot;Toronto\\\\&amp;quot;);\\\\nbillingAddress.setPostalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\nbillingAddress.setStateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;);\\\\nbillingAddress.setCountry(\\\\&amp;quot;CA\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setBillingAddress(billingAddress);\\\\n\\\\nAddress deliveryAddress = new Address();\\\\n\\\\ndeliveryAddress.setStreet(\\\\&amp;quot;Richmond St W\\\\&amp;quot;);\\\\ndeliveryAddress.setHouseNumberOrName(\\\\&amp;quot;240\\\\&amp;quot;);\\\\ndeliveryAddress.setCity(\\\\&amp;quot;Toronto\\\\&amp;quot;);\\\\ndeliveryAddress.setPostalCode(\\\\&amp;quot;M5V 2C5\\\\&amp;quot;);\\\\ndeliveryAddress.setStateOrProvince(\\\\&amp;quot;ON\\\\&amp;quot;);\\\\ndeliveryAddress.setCountry(\\\\&amp;quot;CA\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setDeliveryAddress(deliveryAddress);\\\\npaymentsRequest.setReturnUrl(\\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;);\\\\n\\\\nList&amp;lt;LineItem&amp;gt; lineItems = new ArrayList&amp;lt;&amp;gt;();\\\\nlineItems.add(\\\\n        new LineItem()\\\\n                .quantity(1L)\\\\n                .amountExcludingTax(3310L)\\\\n                .description(\\\\&amp;quot;Shoes\\\\&amp;quot;)\\\\n                .amountIncludingTax(4000L)\\\\n                .taxCategory(\\\\&amp;quot;Low\\\\&amp;quot;)\\\\n);\\\\nlineItems.add(\\\\n        new LineItem()\\\\n                .quantity(2L)\\\\n                .amountExcludingTax(2480L)\\\\n                .description(\\\\&amp;quot;Socks\\\\&amp;quot;)\\\\n                .amountIncludingTax(3000L)\\\\n                .taxCategory(\\\\&amp;quot;Low\\\\&amp;quot;)\\\\n);\\\\nlineItems.add(\\\\n        new LineItem()\\\\n                .quantity(1L)\\\\n                .amountExcludingTax(1000L)\\\\n                .description(\\\\&amp;quot;Discount\\\\&amp;quot;)\\\\n                .amountIncludingTax(1000L)\\\\n                .taxCategory(\\\\&amp;quot;Low\\\\&amp;quot;)\\\\n);\\\\n\\\\npaymentsRequest.setLineItems(lineItems);\\\\n\\\\nPaymentsResponse paymentsResponse = checkout.payments(paymentsRequest);&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;\\\\\\\/\\\\\\\/ Set your X-API-KEY with the API key from the Customer Area.\\\\n$client = new \\\\\\\\Adyen\\\\\\\\Client();\\\\n$client-&amp;gt;setXApiKey(\\\\&amp;quot;ADYEN_API_KEY\\\\&amp;quot;);\\\\n$service = new \\\\\\\\Adyen\\\\\\\\Service\\\\\\\\Checkout($client);\\\\n\\\\n$params = [\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;en_CA\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot; =&amp;gt; [\\\\n       \\\\&amp;quot;currency\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;USD\\\\&amp;quot;,\\\\n       \\\\&amp;quot;value\\\\&amp;quot; =&amp;gt; 6000\\\\n  ],\\\\n  \\\\&amp;quot;shopperReference\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n  \\\\&amp;quot;reference\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n  \\\\&amp;quot;paymentMethod\\\\&amp;quot; =&amp;gt; [\\\\n     \\\\&amp;quot;type\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;paybright\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;shopperName\\\\&amp;quot; =&amp;gt; [\\\\n       \\\\&amp;quot;firstName\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n       \\\\&amp;quot;lastName\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot; =&amp;gt; [\\\\n        \\\\&amp;quot;city\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n        \\\\&amp;quot;country\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n        \\\\&amp;quot;houseNumberOrName\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;240\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n        \\\\&amp;quot;stateOrProvince\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n        \\\\&amp;quot;street\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot; =&amp;gt; [\\\\n        \\\\&amp;quot;city\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n        \\\\&amp;quot;country\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n        \\\\&amp;quot;houseNumberOrName\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;240\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n        \\\\&amp;quot;stateOrProvince\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n        \\\\&amp;quot;street\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot; =&amp;gt; [\\\\n     [\\\\n        \\\\&amp;quot;quantity\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;1\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountExcludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;3310\\\\&amp;quot;,\\\\n        \\\\&amp;quot;description\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountIncludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;4000\\\\&amp;quot;,\\\\n        \\\\&amp;quot;taxCategory\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Low\\\\&amp;quot;\\\\n     ],\\\\n     [\\\\n        \\\\&amp;quot;quantity\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;2\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountExcludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;2480\\\\&amp;quot;,\\\\n        \\\\&amp;quot;description\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountIncludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;3000\\\\&amp;quot;,\\\\n        \\\\&amp;quot;taxCategory\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Low\\\\&amp;quot;\\\\n     ],\\\\n     [\\\\n        \\\\&amp;quot;quantity\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;1\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountExcludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n        \\\\&amp;quot;description\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n        \\\\&amp;quot;amountIncludingTax\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n        \\\\&amp;quot;taxCategory\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;Low\\\\&amp;quot;\\\\n     ]\\\\n  ]\\\\n];\\\\n\\\\n$result = $service-&amp;gt;payments($params);\\\\n\\\\n\\\\\\\/\\\\\\\/ Check if further action is needed\\\\nif (array_key_exists(\\\\&amp;quot;action\\\\&amp;quot;, $result)){\\\\n   \\\\\\\/\\\\\\\/ Pass the action object to your frontend.\\\\n   \\\\\\\/\\\\\\\/ $result[\\\\&amp;quot;action\\\\&amp;quot;]\\\\n}\\\\nelse {\\\\n   \\\\\\\/\\\\\\\/ No further action needed, pass the resultCode to your front end\\\\n   \\\\\\\/\\\\\\\/ $result[&#039;resultCode&#039;]\\\\n}&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;var paymentsRequest = new Adyen.Model.Checkout.PaymentRequest\\\\n{\\\\n    MerchantAccount = \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n    CountryCode = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    Amount = new Adyen.Model.Checkout.Amount(\\\\&amp;quot;CAD\\\\&amp;quot;, 6000),\\\\n    ShopperReference = \\\\&amp;quot;YOUR_UNIQUE_SHOPPER_ID\\\\&amp;quot;,\\\\n    Reference = \\\\&amp;quot;YOUR_ORDER_NUMBER\\\\&amp;quot;,\\\\n    Channel = Adyen.Model.Checkout.PaymentRequest.ChannelEnum.Web,\\\\n    TelephoneNumber = \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n    ShopperEmail= \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n    ReturnUrl = \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n    DateOfBirth = new DateTime(1970, 07, 10),\\\\n    ShopperLocale = \\\\&amp;quot;en_CA\\\\&amp;quot;,\\\\n    LineItems = new List&amp;lt;LineItem&amp;gt;\\\\n    {\\\\n        new LineItem(amountIncludingTax: 4000, amountExcludingTax: 3310, quantity:1, description: \\\\&amp;quot;shoes\\\\&amp;quot;),\\\\n        new LineItem(amountIncludingTax: 3000, amountExcludingTax: 2480, quantity:2, description: \\\\&amp;quot;Socks\\\\&amp;quot;),\\\\n        new LineItem(amountIncludingTax: -1000, amountExcludingTax:-1000, quantity:1, description: \\\\&amp;quot;Discount\\\\&amp;quot;)\\\\n    },\\\\n    PaymentMethod = new DefaultPaymentMethodDetails\\\\n    {\\\\n        Type = \\\\&amp;quot;paybright\\\\&amp;quot;,\\\\n\\\\n        BillingAddress = new Adyen.Model.Checkout.Address(country: \\\\&amp;quot;CA\\\\&amp;quot;)\\\\n        {\\\\n            City = \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n            HouseNumberOrName = \\\\&amp;quot;240\\\\&amp;quot;,\\\\n            PostalCode = \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n            StateOrProvince = \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n            Street = \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n        },\\\\n        DeliveryAddress = new Adyen.Model.Checkout.Address\\\\n        {\\\\n            City = \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n            HouseNumberOrName = \\\\&amp;quot;240\\\\&amp;quot;,\\\\n            PostalCode = \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n            StateOrProvince = \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n            Street = \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n        },\\\\n    },\\\\n    ShopperName = new Adyen.Model.Checkout.Name\\\\n    {\\\\n        FirstName = \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n        LastName = \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n    }\\\\n};&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 v16.1.0\\\\n\\\\\\\/\\\\\\\/ Require the parts of the module you want to use\\\\nconst { Client, CheckoutAPI } = require(&#039;@adyen\\\\\\\/api-library&#039;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Initialize the client object\\\\nconst client = new Client({apiKey: \\\\&amp;quot;YOUR_X_API_KEY\\\\&amp;quot;, environment: \\\\&amp;quot;TEST\\\\&amp;quot;});\\\\n\\\\n\\\\\\\/\\\\\\\/ Create the request object\\\\nconst paymentRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  countryCode: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  amount: {\\\\n    currency: \\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n    value: 6000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;en_CA\\\\&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;paybright\\\\&amp;quot;\\\\n  },\\\\n  shopperName: {\\\\n    firstName: \\\\&amp;quot;Simon\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;Hopper\\\\&amp;quot;\\\\n  },\\\\n  dateOfBirth: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  returnUrl: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  lineItems: [ {\\\\n    description: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;4000\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;3310\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    description: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;3000\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;2480\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    description: \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n    amountExcludingTax: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    amountIncludingTax: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    quantity: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    taxCategory: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Make 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;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.0.0\\\\nimport Adyen\\\\n\\\\nadyen = Adyen.Adyen()\\\\nadyen.client.xapikey = \\\\&amp;quot;YOUR_X_API_KEY\\\\&amp;quot;\\\\nadyen.client.platform = \\\\&amp;quot;test\\\\&amp;quot; # The environment to use library in.\\\\n\\\\njson_request = {\\\\n  \\\\&amp;quot;merchantAccount\\\\&amp;quot;: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  \\\\&amp;quot;countryCode\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;CAD\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 6000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;en_CA\\\\&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;paybright\\\\&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;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;1970-07-10\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;+16478491378\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;s.hopper@example.com\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;Toronto\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;240\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;M5V 2C5\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;ON\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;Richmond St W\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\\\&amp;quot;,\\\\n  \\\\&amp;quot;lineItems\\\\&amp;quot;: [ {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Shoes\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;4000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;3310\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Socks\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;2\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;3000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;2480\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  }, {\\\\n    \\\\&amp;quot;description\\\\&amp;quot;: \\\\&amp;quot;Discount\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountExcludingTax\\\\&amp;quot;: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;amountIncludingTax\\\\&amp;quot;: \\\\&amp;quot;-1000\\\\&amp;quot;,\\\\n    \\\\&amp;quot;quantity\\\\&amp;quot;: \\\\&amp;quot;1\\\\&amp;quot;,\\\\n    \\\\&amp;quot;taxCategory\\\\&amp;quot;: \\\\&amp;quot;Low\\\\&amp;quot;\\\\n  } ]\\\\n}\\\\n\\\\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.1.0\\\\nrequire \\\\&amp;quot;adyen-ruby-api-library\\\\&amp;quot;\\\\n\\\\nadyen = Adyen::Client.new\\\\nadyen.api_key = &#039;YOUR_X_API_KEY&#039;\\\\nadyen.env = :test # Set to \\\\&amp;quot;live\\\\&amp;quot; for live environment\\\\n\\\\nrequest_body = {\\\\n  :merchantAccount =&amp;gt; &#039;YOUR_MERCHANT_ACCOUNT&#039;,\\\\n  :countryCode =&amp;gt; &#039;CA&#039;,\\\\n  :amount =&amp;gt; {\\\\n    :currency =&amp;gt; &#039;CAD&#039;,\\\\n    :value =&amp;gt; 6000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;en_CA&#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;paybright&#039;\\\\n  },\\\\n  :shopperName =&amp;gt; {\\\\n    :firstName =&amp;gt; &#039;Simon&#039;,\\\\n    :lastName =&amp;gt; &#039;Hopper&#039;\\\\n  },\\\\n  :dateOfBirth =&amp;gt; &#039;1970-07-10&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;+16478491378&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;s.hopper@example.com&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Toronto&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;240&#039;,\\\\n    :postalCode =&amp;gt; &#039;M5V 2C5&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;ON&#039;,\\\\n    :street =&amp;gt; &#039;Richmond St W&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;Toronto&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;240&#039;,\\\\n    :postalCode =&amp;gt; &#039;M5V 2C5&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;ON&#039;,\\\\n    :street =&amp;gt; &#039;Richmond St W&#039;\\\\n  },\\\\n  :returnUrl =&amp;gt; &#039;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..&#039;,\\\\n  :lineItems =&amp;gt; [ {\\\\n    :description =&amp;gt; &#039;Shoes&#039;,\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;4000&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;3310&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  }, {\\\\n    :description =&amp;gt; &#039;Socks&#039;,\\\\n    :quantity =&amp;gt; &#039;2&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;3000&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;2480&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  }, {\\\\n    :description =&amp;gt; &#039;Discount&#039;,\\\\n    :amountExcludingTax =&amp;gt; &#039;-1000&#039;,\\\\n    :amountIncludingTax =&amp;gt; &#039;-1000&#039;,\\\\n    :quantity =&amp;gt; &#039;1&#039;,\\\\n    :taxCategory =&amp;gt; &#039;Low&#039;\\\\n  } ]\\\\n}\\\\n\\\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { &#039;Idempotency-Key&#039; =&amp;gt; &#039;UUID&#039; })&amp;quot;}]\\&quot; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;advanced&quot;,&quot;oldTabId&quot;:&quot;advanced-api_2&quot;,&quot;relation&quot;:&quot;advanced&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2>Component configuration<\/h2>\n<h3>Step 1: Create a DOM element<\/h3>\n<p>Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:<\/p>\n<pre><code class=\"language-html\"> &lt;div id=\"paybright-container\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<h3>Step 2: Create an instance of the Component<\/h3>\n<h4>v6.0.0 or later<\/h4>\n<p>Create an instance of the Component, passing:<\/p>\n<ul>\n<li>Your instance of <code>AdyenCheckout<\/code>.<\/li>\n<\/ul>\n<pre><code class=\"language-js\">const paybright = new Redirect(checkout, { type: 'paybright' }).mount('#paybright-container');<\/code><\/pre>\n<div class=\"accordion-shortcode adl-accordion adl-accordion--max-height-transition\" data-expand=\"true\" data-ignore=\"anchorjs-link\">\n    \n    <div class=\"adl-accordion__item\" style=\"\">\n        <div tabindex=\"0\" role=\"item\" aria-expanded=\"false\" class=\"adl-accordion__header\">\n            <i class=\"adl-accordion__toggle adl-icon-chevron-down\"><\/i>\n            <div class=\"adl-accordion__title-wrapper\" data-accordion=\"#v5-x-x-or-earlier\">\n                                    <h4 class=\"adl-accordion__title\">v5.x.x or earlier<\/h4>\n                            <\/div>\n        <\/div>\n        <div role=\"region\" class=\"adl-accordion__content\">\n            \n<p>Use the <code>create<\/code> method of your <code>AdyenCheckout<\/code> instance, in this case <code>checkout<\/code>, to create the Component:<\/p>\n<pre><code class=\"language-js\">const paybrightComponent = checkout.create('paybright').mount('#paybright-container');<\/code><\/pre>\n\n        <\/div>\n    <\/div>\n<\/div>\n\n<h2 id=\"capture-the-payment\">Capture the payment<\/h2>\n<p>By default, all PayBright payments are\u00a0<a href=\"\/pt\/online-payments\/capture\">captured automatically<\/a> after authorisation.<\/p>\n<p>If you prefer to capture the payment after the goods have been sent, or when you want to partially capture payments, you need to set up a <a href=\"\/pt\/online-payments\/capture#delayed-automatic-capture\">capture delay<\/a> or use <a href=\"\/pt\/online-payments\/capture#manual-capture\">manual capture<\/a>.<\/p>\n<p>When you capture the payment, the shopper is charged for the first installment.<\/p>\n<h3 id=\"partial-captures\">Partial captures<\/h3>\n<div class=\"notices blue\">\n<p>Partial captures are not available if you enabled <a href=\"\/pt\/online-payments\/capture\">automatic capture<\/a> in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>.<\/p>\n<\/div>\n<p>To <a href=\"\/pt\/online-payments\/capture\">partially capture<\/a> a PayBright 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>: <div data-component-wrapper=\"tag\">\n    <tag :variant=&quot;success&quot;>\n        Optional\n    <\/tag>\n<\/div>\n 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<\/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 original payment request.<\/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\\\":\\\"CAD\\\",\\n      \\\"value\\\":\\\"4500\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"2\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line1.description\\\":\\\"Shoes\\\",\\n      \\\"openinvoicedata.line1.itemAmount\\\":\\\"3310\\\",\\n      \\\"openinvoicedata.line1.itemVatAmount\\\":\\\"690\\\",\\n      \\\"openinvoicedata.line1.numberOfItems\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line2.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line2.description\\\":\\\"Socks\\\",\\n      \\\"openinvoicedata.line2.itemAmount\\\":\\\"1240\\\",\\n      \\\"openinvoicedata.line2.itemVatAmount\\\":\\\"260\\\",\\n      \\\"openinvoicedata.line2.numberOfItems\\\":\\\"1\\\",\\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 over after partially capturing a payment is automatically cancelled. When your account is enabled for <em>multiple<\/em> partial captures, the unclaimed amount after an initial capture is not automatically cancelled.<\/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.\u00a0<\/p>\n<\/div><\/div>\n<h2 id=\"refunds\">Refunds<\/h2>\n<p>If\u00a0a payment has not yet been captured, you can\u00a0<a href=\"\/pt\/online-payments\/cancel\">cancel<\/a> it. If the PayBright 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 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.openinvoicedata<\/code>: <div data-component-wrapper=\"tag\">\n    <tag :variant=&quot;success&quot;>\n        Optional\n    <\/tag>\n<\/div>\n Price and product information about the returned items.<\/li>\n<\/ul>\n<p>Providing <code>additionalData.openinvoicedata<\/code> is optional, and although the field names are different, the information 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<\/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 original payment request.<\/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\\\":\\\"CAD\\\",\\n      \\\"value\\\":\\\"4000\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line1.description\\\":\\\"Shoes\\\",\\n      \\\"openinvoicedata.line1.itemAmount\\\":\\\"3310\\\",\\n      \\\"openinvoicedata.line1.itemVatAmount\\\":\\\"690\\\",\\n      \\\"openinvoicedata.line1.numberOfItems\\\":\\\"1\\\"\\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>Test and go live<\/h2>\n<p>To test PayBright payments, use the test details provided in the <a href=\"https:\/\/developer.paybright.com\/docs\/testing-resources-completed-pending-failed\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">PayBright developer documentation<\/a>.<\/p>\n<p>You can check the status of 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<p>Before you can accept live PayBright payments, you need to <a href=\"\/pt\/payment-methods\/add-payment-methods\">submit a request for PayBright<\/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>.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright\/web-component","articleFields":{"description":"Add PayBright to an existing Components integration.","parameters":{"integration":"Components","platform":"Web","integration_guide_url":"build-your-integration\/sessions-flow?platform=Web&integration=Components","component_name":"the Component","component_name_capitalized":"The Component","payment_method":"PayBright","payment_method_type":"paybright","component_js_const":"paybright","component_class":"Redirect","country_code":"CA","currency_code":"CAD","city":"Toronto","housenumberorname":"240","postalcode":"M5V 2C5","street":"Richmond St W","stateorprovince":"ON","shopper_email":"s.hopper@example.com","shopper_name_first":"Simon","shopper_name_last":"Hopper","shopper_locale":"en_CA","date_of_birth":"1970-07-10","telephone_number":"+16478491378","return_url":"https:\/\/your-company.example.com\/checkout?shopperOrder=12xy.."}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright\/web-component","title":"PayBright Component","content":"\nPayBright has been acquired by Affirm. Adyen will not accept new PayBright integrations.\n\nThis page explains how to add PayBright to your existing Web Components integration.\nWhen making an PayBright payment, you also need to:\n\nCollect shopper details, and specify these in your \/sessions or \/payments request.\nPayBright uses these for risk checks.\nProvide information about the purchased items by specifying lineItems.\n\nRequirements\nSelect the server-side flow that your integration uses:\n\n\n    \n        \n        \n    \n\n\nAPI reference\nSelect which endpoint you are using:\n\n\n    \n        \n        \n    \n\n\nComponent configuration\nStep 1: Create a DOM element\nCreate a DOM element on your checkout page, placing it where you want the payment method form to be rendered:\n &lt;div id=\"paybright-container\"&gt;&lt;\/div&gt;\nStep 2: Create an instance of the Component\nv6.0.0 or later\nCreate an instance of the Component, passing:\n\nYour instance of AdyenCheckout.\n\nconst paybright = new Redirect(checkout, { type: 'paybright' }).mount('#paybright-container');\n\n    \n    \n        \n            \n            \n                                    v5.x.x or earlier\n                            \n        \n        \n            \nUse the create method of your AdyenCheckout instance, in this case checkout, to create the Component:\nconst paybrightComponent = checkout.create('paybright').mount('#paybright-container');\n\n        \n    \n\n\nCapture the payment\nBy default, all PayBright payments are\u00a0captured automatically after authorisation.\nIf you prefer to capture the payment after the goods have been sent, or when you want to partially capture payments, you need to set up a capture delay or use manual capture.\nWhen you capture the payment, the shopper is charged for the first installment.\nPartial captures\n\nPartial captures are not available if you enabled automatic capture in your Customer Area.\n\nTo partially capture a PayBright payment, specify in your\u00a0\/capture request:\n\nmodificationAmount: The amount that the shopper should pay.\u00a0\nadditionalData.openinvoicedata: \n    \n        Optional\n    \n\n 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\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 over after partially capturing a payment is automatically cancelled. When your account is enabled for multiple partial captures, the unclaimed amount after an initial capture is not automatically cancelled.\n\nTo set up multiple partial captures, contact our Support Team.\u00a0Multiple partial captures will create\u00a0a new invoice for each capture.\u00a0\n\nRefunds\nIf\u00a0a payment has not yet been captured, you can\u00a0cancel it. If the PayBright 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 payment, specify in your  \/payments\/{paymentPspReference}\/refunds request:\n\nmodificationAmount: The amount to be refunded to the shopper.\nadditionalData.openinvoicedata: \n    \n        Optional\n    \n\n Price and product information about the returned items.\n\nProviding additionalData.openinvoicedata is optional, and although the field names are different, the information 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\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\nTo test PayBright payments, use the test details provided in the PayBright developer documentation.\nYou can check the status of test payments in your\u00a0Customer Area\u00a0&gt;\u00a0Transactions\u00a0&gt;\u00a0Payments.\nBefore you can accept live PayBright payments, you need to submit a request for PayBright in your live Customer Area.","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"PayBright","lvl3":"PayBright Component"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright","lvl3":"\/pt\/payment-methods\/paybright\/web-component"},"levels":4,"category":"Payment method","category_color":"green","tags":["PayBright","Component"]}}
