{"title":"PayBright for API only","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>Accept PayBright payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.<\/p>\n<p>When making an PayBright payment, you also need to:<\/p>\n<ol>\n<li>Collect shopper details, and specify these <a href=\"#make-a-payment\">in your payment request<\/a>.\nPayBright uses these for risk checks.<\/li>\n<li>Provide information about the purchased items by specifying <code>lineItems<\/code> <a href=\"#make-a-payment\">in your payment request<\/a>.<\/li>\n<li><a href=\"#handle-the-redirect\">Handle the redirect result<\/a> after the shopper returns to your website.<\/li>\n<\/ol>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have built an <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow?platform=Web&amp;integration=API%20only\">API-only integration<\/a>. <\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin, <a href=\"\/pt\/payment-methods\/add-payment-methods\">add PayBright in your test Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Build your payment form for PayBright<\/h2>\n<p>If you are using  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> to show which payment methods are available to the shopper,<br \/>\nspecify the following combinations of  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a> and  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a> in your request:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Country\/region<\/th>\n<th style=\"text-align: left;\"><code>countryCode<\/code><\/th>\n<th style=\"text-align: left;\"><code>amount.currency<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">Canada<\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>CA<\/strong><\/span><\/td>\n<td style=\"text-align: left;\"><span translate=\"no\"><strong>CAD<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"notices green\">\n<p>We provide a PayBright logo which you can use on your payment form. For more information, refer to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#downloading-logos\">Downloading logos<\/a>.<\/p>\n<\/div>\n<p>To perform risk checks, PayBright requires you to collect the following shopper details:<\/p>\n<ul>\n<li>Full name<\/li>\n<li>Date of birth<\/li>\n<li>Email address<\/li>\n<li>Phone number<\/li>\n<li>Billing address and delivery address.<\/li>\n<\/ul>\n<h2 id=\"make-a-payment\">Make a payment<\/h2>\n<p>Make a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request from your server, specifying:<\/p>\n<ul>\n<li><code>paymentMethod<\/code>: <strong>paybright<\/strong><\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperName\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperName<\/a>&#58;\u00a0The shopper's full name.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-dateOfBirth\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">dateOfBirth<\/a>&#58; The shopper's date of birth.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-shopperEmail\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperEmail<\/a>&#58; The shopper's email address.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-telephoneNumber\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">telephoneNumber<\/a>&#58; The shopper's phone number.<\/li>\n<li><a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/CheckoutService\/latest\/payments__reqParam_shopperLocale\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shopperLocale<\/a><div data-component-wrapper=\"tag\">\n    <tag :variant=&quot;success&quot;>\n        Optional\n    <\/tag>\n<\/div>\n: A combination of language code and country code to define which language should be used in the PayBright checkout page.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-countryCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a>&#58; The shopper's country. For example, <code>CA<\/code>.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-billingAddress\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">billingAddress<\/a>&#58;\u00a0The postal address to be included on the invoice.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-deliveryAddress\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">deliveryAddress<\/a>&#58;\u00a0The postal address where the purchased items will be shipped.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-lineItems\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">lineItems<\/a>&#58; Price and product information about the purchased items.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-returnUrl\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">returnUrl<\/a>&#58; The URL where the shopper is redirected back to after completing the payment.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'paybright-api-payments'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v68\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n    \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n    \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n    \\&quot;paymentMethod\\&quot;: {\\n        \\&quot;type\\&quot;: \\&quot;paybright\\&quot;\\n    },\\n    \\&quot;amount\\&quot;: {\\n        \\&quot;value\\&quot;: 6000,\\n        \\&quot;currency\\&quot;: \\&quot;CAD\\&quot;\\n    },\\n    \\&quot;shopperLocale\\&quot;: \\&quot;en_CA\\&quot;,\\n    \\&quot;countryCode\\&quot;: \\&quot;CA\\&quot;,\\n    \\&quot;telephoneNumber\\&quot;: \\&quot;+16478491378\\&quot;,\\n    \\&quot;shopperEmail\\&quot;: \\&quot;s.hopper@adyen.com\\&quot;,\\n    \\&quot;dateOfBirth\\&quot;: \\&quot;1970-07-10\\&quot;,\\n    \\&quot;shopperName\\&quot;: {\\n        \\&quot;firstName\\&quot;: \\&quot;Simon\\&quot;,\\n        \\&quot;lastName\\&quot;: \\&quot;Hopper\\&quot;\\n    },\\n    \\&quot;billingAddress\\&quot;: {\\n        \\&quot;city\\&quot;: \\&quot;Toronto\\&quot;,\\n        \\&quot;country\\&quot;: \\&quot;CA\\&quot;,\\n        \\&quot;houseNumberOrName\\&quot;: \\&quot;240\\&quot;,\\n        \\&quot;postalCode\\&quot;: \\&quot;M5V 2C5\\&quot;,\\n        \\&quot;street\\&quot;: \\&quot;Richmond St W\\&quot;,\\n        \\&quot;stateOrProvince\\&quot;: \\&quot;ON\\&quot;\\n    },\\n    \\&quot;deliveryAddress\\&quot;: {\\n        \\&quot;city\\&quot;: \\&quot;Toronto\\&quot;,\\n        \\&quot;country\\&quot;: \\&quot;CA\\&quot;,\\n        \\&quot;houseNumberOrName\\&quot;: \\&quot;240\\&quot;,\\n        \\&quot;postalCode\\&quot;: \\&quot;M5V 2C5\\&quot;,\\n        \\&quot;street\\&quot;: \\&quot;Richmond St W\\&quot;,\\n        \\&quot;stateOrProvince\\&quot;: \\&quot;ON\\&quot;\\n    },\\n    \\&quot;lineItems\\&quot;: [\\n        {\\n            \\&quot;description\\&quot;: \\&quot;Shoes\\&quot;,\\n            \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n            \\&quot;amountIncludingTax\\&quot;: \\&quot;4000\\&quot;,\\n            \\&quot;amountExcludingTax\\&quot;: \\&quot;3310\\&quot;,\\n            \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n        },\\n        {\\n            \\&quot;description\\&quot;: \\&quot;Socks\\&quot;,\\n            \\&quot;quantity\\&quot;: \\&quot;2\\&quot;,\\n            \\&quot;amountIncludingTax\\&quot;: \\&quot;3000\\&quot;,\\n            \\&quot;amountExcludingTax\\&quot;: \\&quot;2480\\&quot;,\\n            \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n        },\\n        {\\n            \\&quot;description\\&quot;: \\&quot;Discount\\&quot;,\\n            \\&quot;amountExcludingTax\\&quot;: \\&quot;-1000\\&quot;,\\n            \\&quot;amountIncludingTax\\&quot;: \\&quot;-1000\\&quot;,\\n            \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n            \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n        }\\n    ],\\n    \\&quot;returnUrl\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v27.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount()\\n  .currency(\\&quot;CAD\\&quot;)\\n  .value(6000L);\\n\\nLineItem lineItem1 = new LineItem()\\n  .quantity(1L)\\n  .amountExcludingTax(3310L)\\n  .description(\\&quot;Shoes\\&quot;)\\n  .amountIncludingTax(4000L);\\n\\nLineItem lineItem2 = new LineItem()\\n  .quantity(2L)\\n  .amountExcludingTax(2480L)\\n  .description(\\&quot;Socks\\&quot;)\\n  .amountIncludingTax(3000L);\\n\\nLineItem lineItem3 = new LineItem()\\n  .quantity(1L)\\n  .amountExcludingTax(-1000L)\\n  .description(\\&quot;Discount\\&quot;)\\n  .amountIncludingTax(-1000L);\\n\\nName name = new Name()\\n  .firstName(\\&quot;Simon\\&quot;)\\n  .lastName(\\&quot;Hopper\\&quot;);\\n\\nDeliveryAddress deliveryAddress = new DeliveryAddress()\\n  .country(\\&quot;CA\\&quot;)\\n  .stateOrProvince(\\&quot;ON\\&quot;)\\n  .city(\\&quot;Toronto\\&quot;)\\n  .houseNumberOrName(\\&quot;240\\&quot;)\\n  .street(\\&quot;Richmond St W\\&quot;)\\n  .postalCode(\\&quot;M5V 2C5\\&quot;);\\n\\nPaymentDetails paymentDetails = new PaymentDetails()\\n  .type(PaymentDetails.TypeEnum.PAYBRIGHT);\\n\\nBillingAddress billingAddress = new BillingAddress()\\n  .country(\\&quot;CA\\&quot;)\\n  .stateOrProvince(\\&quot;ON\\&quot;)\\n  .city(\\&quot;Toronto\\&quot;)\\n  .houseNumberOrName(\\&quot;240\\&quot;)\\n  .street(\\&quot;Richmond St W\\&quot;)\\n  .postalCode(\\&quot;M5V 2C5\\&quot;);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .amount(amount)\\n  .telephoneNumber(\\&quot;+16478491378\\&quot;)\\n  .shopperEmail(\\&quot;s.hopper@adyen.com\\&quot;)\\n  .dateOfBirth(OffsetDateTime.parse(\\&quot;1970-07-10\\&quot;))\\n  .reference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n  .lineItems(Arrays.asList(lineItem1, lineItem2, lineItem3))\\n  .shopperName(name)\\n  .merchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  .deliveryAddress(deliveryAddress)\\n  .countryCode(\\&quot;CA\\&quot;)\\n  .paymentMethod(new CheckoutPaymentMethod(paymentDetails))\\n  .shopperLocale(\\&quot;en_CA\\&quot;)\\n  .billingAddress(billingAddress)\\n  .returnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;);\\n\\n\\\/\\\/ Send the request\\nPaymentsApi service = new PaymentsApi(client);\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v19.0.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\LineItem;\\nuse Adyen\\\\Model\\\\Checkout\\\\Name;\\nuse Adyen\\\\Model\\\\Checkout\\\\DeliveryAddress;\\nuse Adyen\\\\Model\\\\Checkout\\\\CheckoutPaymentMethod;\\nuse Adyen\\\\Model\\\\Checkout\\\\BillingAddress;\\nuse Adyen\\\\Model\\\\Checkout\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Checkout\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;CAD\\&quot;)\\n  -&gt;setValue(6000);\\n\\n$lineItem1 = new LineItem();\\n$lineItem1\\n  -&gt;setQuantity(1)\\n  -&gt;setAmountExcludingTax(3310)\\n  -&gt;setDescription(\\&quot;Shoes\\&quot;)\\n  -&gt;setAmountIncludingTax(4000);\\n\\n$lineItem2 = new LineItem();\\n$lineItem2\\n  -&gt;setQuantity(2)\\n  -&gt;setAmountExcludingTax(2480)\\n  -&gt;setDescription(\\&quot;Socks\\&quot;)\\n  -&gt;setAmountIncludingTax(3000);\\n\\n$lineItem3 = new LineItem();\\n$lineItem3\\n  -&gt;setQuantity(1)\\n  -&gt;setAmountExcludingTax(-1000)\\n  -&gt;setDescription(\\&quot;Discount\\&quot;)\\n  -&gt;setAmountIncludingTax(-1000);\\n\\n$name = new Name();\\n$name\\n  -&gt;setFirstName(\\&quot;Simon\\&quot;)\\n  -&gt;setLastName(\\&quot;Hopper\\&quot;);\\n\\n$deliveryAddress = new DeliveryAddress();\\n$deliveryAddress\\n  -&gt;setCountry(\\&quot;CA\\&quot;)\\n  -&gt;setStateOrProvince(\\&quot;ON\\&quot;)\\n  -&gt;setCity(\\&quot;Toronto\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;240\\&quot;)\\n  -&gt;setStreet(\\&quot;Richmond St W\\&quot;)\\n  -&gt;setPostalCode(\\&quot;M5V 2C5\\&quot;);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setType(\\&quot;paybright\\&quot;);\\n\\n$billingAddress = new BillingAddress();\\n$billingAddress\\n  -&gt;setCountry(\\&quot;CA\\&quot;)\\n  -&gt;setStateOrProvince(\\&quot;ON\\&quot;)\\n  -&gt;setCity(\\&quot;Toronto\\&quot;)\\n  -&gt;setHouseNumberOrName(\\&quot;240\\&quot;)\\n  -&gt;setStreet(\\&quot;Richmond St W\\&quot;)\\n  -&gt;setPostalCode(\\&quot;M5V 2C5\\&quot;);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setAmount($amount)\\n  -&gt;setTelephoneNumber(\\&quot;+16478491378\\&quot;)\\n  -&gt;setShopperEmail(\\&quot;s.hopper@adyen.com\\&quot;)\\n  -&gt;setDateOfBirth(\\&quot;1970-07-10\\&quot;)\\n  -&gt;setReference(\\&quot;YOUR_ORDER_REFERENCE\\&quot;)\\n  -&gt;setLineItems(array($lineItem1, $lineItem2, $lineItem3))\\n  -&gt;setShopperName($name)\\n  -&gt;setMerchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setDeliveryAddress($deliveryAddress)\\n  -&gt;setCountryCode(\\&quot;CA\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setShopperLocale(\\&quot;en_CA\\&quot;)\\n  -&gt;setBillingAddress($billingAddress)\\n  -&gt;setReturnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v17.0.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;CAD\\&quot;,\\n  Value = 6000\\n};\\n\\nLineItem lineItem1 = new LineItem\\n{\\n  Quantity = 1,\\n  AmountExcludingTax = 3310,\\n  Description = \\&quot;Shoes\\&quot;,\\n  AmountIncludingTax = 4000\\n};\\n\\nLineItem lineItem2 = new LineItem\\n{\\n  Quantity = 2,\\n  AmountExcludingTax = 2480,\\n  Description = \\&quot;Socks\\&quot;,\\n  AmountIncludingTax = 3000\\n};\\n\\nLineItem lineItem3 = new LineItem\\n{\\n  Quantity = 1,\\n  AmountExcludingTax = -1000,\\n  Description = \\&quot;Discount\\&quot;,\\n  AmountIncludingTax = -1000\\n};\\n\\nName name = new Name\\n{\\n  FirstName = \\&quot;Simon\\&quot;,\\n  LastName = \\&quot;Hopper\\&quot;\\n};\\n\\nDeliveryAddress deliveryAddress = new DeliveryAddress\\n{\\n  Country = \\&quot;CA\\&quot;,\\n  StateOrProvince = \\&quot;ON\\&quot;,\\n  City = \\&quot;Toronto\\&quot;,\\n  HouseNumberOrName = \\&quot;240\\&quot;,\\n  Street = \\&quot;Richmond St W\\&quot;,\\n  PostalCode = \\&quot;M5V 2C5\\&quot;\\n};\\n\\nPaymentDetails paymentDetails = new PaymentDetails\\n{\\n  Type = PaymentDetails.TypeEnum.Paybright\\n};\\n\\nBillingAddress billingAddress = new BillingAddress\\n{\\n  Country = \\&quot;CA\\&quot;,\\n  StateOrProvince = \\&quot;ON\\&quot;,\\n  City = \\&quot;Toronto\\&quot;,\\n  HouseNumberOrName = \\&quot;240\\&quot;,\\n  Street = \\&quot;Richmond St W\\&quot;,\\n  PostalCode = \\&quot;M5V 2C5\\&quot;\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Amount = amount,\\n  TelephoneNumber = \\&quot;+16478491378\\&quot;,\\n  ShopperEmail = \\&quot;s.hopper@adyen.com\\&quot;,\\n  DateOfBirth = DateTime.Parse(\\&quot;1970-07-10\\&quot;),\\n  Reference = \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  LineItems = new List&lt;LineItem&gt;{ lineItem1, lineItem2, lineItem3 },\\n  ShopperName = name,\\n  MerchantAccount = \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  DeliveryAddress = deliveryAddress,\\n  CountryCode = \\&quot;CA\\&quot;,\\n  PaymentMethod = new CheckoutPaymentMethod(paymentDetails),\\n  ShopperLocale = \\&quot;en_CA\\&quot;,\\n  BillingAddress = billingAddress,\\n  ReturnUrl = \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentsService(client);\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&quot;});&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  paymentMethod: {\\n    type: \\&quot;paybright\\&quot;\\n  },\\n  amount: {\\n    value: 6000,\\n    currency: \\&quot;CAD\\&quot;\\n  },\\n  shopperLocale: \\&quot;en_CA\\&quot;,\\n  countryCode: \\&quot;CA\\&quot;,\\n  telephoneNumber: \\&quot;+16478491378\\&quot;,\\n  shopperEmail: \\&quot;s.hopper@adyen.com\\&quot;,\\n  dateOfBirth: new Date(\\&quot;1970-07-10\\&quot;),\\n  shopperName: {\\n    firstName: \\&quot;Simon\\&quot;,\\n    lastName: \\&quot;Hopper\\&quot;\\n  },\\n  billingAddress: {\\n    city: \\&quot;Toronto\\&quot;,\\n    country: \\&quot;CA\\&quot;,\\n    houseNumberOrName: \\&quot;240\\&quot;,\\n    postalCode: \\&quot;M5V 2C5\\&quot;,\\n    street: \\&quot;Richmond St W\\&quot;,\\n    stateOrProvince: \\&quot;ON\\&quot;\\n  },\\n  deliveryAddress: {\\n    city: \\&quot;Toronto\\&quot;,\\n    country: \\&quot;CA\\&quot;,\\n    houseNumberOrName: \\&quot;240\\&quot;,\\n    postalCode: \\&quot;M5V 2C5\\&quot;,\\n    street: \\&quot;Richmond St W\\&quot;,\\n    stateOrProvince: \\&quot;ON\\&quot;\\n  },\\n  lineItems: [ {\\n    description: \\&quot;Shoes\\&quot;,\\n    quantity: \\&quot;1\\&quot;,\\n    amountIncludingTax: \\&quot;4000\\&quot;,\\n    amountExcludingTax: \\&quot;3310\\&quot;,\\n    taxCategory: \\&quot;Low\\&quot;\\n  }, {\\n    description: \\&quot;Socks\\&quot;,\\n    quantity: \\&quot;2\\&quot;,\\n    amountIncludingTax: \\&quot;3000\\&quot;,\\n    amountExcludingTax: \\&quot;2480\\&quot;,\\n    taxCategory: \\&quot;Low\\&quot;\\n  }, {\\n    description: \\&quot;Discount\\&quot;,\\n    amountExcludingTax: \\&quot;-1000\\&quot;,\\n    amountIncludingTax: \\&quot;-1000\\&quot;,\\n    quantity: \\&quot;1\\&quot;,\\n    taxCategory: \\&quot;Low\\&quot;\\n  } ],\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v10.4.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;time\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\namount := checkout.Amount{\\n  Currency: \\&quot;CAD\\&quot;,\\n  Value: 6000,\\n}\\n\\nlineItem1 := checkout.LineItem{\\n  Quantity: common.PtrInt64(1),\\n  AmountExcludingTax: common.PtrInt64(3310),\\n  Description: common.PtrString(\\&quot;Shoes\\&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(\\&quot;Socks\\&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(\\&quot;Discount\\&quot;),\\n  AmountIncludingTax: common.PtrInt64(-1000),\\n}\\n\\nname := checkout.Name{\\n  FirstName: \\&quot;Simon\\&quot;,\\n  LastName: \\&quot;Hopper\\&quot;,\\n}\\n\\ndeliveryAddress := checkout.DeliveryAddress{\\n  Country: \\&quot;CA\\&quot;,\\n  StateOrProvince: common.PtrString(\\&quot;ON\\&quot;),\\n  City: \\&quot;Toronto\\&quot;,\\n  HouseNumberOrName: \\&quot;240\\&quot;,\\n  Street: \\&quot;Richmond St W\\&quot;,\\n  PostalCode: \\&quot;M5V 2C5\\&quot;,\\n}\\n\\npaymentDetails := checkout.PaymentDetails{\\n  Type: common.PtrString(\\&quot;paybright\\&quot;),\\n}\\n\\nbillingAddress := checkout.BillingAddress{\\n  Country: \\&quot;CA\\&quot;,\\n  StateOrProvince: common.PtrString(\\&quot;ON\\&quot;),\\n  City: \\&quot;Toronto\\&quot;,\\n  HouseNumberOrName: \\&quot;240\\&quot;,\\n  Street: \\&quot;Richmond St W\\&quot;,\\n  PostalCode: \\&quot;M5V 2C5\\&quot;,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Amount: amount,\\n  TelephoneNumber: common.PtrString(\\&quot;+16478491378\\&quot;),\\n  ShopperEmail: common.PtrString(\\&quot;s.hopper@adyen.com\\&quot;),\\n  DateOfBirth:  func() *time.Time { t, _ := time.Parse(time.RFC3339, \\&quot;1970-07-10\\&quot;); return &amp;t }(),\\n  Reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  LineItems: []checkout.LineItem{\\n      lineItem1, lineItem2, lineItem3,\\n  },\\n  ShopperName: &amp;name,\\n  MerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  DeliveryAddress: &amp;deliveryAddress,\\n  CountryCode: common.PtrString(\\&quot;CA\\&quot;),\\n  PaymentMethod: checkout.PaymentDetailsAsCheckoutPaymentMethod(&amp;paymentDetails),\\n  ShopperLocale: common.PtrString(\\&quot;en_CA\\&quot;),\\n  BillingAddress: &amp;billingAddress,\\n  ReturnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\&quot;UUID\\&quot;).PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.5.1\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;paybright\\&quot;\\n  },\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;value\\&quot;: 6000,\\n    \\&quot;currency\\&quot;: \\&quot;CAD\\&quot;\\n  },\\n  \\&quot;shopperLocale\\&quot;: \\&quot;en_CA\\&quot;,\\n  \\&quot;countryCode\\&quot;: \\&quot;CA\\&quot;,\\n  \\&quot;telephoneNumber\\&quot;: \\&quot;+16478491378\\&quot;,\\n  \\&quot;shopperEmail\\&quot;: \\&quot;s.hopper@adyen.com\\&quot;,\\n  \\&quot;dateOfBirth\\&quot;: \\&quot;1970-07-10\\&quot;,\\n  \\&quot;shopperName\\&quot;: {\\n    \\&quot;firstName\\&quot;: \\&quot;Simon\\&quot;,\\n    \\&quot;lastName\\&quot;: \\&quot;Hopper\\&quot;\\n  },\\n  \\&quot;billingAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;Toronto\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;CA\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;240\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;M5V 2C5\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Richmond St W\\&quot;,\\n    \\&quot;stateOrProvince\\&quot;: \\&quot;ON\\&quot;\\n  },\\n  \\&quot;deliveryAddress\\&quot;: {\\n    \\&quot;city\\&quot;: \\&quot;Toronto\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;CA\\&quot;,\\n    \\&quot;houseNumberOrName\\&quot;: \\&quot;240\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;M5V 2C5\\&quot;,\\n    \\&quot;street\\&quot;: \\&quot;Richmond St W\\&quot;,\\n    \\&quot;stateOrProvince\\&quot;: \\&quot;ON\\&quot;\\n  },\\n  \\&quot;lineItems\\&quot;: [ {\\n    \\&quot;description\\&quot;: \\&quot;Shoes\\&quot;,\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;4000\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;3310\\&quot;,\\n    \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n  }, {\\n    \\&quot;description\\&quot;: \\&quot;Socks\\&quot;,\\n    \\&quot;quantity\\&quot;: \\&quot;2\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;3000\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;2480\\&quot;,\\n    \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n  }, {\\n    \\&quot;description\\&quot;: \\&quot;Discount\\&quot;,\\n    \\&quot;amountExcludingTax\\&quot;: \\&quot;-1000\\&quot;,\\n    \\&quot;amountIncludingTax\\&quot;: \\&quot;-1000\\&quot;,\\n    \\&quot;quantity\\&quot;: \\&quot;1\\&quot;,\\n    \\&quot;taxCategory\\&quot;: \\&quot;Low\\&quot;\\n  } ],\\n  \\&quot;returnUrl\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.5.1\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\n# For the live environment, additionally include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'ADYEN_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_REFERENCE',\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'paybright'\\n  },\\n  :amount =&gt; {\\n    :value =&gt; 6000,\\n    :currency =&gt; 'CAD'\\n  },\\n  :shopperLocale =&gt; 'en_CA',\\n  :countryCode =&gt; 'CA',\\n  :telephoneNumber =&gt; '+16478491378',\\n  :shopperEmail =&gt; 's.hopper@adyen.com',\\n  :dateOfBirth =&gt; '1970-07-10',\\n  :shopperName =&gt; {\\n    :firstName =&gt; 'Simon',\\n    :lastName =&gt; 'Hopper'\\n  },\\n  :billingAddress =&gt; {\\n    :city =&gt; 'Toronto',\\n    :country =&gt; 'CA',\\n    :houseNumberOrName =&gt; '240',\\n    :postalCode =&gt; 'M5V 2C5',\\n    :street =&gt; 'Richmond St W',\\n    :stateOrProvince =&gt; 'ON'\\n  },\\n  :deliveryAddress =&gt; {\\n    :city =&gt; 'Toronto',\\n    :country =&gt; 'CA',\\n    :houseNumberOrName =&gt; '240',\\n    :postalCode =&gt; 'M5V 2C5',\\n    :street =&gt; 'Richmond St W',\\n    :stateOrProvince =&gt; 'ON'\\n  },\\n  :lineItems =&gt; [ {\\n    :description =&gt; 'Shoes',\\n    :quantity =&gt; '1',\\n    :amountIncludingTax =&gt; '4000',\\n    :amountExcludingTax =&gt; '3310',\\n    :taxCategory =&gt; 'Low'\\n  }, {\\n    :description =&gt; 'Socks',\\n    :quantity =&gt; '2',\\n    :amountIncludingTax =&gt; '3000',\\n    :amountExcludingTax =&gt; '2480',\\n    :taxCategory =&gt; 'Low'\\n  }, {\\n    :description =&gt; 'Discount',\\n    :amountExcludingTax =&gt; '-1000',\\n    :amountIncludingTax =&gt; '-1000',\\n    :quantity =&gt; '1',\\n    :taxCategory =&gt; 'Low'\\n  } ],\\n  :returnUrl =&gt; 'https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..'\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v18.0.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\\/\\\/ Initialize the client object\\n\\\/\\\/ For the live environment, additionally include your liveEndpointUrlPrefix.\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;CAD\\&quot;,\\n  value: 6000\\n};\\n\\nconst lineItem1: Types.checkout.LineItem = {\\n  quantity: 1,\\n  amountExcludingTax: 3310,\\n  description: \\&quot;Shoes\\&quot;,\\n  amountIncludingTax: 4000\\n};\\n\\nconst lineItem2: Types.checkout.LineItem = {\\n  quantity: 2,\\n  amountExcludingTax: 2480,\\n  description: \\&quot;Socks\\&quot;,\\n  amountIncludingTax: 3000\\n};\\n\\nconst lineItem3: Types.checkout.LineItem = {\\n  quantity: 1,\\n  amountExcludingTax: -1000,\\n  description: \\&quot;Discount\\&quot;,\\n  amountIncludingTax: -1000\\n};\\n\\nconst name: Types.checkout.Name = {\\n  firstName: \\&quot;Simon\\&quot;,\\n  lastName: \\&quot;Hopper\\&quot;\\n};\\n\\nconst deliveryAddress: Types.checkout.DeliveryAddress = {\\n  country: \\&quot;CA\\&quot;,\\n  stateOrProvince: \\&quot;ON\\&quot;,\\n  city: \\&quot;Toronto\\&quot;,\\n  houseNumberOrName: \\&quot;240\\&quot;,\\n  street: \\&quot;Richmond St W\\&quot;,\\n  postalCode: \\&quot;M5V 2C5\\&quot;\\n};\\n\\nconst paymentDetails: Types.checkout.PaymentDetails = {\\n  type: Types.checkout.PaymentDetails.TypeEnum.Paybright\\n};\\n\\nconst billingAddress: Types.checkout.BillingAddress = {\\n  country: \\&quot;CA\\&quot;,\\n  stateOrProvince: \\&quot;ON\\&quot;,\\n  city: \\&quot;Toronto\\&quot;,\\n  houseNumberOrName: \\&quot;240\\&quot;,\\n  street: \\&quot;Richmond St W\\&quot;,\\n  postalCode: \\&quot;M5V 2C5\\&quot;\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  amount: amount,\\n  telephoneNumber: \\&quot;+16478491378\\&quot;,\\n  shopperEmail: \\&quot;s.hopper@adyen.com\\&quot;,\\n  dateOfBirth: new Date(\\&quot;1970-07-10\\&quot;),\\n  reference: \\&quot;YOUR_ORDER_REFERENCE\\&quot;,\\n  lineItems: [lineItem1, lineItem2, lineItem3],\\n  shopperName: name,\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  deliveryAddress: deliveryAddress,\\n  countryCode: \\&quot;CA\\&quot;,\\n  paymentMethod: paymentDetails,\\n  shopperLocale: \\&quot;en_CA\\&quot;,\\n  billingAddress: billingAddress,\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>In the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> response, check the <code>action<\/code> object for the information that you must use to redirect the shopper.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'\/payments response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"resultCode\\\":\\\"RedirectShopper\\\",\\n  \\\"action\\\":{\\n    \\\"paymentMethodType\\\":\\\"paybright\\\",\\n    \\\"method\\\":\\\"GET\\\",\\n    \\\"url\\\":\\\"https:\\\/\\\/checkoutshopper-test.adyen.com\\\/checkoutshopper\\\/checkoutPaymentRedirect?redirectData=...\\\",\\n    \\\"type\\\":\\\"redirect\\\"\\n  }\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Handle the redirect<\/h2>\n<ol>\n<li>\n<p>To complete the payment, redirect the shopper to the <code>action.url<\/code> returned in the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> response, taking into account the following recommendations:<\/p>\n<ul>\n<li>\n<p><strong>When using the HTTP GET method:<\/strong><br \/>\nFor security reasons, when showing the redirect in the app, we recommend that you use <a href=\"https:\/\/developer.apple.com\/documentation\/safariservices\/sfsafariviewcontroller\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">SFSafariViewController<\/a> for iOS or <a href=\"https:\/\/developer.chrome.com\/multidevice\/android\/customtabs\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Chrome Custom Tabs<\/a> for Android, instead of WebView objects. Also refer to the <a href=\"https:\/\/developer.android.com\/topic\/security\/best-practices#webview\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">security best practices<\/a> for WebView.<\/p>\n<\/li>\n<li>\n<p><strong>Redirection for mobile integrations:<\/strong><br \/>\nFor mobile integrations, we strongly recommended that you redirect the shopper to the default browser of their device. Redirecting to the default browser ensures the best compatibility, handling of multi-factor authentication, app-to-app redirection, and error handling.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>After the shopper is redirected back to your website, check the payment result by making a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> request, specifying:<\/p>\n<ul>\n<li><code>details<\/code>: object that contains the URL-decoded <code>redirectResult<\/code> returned when the shopper was redirected back to your site.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'\/payments\/details request'\" :id=\"''\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments\\\/details \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n   \\&quot;details\\&quot;: {\\n      \\&quot;redirectResult\\&quot;: \\&quot;eyJ0cmFuc1N0YXR1cyI6IlkifQ==\\&quot;\\n   }\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>In the response note the following:<\/p>\n<ul>\n<li><code>resultCode<\/code>: use this to present the result to your shopper.<\/li>\n<li><code>pspReference<\/code>: our unique identifier for the transaction.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'\/payments\/details response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"resultCode\\\": \\\"Authorised\\\",\\n   \\\"pspReference\\\": \\\"V4HZ4RBFJGXXGN82\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2>Present the payment result<\/h2>\n<p>Use the\u00a0<code>resultCode<\/code> that you received in the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\/details\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments\/details<\/a> response to present the payment result to your shopper.<\/p>\n<p>The <code>resultCode<\/code> values you can receive for PayBright are:<\/p>\n<table>\n<thead>\n<tr>\n<th>resultCode<\/th>\n<th>Description<\/th>\n<th>Action to take<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Authorised<\/strong><\/td>\n<td>The payment was successful.<\/td>\n<td>Inform the shopper that the payment was successful.<\/td>\n<\/tr>\n<tr>\n<td><strong>Cancelled<\/strong><\/td>\n<td>The shopper cancelled the payment.<\/td>\n<td>Ask the shopper whether they want to continue with the order, or ask them to select a different payment method.<\/td>\n<\/tr>\n<tr>\n<td><strong>Refused<\/strong><\/td>\n<td>The payment was refused by PayBright.<\/td>\n<td>Ask the shopper to try the payment again using a different payment method.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a id=\"webhooks\"><\/a> If the shopper failed to return to your website or app, wait for webhooks to know the outcome of the payment:<\/p>\n<table>\n<thead>\n<tr>\n<th>eventCode<\/th>\n<th>success field<\/th>\n<th>Description<\/th>\n<th>Action to take<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>AUTHORISATION<\/strong><\/td>\n<td><strong>false<\/strong><\/td>\n<td>The transaction failed.<\/td>\n<td>Cancel the order and inform the shopper that the payment failed.<\/td>\n<\/tr>\n<tr>\n<td><strong>AUTHORISATION<\/strong><\/td>\n<td><strong>true<\/strong><\/td>\n<td>The shopper successfully completed the payment.<\/td>\n<td>Inform the shopper that the payment has been successful and proceed with the order.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"originalReference\\\":\\\"COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\\",\\n   \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"modificationAmount\\\":{\\n      \\\"currency\\\":\\\"CAD\\\",\\n      \\\"value\\\":\\\"4500\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"2\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line1.description\\\":\\\"Shoes\\\",\\n      \\\"openinvoicedata.line1.itemAmount\\\":\\\"3310\\\",\\n      \\\"openinvoicedata.line1.itemVatAmount\\\":\\\"690\\\",\\n      \\\"openinvoicedata.line1.numberOfItems\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line2.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line2.description\\\":\\\"Socks\\\",\\n      \\\"openinvoicedata.line2.itemAmount\\\":\\\"1240\\\",\\n      \\\"openinvoicedata.line2.itemVatAmount\\\":\\\"260\\\",\\n      \\\"openinvoicedata.line2.numberOfItems\\\":\\\"1\\\",\\n   },\\n   \\\"reference\\\":\\\"YOUR_CAPTURE_REFERENCE\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>Any unclaimed amount that is left over after partially capturing a payment is automatically cancelled. When your account is enabled for <em>multiple<\/em> partial captures, the unclaimed amount after an initial capture is not automatically cancelled.<\/p>\n<div class=\"sc-notice info\"><div>\n<p>To set up multiple partial captures, contact our <a href=\"https:\/\/ca-test.adyen.com\/ca\/ca\/contactUs\/support.shtml?form=other\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Support Team<\/a>.\u00a0Multiple partial captures will create\u00a0a new invoice for each capture.\u00a0<\/p>\n<\/div><\/div>\n<h2>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='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"merchantAccount\\\":\\\"YOUR_MERCHANT_ACCOUNT\\\",\\n   \\\"originalReference\\\":\\\"COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE\\\",\\n   \\\"modificationAmount\\\":{\\n      \\\"currency\\\":\\\"CAD\\\",\\n      \\\"value\\\":\\\"4000\\\"\\n   },\\n   \\\"additionalData\\\":{\\n      \\\"openinvoicedata.numberOfLines\\\":\\\"1\\\",\\n      \\\"openinvoicedata.line1.currencyCode\\\":\\\"CAD\\\",\\n      \\\"openinvoicedata.line1.description\\\":\\\"Shoes\\\",\\n      \\\"openinvoicedata.line1.itemAmount\\\":\\\"3310\\\",\\n      \\\"openinvoicedata.line1.itemVatAmount\\\":\\\"690\\\",\\n      \\\"openinvoicedata.line1.numberOfItems\\\":\\\"1\\\"\\n   },\\n   \\\"reference\\\":\\\"YOUR_REFUND_REFERENCE\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Test and go live<\/h2>\n<p>To test PayBright payments, use the test details provided in the <a href=\"https:\/\/developer.paybright.com\/docs\/testing-resources-completed-pending-failed\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">PayBright developer documentation<\/a>.<\/p>\n<p>You can check the status of test payments in your\u00a0<a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>\u00a0&gt;\u00a0<strong>Transactions<\/strong>\u00a0&gt;\u00a0<strong>Payments<\/strong>.<\/p>\n<p>Before you can accept live PayBright payments, you need to <a href=\"\/pt\/payment-methods\/add-payment-methods\">submit a request for PayBright<\/a> in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>.<\/p>\n<h2>See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/build-your-integration\/advanced-flow?platform=Web&amp;integration=API%20only\"\n                        target=\"_self\"\n                        >\n                    API-only 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\/api-only","articleFields":{"description":"Add PayBright to an existing API-only integration.","type":"page","parameters":{"integration":"API-only","platform":"Web","integration_guide_url":"build-your-integration\/advanced-flow?platform=Web&integration=API%20only","payment_method":"PayBright","payment_method_type":"paybright","currency_code":"CAD","country_code":"CA","component_name":"paybright"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/paybright\/api-only","title":"PayBright for API only","content":"\nPayBright has been acquired by Affirm. Adyen will not accept new PayBright integrations.\n\nAccept PayBright payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.\nWhen making an PayBright payment, you also need to:\n\nCollect shopper details, and specify these in your payment request.\nPayBright uses these for risk checks.\nProvide information about the purchased items by specifying lineItems in your payment request.\nHandle the redirect result after the shopper returns to your website.\n\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built an API-only integration. \n\n\nSetup steps\nBefore you begin, add PayBright in your test Customer Area.\n\n\n\nBuild your payment form for PayBright\nIf you are using  \/paymentMethods to show which payment methods are available to the shopper,\nspecify the following combinations of  countryCode and  amount.currency in your request:\n\n\n\nCountry\/region\ncountryCode\namount.currency\n\n\n\n\nCanada\nCA\nCAD\n\n\n\n\nWe provide a PayBright logo which you can use on your payment form. For more information, refer to Downloading logos.\n\nTo perform risk checks, PayBright requires you to collect the following shopper details:\n\nFull name\nDate of birth\nEmail address\nPhone number\nBilling address and delivery address.\n\nMake a payment\nMake a  \/payments request from your server, specifying:\n\npaymentMethod: paybright\n shopperName&#58;\u00a0The shopper's full name.\n dateOfBirth&#58; The shopper's date of birth.\n shopperEmail&#58; The shopper's email address.\n telephoneNumber&#58; The shopper's phone number.\nshopperLocale\n    \n        Optional\n    \n\n: A combination of language code and country code to define which language should be used in the PayBright checkout page.\n countryCode&#58; The shopper's country. For example, CA.\n billingAddress&#58;\u00a0The postal address to be included on the invoice.\n deliveryAddress&#58;\u00a0The postal address where the purchased items will be shipped.\n lineItems&#58; Price and product information about the purchased items.\n returnUrl&#58; The URL where the shopper is redirected back to after completing the payment.\n\n\n    \n\nIn the  \/payments response, check the action object for the information that you must use to redirect the shopper.\n\n    \n\nHandle the redirect\n\n\nTo complete the payment, redirect the shopper to the action.url returned in the  \/payments response, taking into account the following recommendations:\n\n\nWhen using the HTTP GET method:\nFor security reasons, when showing the redirect in the app, we recommend that you use SFSafariViewController for iOS or Chrome Custom Tabs for Android, instead of WebView objects. Also refer to the security best practices for WebView.\n\n\nRedirection for mobile integrations:\nFor mobile integrations, we strongly recommended that you redirect the shopper to the default browser of their device. Redirecting to the default browser ensures the best compatibility, handling of multi-factor authentication, app-to-app redirection, and error handling.\n\n\n\n\nAfter the shopper is redirected back to your website, check the payment result by making a POST  \/payments\/details request, specifying:\n\ndetails: object that contains the URL-decoded redirectResult returned when the shopper was redirected back to your site.\n\n\n\n\n\n\nIn the response note the following:\n\nresultCode: use this to present the result to your shopper.\npspReference: our unique identifier for the transaction.\n\n\n\n\n\n\nPresent the payment result\nUse the\u00a0resultCode that you received in the  \/payments\/details response to present the payment result to your shopper.\nThe resultCode values you can receive for PayBright are:\n\n\n\nresultCode\nDescription\nAction to take\n\n\n\n\nAuthorised\nThe payment was successful.\nInform the shopper that the payment was successful.\n\n\nCancelled\nThe shopper cancelled the payment.\nAsk the shopper whether they want to continue with the order, or ask them to select a different payment method.\n\n\nRefused\nThe payment was refused by PayBright.\nAsk the shopper to try the payment again using a different payment method.\n\n\n\n If the shopper failed to return to your website or app, wait for webhooks to know the outcome of the payment:\n\n\n\neventCode\nsuccess field\nDescription\nAction to take\n\n\n\n\nAUTHORISATION\nfalse\nThe transaction failed.\nCancel the order and inform the shopper that the payment failed.\n\n\nAUTHORISATION\ntrue\nThe shopper successfully completed the payment.\nInform the shopper that the payment has been successful and proceed with the order.\n\n\n\nCapture the payment\nBy default, all PayBright payments are\u00a0captured automatically after authorisation.\nIf you prefer to capture the payment after the goods have been sent, or when you want to partially capture payments, you need to set up a capture delay or use manual capture.\nWhen you capture the payment, the shopper is charged for the first installment.\nPartial captures\n\nPartial captures are not available if you enabled automatic capture in your Customer Area.\n\nTo partially capture a PayBright payment, specify in your\u00a0\/capture request:\n\nmodificationAmount: The amount that the shopper should pay.\u00a0\nadditionalData.openinvoicedata: \n    \n        Optional\n    \n\n Price and product information for the items that the shopper should pay for.\n\nAlthough the field names are different, the information in additionalData.openinvoicedata is the same as what you provided in lineItems when making a  \/payments request:\n\n\n\nopeninvoicedata\nlineItems\nDescription\n\n\n\n\nitemAmount\namountExcludingTax\nThe price for one item, without the tax, in minor units.\n\n\nitemVatAmount\ntaxAmount\nThe tax amount for one item, in minor units.\n\n\n\nThe following example shows how to make a partial capture request if the shopper only kept one pair of socks from the two included in the original payment request.\n\n    \n\nAny unclaimed amount that is left over after partially capturing a payment is automatically cancelled. When your account is enabled for multiple partial captures, the unclaimed amount after an initial capture is not automatically cancelled.\n\nTo set up multiple partial captures, contact our Support Team.\u00a0Multiple partial captures will create\u00a0a new invoice for each capture.\u00a0\n\nRefunds 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                    API-only 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 for API only"},"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\/api-only"},"levels":4,"category":"Payment method","category_color":"green","tags":["PayBright"]},"articleFiles":{"paybright-api-payments.js":"<p alt=\"\">paybright-api-payments.js<\/p>"}}
