{"title":"PayBright Redirect 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 iOS Components integration.<\/p>\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=\"tabaJL16\">\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=iOS&amp;amp;integration=Components\\&quot;&gt;iOS 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=iOS&amp;amp;integration=Components\\&quot;&gt;iOS 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>API reference<\/h2>\n<p>Select which endpoint you are using:<\/p>\n\n<div id=\"tabmvJjE\">\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=iOS&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;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;:6000\\\\n   },\\\\n   \\\\&amp;quot;shopperLocale\\\\&amp;quot;:\\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;lastName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;dateOfBirth\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;telephoneNumber\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperEmail\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;{hint:state.data.billingAddress from onSubmit}billingAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;{hint:state.data.deliveryAddress from onSubmit}deliveryAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;returnUrl\\\\&amp;quot;:\\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;)\\\\n  .lastName(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\\\n  .country(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  .stateOrProvince(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\nBillingAddress billingAddress = new BillingAddress()\\\\n  .country(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  .stateOrProvince(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .city(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .houseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .street(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .postalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest()\\\\n  .amount(amount)\\\\n  .telephoneNumber(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  .shopperEmail(\\\\&amp;quot;\\\\&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;\\\\&amp;quot;)\\\\n  .billingAddress(billingAddress)\\\\n  .returnUrl(\\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;)\\\\n  -&amp;gt;setLastName(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\n$deliveryAddress = new DeliveryAddress();\\\\n$deliveryAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  -&amp;gt;setStateOrProvince(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\n$billingAddress = new BillingAddress();\\\\n$billingAddress\\\\n  -&amp;gt;setCountry(\\\\&amp;quot;CA\\\\&amp;quot;)\\\\n  -&amp;gt;setStateOrProvince(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setCity(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setHouseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setStreet(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setPostalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\n$createCheckoutSessionRequest = new CreateCheckoutSessionRequest();\\\\n$createCheckoutSessionRequest\\\\n  -&amp;gt;setAmount($amount)\\\\n  -&amp;gt;setTelephoneNumber(\\\\&amp;quot;\\\\&amp;quot;)\\\\n  -&amp;gt;setShopperEmail(\\\\&amp;quot;\\\\&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;\\\\&amp;quot;)\\\\n  -&amp;gt;setBillingAddress($billingAddress)\\\\n  -&amp;gt;setReturnUrl(\\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;,\\\\n  LastName = \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\\\n{\\\\n  Country = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nBillingAddress billingAddress = new BillingAddress\\\\n{\\\\n  Country = \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  City = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  HouseNumberOrName = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  Street = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  PostalCode = \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nCreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest\\\\n{\\\\n  Amount = amount,\\\\n  TelephoneNumber = \\\\&amp;quot;\\\\&amp;quot;,\\\\n  ShopperEmail = \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n  BillingAddress = billingAddress,\\\\n  ReturnUrl = \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&amp;quot;,\\\\n    value: 6000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  dateOfBirth: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  returnUrl: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;,\\\\n  LastName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n}\\\\n\\\\ndeliveryAddress := checkout.DeliveryAddress{\\\\n  Country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince: common.PtrString(\\\\&amp;quot;\\\\&amp;quot;),\\\\n  City: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n}\\\\n\\\\nbillingAddress := checkout.BillingAddress{\\\\n  Country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  StateOrProvince: common.PtrString(\\\\&amp;quot;\\\\&amp;quot;),\\\\n  City: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  HouseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  Street: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  PostalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n}\\\\n\\\\ncreateCheckoutSessionRequest := checkout.CreateCheckoutSessionRequest{\\\\n  Amount: amount,\\\\n  TelephoneNumber: common.PtrString(\\\\&amp;quot;\\\\&amp;quot;),\\\\n  ShopperEmail: common.PtrString(\\\\&amp;quot;\\\\&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;\\\\&amp;quot;),\\\\n  BillingAddress: &amp;amp;billingAddress,\\\\n  ReturnUrl: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 6000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;&#039;,\\\\n    :value =&amp;gt; 6000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;&#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;&#039;,\\\\n    :lastName =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :dateOfBirth =&amp;gt; &#039;&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;&#039;,\\\\n    :postalCode =&amp;gt; &#039;&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;&#039;,\\\\n    :street =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;&#039;,\\\\n    :postalCode =&amp;gt; &#039;&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;&#039;,\\\\n    :street =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :returnUrl =&amp;gt; &#039;my-app:\\\/\\\/adyen&#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;\\\\&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;\\\\&amp;quot;,\\\\n  lastName: \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\\\n  country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nconst billingAddress: Types.checkout.BillingAddress = {\\\\n  country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n  stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  street: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  postalCode: \\\\&amp;quot;\\\\&amp;quot;\\\\n};\\\\n\\\\nconst createCheckoutSessionRequest: Types.checkout.CreateCheckoutSessionRequest = {\\\\n  amount: amount,\\\\n  telephoneNumber: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n  billingAddress: billingAddress,\\\\n  returnUrl: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;value\\\\&amp;quot;:6000\\\\n   },\\\\n   \\\\&amp;quot;shopperLocale\\\\&amp;quot;:\\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;lastName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;dateOfBirth\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;telephoneNumber\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;shopperEmail\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n   \\\\&amp;quot;{hint:state.data.billingAddress from onSubmit}billingAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;{hint:state.data.deliveryAddress from onSubmit}deliveryAddress{\\\\\\\/hint}\\\\&amp;quot;:{\\\\n      \\\\&amp;quot;city\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;country\\\\&amp;quot;:\\\\&amp;quot;CA\\\\&amp;quot;,\\\\n      \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;postalCode\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;stateOrProvince\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;,\\\\n      \\\\&amp;quot;street\\\\&amp;quot;:\\\\&amp;quot;\\\\&amp;quot;\\\\n   },\\\\n   \\\\&amp;quot;returnUrl\\\\&amp;quot;:\\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;);\\\\nshopperName.setLastName(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setTelephoneNumber(\\\\&amp;quot;\\\\&amp;quot;);\\\\npaymentsRequest.setShopperEmail(\\\\&amp;quot;\\\\&amp;quot;);\\\\npaymentsRequest.setDateOfBirth(\\\\&amp;quot;\\\\&amp;quot;);\\\\n\\\\n\\\\nAddress billingAddress = new Address();\\\\nbillingAddress.setStreet(\\\\&amp;quot;\\\\&amp;quot;);\\\\nbillingAddress.setHouseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;);\\\\nbillingAddress.setCity(\\\\&amp;quot;\\\\&amp;quot;);\\\\nbillingAddress.setPostalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\nbillingAddress.setStateOrProvince(\\\\&amp;quot;\\\\&amp;quot;);\\\\nbillingAddress.setCountry(\\\\&amp;quot;CA\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setBillingAddress(billingAddress);\\\\n\\\\nAddress deliveryAddress = new Address();\\\\n\\\\ndeliveryAddress.setStreet(\\\\&amp;quot;\\\\&amp;quot;);\\\\ndeliveryAddress.setHouseNumberOrName(\\\\&amp;quot;\\\\&amp;quot;);\\\\ndeliveryAddress.setCity(\\\\&amp;quot;\\\\&amp;quot;);\\\\ndeliveryAddress.setPostalCode(\\\\&amp;quot;\\\\&amp;quot;);\\\\ndeliveryAddress.setStateOrProvince(\\\\&amp;quot;\\\\&amp;quot;);\\\\ndeliveryAddress.setCountry(\\\\&amp;quot;CA\\\\&amp;quot;);\\\\n\\\\npaymentsRequest.setDeliveryAddress(deliveryAddress);\\\\npaymentsRequest.setReturnUrl(\\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;,\\\\n       \\\\&amp;quot;lastName\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot; =&amp;gt; [\\\\n        \\\\&amp;quot;city\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;stateOrProvince\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;street\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot; =&amp;gt; [\\\\n        \\\\&amp;quot;city\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;postalCode\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;stateOrProvince\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;,\\\\n        \\\\&amp;quot;street\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;\\\\&amp;quot;\\\\n  ],\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot; =&amp;gt; \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&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;\\\\&amp;quot;,\\\\n    ShopperEmail= \\\\&amp;quot;\\\\&amp;quot;,\\\\n    ReturnUrl = \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&amp;quot;,\\\\n    DateOfBirth = new DateTime(1970, 07, 10),\\\\n    ShopperLocale = \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n            HouseNumberOrName = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            PostalCode = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            StateOrProvince = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            Street = \\\\&amp;quot;\\\\&amp;quot;\\\\n        },\\\\n        DeliveryAddress = new Adyen.Model.Checkout.Address\\\\n        {\\\\n            City = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            HouseNumberOrName = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            PostalCode = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            StateOrProvince = \\\\&amp;quot;\\\\&amp;quot;,\\\\n            Street = \\\\&amp;quot;\\\\&amp;quot;\\\\n        },\\\\n    },\\\\n    ShopperName = new Adyen.Model.Checkout.Name\\\\n    {\\\\n        FirstName = \\\\&amp;quot;\\\\&amp;quot;,\\\\n        LastName = \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n    value: 6000\\\\n  },\\\\n  shopperLocale: \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n    lastName: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  dateOfBirth: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  telephoneNumber: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  shopperEmail: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  billingAddress: {\\\\n    city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  deliveryAddress: {\\\\n    city: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    country: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    houseNumberOrName: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    postalCode: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    stateOrProvince: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    street: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  returnUrl: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;value\\\\&amp;quot;: 6000\\\\n  },\\\\n  \\\\&amp;quot;shopperLocale\\\\&amp;quot;: \\\\&amp;quot;\\\\&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;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;lastName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;dateOfBirth\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;telephoneNumber\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;shopperEmail\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n  \\\\&amp;quot;billingAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;deliveryAddress\\\\&amp;quot;: {\\\\n    \\\\&amp;quot;city\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;country\\\\&amp;quot;: \\\\&amp;quot;CA\\\\&amp;quot;,\\\\n    \\\\&amp;quot;houseNumberOrName\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;postalCode\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;stateOrProvince\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;,\\\\n    \\\\&amp;quot;street\\\\&amp;quot;: \\\\&amp;quot;\\\\&amp;quot;\\\\n  },\\\\n  \\\\&amp;quot;returnUrl\\\\&amp;quot;: \\\\&amp;quot;my-app:\\\/\\\/adyen\\\\&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;&#039;,\\\\n    :value =&amp;gt; 6000\\\\n  },\\\\n  :shopperLocale =&amp;gt; &#039;&#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;&#039;,\\\\n    :lastName =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :dateOfBirth =&amp;gt; &#039;&#039;,\\\\n  :telephoneNumber =&amp;gt; &#039;&#039;,\\\\n  :shopperEmail =&amp;gt; &#039;&#039;,\\\\n  :billingAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;&#039;,\\\\n    :postalCode =&amp;gt; &#039;&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;&#039;,\\\\n    :street =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :deliveryAddress =&amp;gt; {\\\\n    :city =&amp;gt; &#039;&#039;,\\\\n    :country =&amp;gt; &#039;CA&#039;,\\\\n    :houseNumberOrName =&amp;gt; &#039;&#039;,\\\\n    :postalCode =&amp;gt; &#039;&#039;,\\\\n    :stateOrProvince =&amp;gt; &#039;&#039;,\\\\n    :street =&amp;gt; &#039;&#039;\\\\n  },\\\\n  :returnUrl =&amp;gt; &#039;my-app:\\\/\\\/adyen&#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>v5.0.0 or later<\/h3>\n<p>If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the PayBright Component:<\/p>\n\n<div id=\"tab9PJr3\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;\\\/sessions&quot;,&quot;content&quot;:&quot;\\n  &lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Component configuration&#039;\\&quot; :id=\\&quot;&#039;instant_component_sessions&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;swift\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;let paymentMethods = session.sessionContext.paymentMethods\\\\n\\\\\\\/\\\\\\\/ Check that the payment method is supported before showing the Component.\\\\nguard let paymentMethod = paymentMethods.paymentMethod(ofType: .other(\\\\\\&quot;paybright\\\\\\&quot;)) else { return }\\\\nlet component = InstantPaymentComponent(paymentMethod: paymentMethod,\\\\n                                        context: context,\\\\n                                        order: nil)\\\\nself.currentComponent = component\\\\n\\\\\\\/\\\\\\\/ Set the session as the delegate.\\\\ncomponent.delegate = session\\\\ncomponent.initiatePayment()\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n    &quot;,&quot;altTitle&quot;:&quot;sessions-5-config&quot;,&quot;oldTabId&quot;:&quot;sessions-5-config_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Advanced flow&quot;,&quot;content&quot;:&quot;\\n  &lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Component configuration&#039;\\&quot; :id=\\&quot;&#039;instant_component_advanced&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;swift\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;\\\\\\\/\\\\\\\/ Check that the payment method is supported before showing the Component.\\\\nguard let paymentMethod = paymentMethods.paymentMethod(ofType: .other(\\\\\\&quot;paybright\\\\\\&quot;)) else { return }\\\\nlet component = InstantPaymentComponent(paymentMethod: paymentMethod,\\\\n                                        context: context,\\\\n                                        order: nil)\\\\nself.currentComponent = component\\\\n\\\\\\\/\\\\\\\/ Set the component as the delegate.\\\\ncomponent.delegate = self\\\\ncomponent.initiatePayment()\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n    &quot;,&quot;altTitle&quot;:&quot;advanced-5-config&quot;,&quot;oldTabId&quot;:&quot;advanced-5-config_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h3>v4.x.x<\/h3>\n<p>If your integration uses an earlier version of iOS Components:<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Component configuration'\" :id=\"''\" :code-data='[{\"language\":\"swift\",\"tabTitle\":\"\",\"content\":\"\\\/\\\/ Check that the payment method is supported before showing the Component.\\nguard let paymentMethod = paymentMethods.paymentMethod(ofType: PayBrightPaymentMethod.self) else { return }\\nlet style = FormComponentStyle()\\nlet component = PayBrightComponent(paymentMethod: paymentMethod,\\n                                apiContext: context,\\n                                style: style)\\npresent(component)\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>There are no configuration steps specific to PayBright required for Components.<\/p>\n<h2>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=\"[{&quot;language&quot;:&quot;json&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;{\\n   \\&quot;originalReference\\&quot;:\\&quot;COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\&quot;,\\n   \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;modificationAmount\\&quot;:{\\n      \\&quot;currency\\&quot;:\\&quot;\\&quot;,\\n      \\&quot;value\\&quot;:\\&quot;4500\\&quot;\\n   },\\n   \\&quot;additionalData\\&quot;:{\\n      \\&quot;openinvoicedata.numberOfLines\\&quot;:\\&quot;2\\&quot;,\\n      \\&quot;openinvoicedata.line1.currencyCode\\&quot;:\\&quot;\\&quot;,\\n      \\&quot;openinvoicedata.line1.description\\&quot;:\\&quot;Shoes\\&quot;,\\n      \\&quot;openinvoicedata.line1.itemAmount\\&quot;:\\&quot;3310\\&quot;,\\n      \\&quot;openinvoicedata.line1.itemVatAmount\\&quot;:\\&quot;690\\&quot;,\\n      \\&quot;openinvoicedata.line1.numberOfItems\\&quot;:\\&quot;1\\&quot;,\\n      \\&quot;openinvoicedata.line2.currencyCode\\&quot;:\\&quot;\\&quot;,\\n      \\&quot;openinvoicedata.line2.description\\&quot;:\\&quot;Socks\\&quot;,\\n      \\&quot;openinvoicedata.line2.itemAmount\\&quot;:\\&quot;1240\\&quot;,\\n      \\&quot;openinvoicedata.line2.itemVatAmount\\&quot;:\\&quot;260\\&quot;,\\n      \\&quot;openinvoicedata.line2.numberOfItems\\&quot;:\\&quot;1\\&quot;,\\n   },\\n   \\&quot;reference\\&quot;:\\&quot;YOUR_CAPTURE_REFERENCE\\&quot;\\n}&quot;}]\" :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>Refunds and cancellations<\/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=\"[{&quot;language&quot;:&quot;json&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;{\\n   \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;originalReference\\&quot;:\\&quot;COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\&quot;,\\n   \\&quot;modificationAmount\\&quot;:{\\n      \\&quot;currency\\&quot;:\\&quot;\\&quot;,\\n      \\&quot;value\\&quot;:\\&quot;4000\\&quot;\\n   },\\n   \\&quot;additionalData\\&quot;:{\\n      \\&quot;openinvoicedata.numberOfLines\\&quot;:\\&quot;1\\&quot;,\\n      \\&quot;openinvoicedata.line1.currencyCode\\&quot;:\\&quot;\\&quot;,\\n      \\&quot;openinvoicedata.line1.description\\&quot;:\\&quot;Shoes\\&quot;,\\n      \\&quot;openinvoicedata.line1.itemAmount\\&quot;:\\&quot;3310\\&quot;,\\n      \\&quot;openinvoicedata.line1.itemVatAmount\\&quot;:\\&quot;690\\&quot;,\\n      \\&quot;openinvoicedata.line1.numberOfItems\\&quot;:\\&quot;1\\&quot;\\n   },\\n   \\&quot;reference\\&quot;:\\&quot;YOUR_REFUND_REFERENCE\\&quot;\\n}&quot;}]\" :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>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/build-your-integration\/sessions-flow?platform=iOS&amp;integration=Components\"\n                        target=\"_self\"\n                        >\n                    iOS Components integration guide\n                <\/a><\/li><li><a href=\"\/development-resources\/webhooks\"\n                        target=\"_self\"\n                        >\n                    Webhooks\n                <\/a><\/li><li><a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/CheckoutService\/latest\/overview\"\n                        target=\"_blank\"\n                         class=\"external\">\n                    API Explorer\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright\/ios-component","articleFields":{"description":"Add PayBright to your existing iOS Components integration.","parameters":{"payment_method":"PayBright","country_code":"CA","currency":"CAD","payment_method_type":"paybright","return_url":"my-app:\/\/adyen","version":"3.4.0","integration":"Components","platform":"iOS","integration_guide_url":"build-your-integration\/sessions-flow?platform=iOS&integration=Components","component_name":"the PayBright Component","component_js_const":"payBright","ios_config_component_type":"InstantPaymentComponent","ios_config_payment_method":"PayBright","ios_config_component_name":"PayBright"},"feedback_component":true},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright\/ios-component","title":"PayBright Redirect 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 iOS Components integration.\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\nv5.0.0 or later\nIf your integration uses iOS Components v5.0.0 or later, configure and create an instance of the PayBright Component:\n\n\n    \n        \n        \n    \n\n\nv4.x.x\nIf your integration uses an earlier version of iOS Components:\n\n    \n\nThere are no configuration steps specific to PayBright required for Components.\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 and cancellations\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.\nSee also\n\n\n                    iOS Components integration guide\n                \n                    Webhooks\n                \n                    API Explorer\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"PayBright","lvl3":"PayBright Redirect Component"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright","lvl3":"\/pt\/payment-methods\/paybright\/ios-component"},"levels":4,"category":"Payment method","category_color":"green","tags":["PayBright","Redirect","Component"]},"articleFiles":{"paybright-ios-component-payments.js":"<p alt=\"\">paybright-ios-component-payments.js<\/p>"}}
