{"title":"Giving for API only","category":"default","creationDate":1695034680,"content":"<p>Accept donations for a nonprofit with the Giving API-only integration that gives you the flexibility to customize the donation flow. You build your own donation form to accept donations, and have full control of the style, visual elements, and user interface.<\/p>\n<p>If the shopper chooses to make a donation, the donation transaction uses the same payment method that the shopper used to make the original payment.<\/p>\n<p>With an API-only integration, you can accept donations for fixed amounts, or allow the shopper to round up their transaction amount as a donation. You can present the option to donate before or after the shopper completes the payment for the original transaction.<\/p>\n<h2>Requirements<\/h2>\n<p>In addition to the <a href=\"\/pt\/online-payments\/donations#requirements\">general Adyen Giving requirements<\/a>, take into account the following information.<\/p>\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&amp;version=latest\">API only integration<\/a> using Checkout API v67 or later.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/account\/user-roles\">Customer Area roles<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have the <strong><a href=\"\/pt\/account\/user-roles\/#manage-donation-campaigns\">Donation campaigns manager<\/a><\/strong> role.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/webhooks\">Webhooks<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Subscribe to the following webhook(s): <ul><li markdown=\"1\">Standard webhooks<\/li><li markdown=\"1\"><a href=\"\/pt\/development-resources\/webhooks\/webhook-types\/#other-webhooks\">Adyen Giving merchant webhook<\/a><\/li><\/ul><\/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: <ul><li markdown=\"1\">To check if your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> user has the required roles, go to <strong>Account<\/strong> &gt; <strong>Users<\/strong>. If you need additional roles, contact your admin user.<\/li><li markdown=\"1\">Enable and integrate with the <a href=\"\/pt\/online-payments\/donations#supported-payment-methods\">payment methods<\/a> that you want to support.<li markdown=\"1\"><a href=\"\/pt\/online-payments\/donations\/#donation-campaign\">Create and activate a donation campaign<\/a>.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<p>The donation flow depends on the <a href=\"\/pt\/online-payments\/donations#donation-moments\">donation moment<\/a>:<\/p>\n\n<div id=\"tabaPki8\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Pre-checkout donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When your shopper goes to the checkout page and proceeds to pay with a &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations#supported-payment-methods\\&quot;&gt;payment method that supports donations&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; request to &lt;a href=\\&quot;#get-details-of-donation-campaigns\\&quot;&gt;get the details of your active donation campaigns&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Depending on the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations#donation-types\\&quot;&gt;donation type&lt;\\\/a&gt; of the campaign, &lt;a href=\\&quot;#present-option-to-donate\\&quot;&gt;present the option to donate&lt;\\\/a&gt; by either:\\n&lt;ul&gt;\\n&lt;li&gt;Show the shopper a donation form with fixed amounts.&lt;\\\/li&gt;\\n&lt;li&gt;Show the shopper a round-up checkbox that suggests to round up their payment amount as a donation.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;&lt;\\\/li&gt;\\n&lt;li&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; request to make the payment for the original transaction.&lt;\\\/li&gt;\\n&lt;li&gt;After you get the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; response, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donations\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donations&lt;\\\/a&gt; request to &lt;a href=\\&quot;#make-a-donation\\&quot;&gt;make a donation&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;a href=\\&quot;#get-the-donation-outcome\\&quot;&gt;Get the outcome&lt;\\\/a&gt; from a webhook and show it to the shopper.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;p&gt;The following diagram shows the donation flow for a round-up amount before the shopper pays for their original transaction:&lt;\\\/p&gt;\\n&lt;div style=\\&quot;text-align: center;\\&quot;&gt;\\n&lt;p&gt;&lt;img alt=\\&quot;Flow diagram for pre-checkout donations\\&quot; src=\\&quot;\\\/user\\\/pages\\\/docs\\\/02.online-payments\\\/24.donations\\\/04.api-only\\\/api-pre-flow.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/p&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;pre-how&quot;,&quot;oldTabId&quot;:&quot;pre-how_1&quot;,&quot;relation&quot;:&quot;&quot;},{&quot;title&quot;:&quot;Post-checkout donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;When your shopper completes their payment with a &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations#supported-payment-methods\\&quot;&gt;payment method that supports donations&lt;\\\/a&gt;:&lt;\\\/p&gt;\\n&lt;ol&gt;\\n&lt;li&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; request to &lt;a href=\\&quot;#get-details-of-donation-campaigns\\&quot;&gt;get the details of your active donation campaigns&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Depending on the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations#donation-types\\&quot;&gt;donation type&lt;\\\/a&gt; of the campaign, &lt;a href=\\&quot;#present-option-to-donate\\&quot;&gt;present the option to donate&lt;\\\/a&gt; by either:\\n&lt;ul&gt;\\n&lt;li&gt;Show the shopper a donation form with fixed amounts.&lt;\\\/li&gt;\\n&lt;li&gt;Show the shopper a round-up checkbox that suggests to round up their payment amount as a donation.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;&lt;\\\/li&gt;\\n&lt;li&gt;From your server, make a  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donations\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donations&lt;\\\/a&gt; request to &lt;a href=\\&quot;#make-a-donation\\&quot;&gt;make a donation&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;a href=\\&quot;#get-the-donation-outcome\\&quot;&gt;Get the outcome&lt;\\\/a&gt; from a webhook and show it to the shopper.&lt;\\\/li&gt;\\n&lt;\\\/ol&gt;\\n&lt;p&gt;The following diagram shows the donation flow for a fixed amount donation before the shopper pays for their original transaction.&lt;\\\/p&gt;\\n&lt;div style=\\&quot;text-align: center;\\&quot;&gt;\\n&lt;p&gt;&lt;img alt=\\&quot;Flow diagram for post-checkout donations\\&quot; src=\\&quot;\\\/user\\\/pages\\\/docs\\\/02.online-payments\\\/24.donations\\\/04.api-only\\\/campaign-manager-api.svg?decoding=auto&amp;amp;fetchpriority=auto\\&quot; \\\/&gt;&lt;\\\/p&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;post-how&quot;,&quot;oldTabId&quot;:&quot;post-how_2&quot;,&quot;relation&quot;:&quot;&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"get-details-of-donation-campaigns\">Get details of your active donation campaigns<\/h2>\n<p>Depending on the <a href=\"#how-it-works\">donation moment<\/a> that you choose, get the details of your active donation campaigns at either moment:<\/p>\n<ul>\n<li>When a shopper proceeds to pay for their original transaction with a payment method that supports donations.<\/li>\n<li>When a shopper completes their original transaction with a payment method that supports donations, and 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> or  <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> (for iDeal payments) response includes the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#responses-200-donationToken\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">donationToken<\/a> field.<\/li>\n<\/ul>\n<p>When you make a request to get your active donation campaigns, the response you receive depends on your <a href=\"\/pt\/online-payments\/donations#donation-types\">donation type<\/a>:<\/p>\n\n<div id=\"tabFgCAe\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Fixed amount donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;From your server, make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; request, specifying:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&lt;\\\/th&gt;\\n&lt;th&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;code&gt;merchantAccount&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&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;Your merchant account name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;currency&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&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 three-character &lt;a href=\\&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/ISO_4217\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO currency code&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;locale&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The language in which you want to receive the donation campaign details in the response. The default is configured by the nonprofit. Set it to the shopper&#039;s language and country code, for example, &lt;code&gt;en-US&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donationCampaigns request&#039;\\&quot; :id=\\&quot;&#039;get-donation-campaigns&#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\\\\\\\/v71\\\\\\\/donationCampaigns \\\\\\\\\\\\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;currency\\\\&amp;quot;:\\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n   \\\\&amp;quot;locale\\\\&amp;quot;:\\\\&amp;quot;en-US\\\\&amp;quot;\\\\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)\\\\nDonationCampaignsRequest donationCampaignsRequest = new DonationCampaignsRequest()\\\\n  .merchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .currency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  .locale(\\\\&amp;quot;en-US\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nDonationsApi service = new DonationsApi(client);\\\\nDonationCampaignsResponse response = service.donationCampaigns(donationCampaignsRequest, 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\\\\\\\\DonationCampaignsRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\DonationsApi;\\\\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$donationCampaignsRequest = new DonationCampaignsRequest();\\\\n$donationCampaignsRequest\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  -&amp;gt;setLocale(\\\\&amp;quot;en-US\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new DonationsApi($client);\\\\n$response = $service-&amp;gt;donationCampaigns($donationCampaignsRequest, $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)\\\\nDonationCampaignsRequest donationCampaignsRequest = new DonationCampaignsRequest\\\\n{\\\\n  MerchantAccount = \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  Currency = \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Locale = \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new DonationsService(client);\\\\nvar response = service.DonationCampaigns(donationCampaignsRequest, 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 donationCampaignsRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  locale: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.DonationsApi.donationCampaigns(donationCampaignsRequest, { 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)\\\\ndonationCampaignsRequest := checkout.DonationCampaignsRequest{\\\\n  MerchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  Currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Locale: common.PtrString(\\\\&amp;quot;en-US\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.DonationsApi.DonationCampaignsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).DonationCampaignsRequest(donationCampaignsRequest)\\\\nres, httpRes, err := service.DonationsApi.DonationCampaigns(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;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  \\\\&amp;quot;locale\\\\&amp;quot;: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.donations_api.donation_campaigns(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  :currency =&amp;gt; &#039;EUR&#039;,\\\\n  :locale =&amp;gt; &#039;en-US&#039;\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.donations_api.donation_campaigns(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 donationCampaignsRequest: Types.checkout.DonationCampaignsRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  locale: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.DonationsApi.donationCampaigns(donationCampaignsRequest, { 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&lt;p&gt;The response contains the details of your active donation campaign(s). Use the fields from the response &lt;a href=\\&quot;#present-option-to-donate\\&quot;&gt;to create the donation form that you show to the shopper&lt;\\\/a&gt;.&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&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;code&gt;id&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The unique campaign ID of the donation campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;campaignName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the donation campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;donation&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Specifies the details of the donation. This object has: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;fixedAmounts&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;currency&lt;\\\/code&gt;: The three-character &lt;a href=\\&quot;\\\/pt\\\/development-resources\\\/currency-codes\\\/\\&quot;&gt;ISO currency code&lt;\\\/a&gt;.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;values&lt;\\\/code&gt;: Specifies the fixed donation amounts the shopper can choose from.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;causeName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The cause of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;logoUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL for the logo of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bannerUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL for the banner of the nonprofit or campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitDescription&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The description of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The website URL of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;termsAndConditionsUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL of the terms and conditions page of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donationCampaigns response for a fixed amount donation&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;bash\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n    \\\\\\&quot;donationCampaigns\\\\\\&quot;: [\\\\n        {\\\\n            \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;DONATION_CAMPAIGN_ID\\\\\\&quot;,\\\\n            \\\\\\&quot;campaignName\\\\\\&quot;: \\\\\\&quot;DONATION_CAMPAIGN_NAME\\\\\\&quot;,\\\\n            \\\\\\&quot;donation\\\\\\&quot;: {\\\\n                \\\\\\&quot;currency\\\\\\&quot;: \\\\\\&quot;EUR\\\\\\&quot;,\\\\n                \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;fixedAmounts\\\\\\&quot;,\\\\n                \\\\\\&quot;values\\\\\\&quot;: [100, 200, 300]\\\\n            },\\\\n            \\\\\\&quot;nonprofitName\\\\\\&quot;: \\\\\\&quot;NONPROFIT_NAME\\\\\\&quot;,\\\\n            \\\\\\&quot;causeName\\\\\\&quot;: \\\\\\&quot;NONPROFIT_CAUSE\\\\\\&quot;,\\\\n            \\\\\\&quot;nonprofitDescription\\\\\\&quot;: \\\\\\&quot;NONPROFIT_DESCRIPTION.\\\\\\&quot;,\\\\n            \\\\\\&quot;nonprofitUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_WEBSITE_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;logoUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_LOGO_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;bannerUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_BANNER_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;termsAndConditionsUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_TERMS_AND_CONDITIONS_URL\\\\\\&quot;\\\\n        }\\\\n    ]\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&quot;,&quot;altTitle&quot;:&quot;fixed&quot;,&quot;oldTabId&quot;:&quot;fixed-get-campaigns_1&quot;,&quot;relation&quot;:&quot;fixed&quot;},{&quot;title&quot;:&quot;Round-up donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;From your server, make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; request, specifying:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&lt;\\\/th&gt;\\n&lt;th&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;code&gt;merchantAccount&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&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;Your merchant account name.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;currency&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&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 three-character &lt;a href=\\&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/ISO_4217\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot; class=\\&quot;external-link no-image\\&quot;&gt;ISO currency code&lt;\\\/a&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;locale&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The language in which you want to receive the donation campaign details in the response. The default is configured by the nonprofit. Set it to the shopper&#039;s language and country code, for example, &lt;code&gt;en-US&lt;\\\/code&gt;.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donationCampaigns request&#039;\\&quot; :id=\\&quot;&#039;get-donation-campaigns&#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\\\\\\\/v71\\\\\\\/donationCampaigns \\\\\\\\\\\\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;currency\\\\&amp;quot;:\\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n   \\\\&amp;quot;locale\\\\&amp;quot;:\\\\&amp;quot;en-US\\\\&amp;quot;\\\\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)\\\\nDonationCampaignsRequest donationCampaignsRequest = new DonationCampaignsRequest()\\\\n  .merchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  .currency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  .locale(\\\\&amp;quot;en-US\\\\&amp;quot;);\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nDonationsApi service = new DonationsApi(client);\\\\nDonationCampaignsResponse response = service.donationCampaigns(donationCampaignsRequest, 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\\\\\\\\DonationCampaignsRequest;\\\\nuse Adyen\\\\\\\\Service\\\\\\\\Checkout\\\\\\\\DonationsApi;\\\\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$donationCampaignsRequest = new DonationCampaignsRequest();\\\\n$donationCampaignsRequest\\\\n  -&amp;gt;setMerchantAccount(\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;)\\\\n  -&amp;gt;setCurrency(\\\\&amp;quot;EUR\\\\&amp;quot;)\\\\n  -&amp;gt;setLocale(\\\\&amp;quot;en-US\\\\&amp;quot;);\\\\n\\\\n$requestOptions[&#039;idempotencyKey&#039;] = &#039;UUID&#039;;\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\n$service = new DonationsApi($client);\\\\n$response = $service-&amp;gt;donationCampaigns($donationCampaignsRequest, $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)\\\\nDonationCampaignsRequest donationCampaignsRequest = new DonationCampaignsRequest\\\\n{\\\\n  MerchantAccount = \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  Currency = \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Locale = \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nvar service = new DonationsService(client);\\\\nvar response = service.DonationCampaigns(donationCampaignsRequest, 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 donationCampaignsRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  locale: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.DonationsApi.donationCampaigns(donationCampaignsRequest, { 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)\\\\ndonationCampaignsRequest := checkout.DonationCampaignsRequest{\\\\n  MerchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  Currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  Locale: common.PtrString(\\\\&amp;quot;en-US\\\\&amp;quot;),\\\\n}\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nservice := client.Checkout()\\\\nreq := service.DonationsApi.DonationCampaignsInput().IdempotencyKey(\\\\&amp;quot;UUID\\\\&amp;quot;).DonationCampaignsRequest(donationCampaignsRequest)\\\\nres, httpRes, err := service.DonationsApi.DonationCampaigns(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;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  \\\\&amp;quot;locale\\\\&amp;quot;: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.donations_api.donation_campaigns(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  :currency =&amp;gt; &#039;EUR&#039;,\\\\n  :locale =&amp;gt; &#039;en-US&#039;\\\\n}\\\\n\\\\n# Send the request\\\\nresult = adyen.checkout.donations_api.donation_campaigns(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 donationCampaignsRequest: Types.checkout.DonationCampaignsRequest = {\\\\n  merchantAccount: \\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;,\\\\n  currency: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n  locale: \\\\&amp;quot;en-US\\\\&amp;quot;\\\\n};\\\\n\\\\n\\\\\\\/\\\\\\\/ Send the request\\\\nconst checkoutAPI = new CheckoutAPI(client);\\\\nconst response = checkoutAPI.DonationsApi.donationCampaigns(donationCampaignsRequest, { 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&lt;p&gt;The response contains the details of your active donation campaigns. Use the fields from the response &lt;a href=\\&quot;#present-option-to-donate\\&quot;&gt;to display a checkbox suggesting to round up the order amount as a donation&lt;\\\/a&gt;.&lt;\\\/p&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donationCampaigns response for a round-up donation&#039;\\&quot; :id=\\&quot;&#039;&#039;\\&quot; :code-data=&#039;[{\\&quot;language\\&quot;:\\&quot;bash\\&quot;,\\&quot;tabTitle\\&quot;:\\&quot;\\&quot;,\\&quot;content\\&quot;:\\&quot;{\\\\n    \\\\\\&quot;donationCampaigns\\\\\\&quot;: [\\\\n        {\\\\n            \\\\\\&quot;id\\\\\\&quot;: \\\\\\&quot;DONATION_CAMPAIGN_ID\\\\\\&quot;,\\\\n            \\\\\\&quot;campaignName\\\\\\&quot;: \\\\\\&quot;DONATION_CAMPAIGN_NAME\\\\\\&quot;,\\\\n            \\\\\\&quot;donation\\\\\\&quot;: {\\\\n                \\\\\\&quot;currency\\\\\\&quot;: \\\\\\&quot;EUR\\\\\\&quot;,\\\\n                \\\\\\&quot;type\\\\\\&quot;: \\\\\\&quot;roundup\\\\\\&quot;,\\\\n                \\\\\\&quot;maxRoundupAmount\\\\\\&quot;: 100\\\\n            },\\\\n            \\\\\\&quot;nonprofitName\\\\\\&quot;: \\\\\\&quot;NONPROFIT_NAME\\\\\\&quot;,\\\\n            \\\\\\&quot;causeName\\\\\\&quot;: \\\\\\&quot;NONPROFIT_CAUSE\\\\\\&quot;,\\\\n            \\\\\\&quot;nonprofitDescription\\\\\\&quot;: \\\\\\&quot;NONPROFIT_DESCRIPTION.\\\\\\&quot;,\\\\n            \\\\\\&quot;nonprofitUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_WEBSITE_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;logoUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_LOGO_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;bannerUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_BANNER_URL\\\\\\&quot;,\\\\n            \\\\\\&quot;termsAndConditionsUrl\\\\\\&quot;: \\\\\\&quot;NONPROFIT_TERMS_AND_CONDITIONS_URL\\\\\\&quot;\\\\n        }\\\\n    ]\\\\n}\\&quot;}]&#039; :enable-copy-link-to-code-block=\\&quot;true\\&quot; :code-sample-card-size=\\&quot;&#039;fullsize&#039;\\&quot;&gt;&lt;\\\/code-sample&gt;\\n&lt;\\\/div&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&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;code&gt;id&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The unique campaign ID of the donation campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;campaignName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the donation campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;donation&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;Specifies the details of the donation. This object has: &lt;ul&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;roundup&lt;\\\/strong&gt;.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;currency&lt;\\\/code&gt;: The three-character &lt;a href=\\&quot;\\\/pt\\\/development-resources\\\/currency-codes\\\/\\&quot;&gt;ISO currency code&lt;\\\/a&gt;.&lt;\\\/li&gt;&lt;li markdown=\\&quot;1\\&quot;&gt;&lt;code&gt;maxRoundupAmount&lt;\\\/code&gt;: Specifies the maximum amount a transaction can be rounded up to make a donation.&lt;\\\/li&gt;&lt;\\\/ul&gt;&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;causeName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The cause of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;logoUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL for the logo of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;bannerUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL for the banner of the nonprofit or campaign.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitName&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The name of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitDescription&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The description of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;nonprofitUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The website URL of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;tr&gt;\\n&lt;td&gt;&lt;code&gt;termsAndConditionsUrl&lt;\\\/code&gt;&lt;\\\/td&gt;\\n&lt;td&gt;The URL of the terms and conditions page of the nonprofit.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&quot;,&quot;altTitle&quot;:&quot;roundup&quot;,&quot;oldTabId&quot;:&quot;round-get-campaigns_2&quot;,&quot;relation&quot;:&quot;roundup&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"present-option-to-donate\">Present the option to donate<\/h2>\n\n<div id=\"tabJpAcO\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Fixed amount donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Use the values you received in the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; response to show a donation form with one or more buttons for the shopper to select a donation amount. For example, &lt;strong&gt;Donate \\u20ac3&lt;\\\/strong&gt;, &lt;strong&gt;Donate \\u20ac5&lt;\\\/strong&gt;, and &lt;strong&gt;Donate \\u20ac10&lt;\\\/strong&gt;.&lt;\\\/p&gt;\\n&lt;p&gt;The donation form must:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;Show the name and description of the nonprofit.&lt;\\\/li&gt;\\n&lt;li&gt;Link to the nonprofit&#039;s &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations\\\/terms-and-conditions\\&quot;&gt;Terms &amp;amp; Conditions&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;Show the campaign banner and logo.&lt;\\\/li&gt;\\n&lt;li&gt;Have the option for the shopper to decline to donate. For example, a &lt;strong&gt;Not now&lt;\\\/strong&gt; button.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;The donation form can optionally include the cause of the nonprofit.&lt;\\\/p&gt;\\n&lt;p&gt;If the shopper paid with iDeal, tell the shopper that the donation transaction will show up in their bank statement a day or more later.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;fixed&quot;,&quot;oldTabId&quot;:&quot;fixed-present-donation-option_1&quot;,&quot;relation&quot;:&quot;fixed&quot;},{&quot;title&quot;:&quot;Round-up donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Use the values you received in the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donationCampaigns\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donationCampaigns&lt;\\\/a&gt; response to show a checkbox that suggests to round up the shopper&#039;s payment amount as a donation.&lt;\\\/p&gt;\\n&lt;p&gt;Use the following formula to calculate the round-up amount:&lt;\\\/p&gt;\\n&lt;pre&gt;&lt;code class=\\&quot;language-text\\&quot;&gt;roundupAmount = maxRoundupAmount - (commercialTxAmount % maxRoundupAmount)&lt;\\\/code&gt;&lt;\\\/pre&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;maxRoundupAmount&lt;\\\/code&gt;: The maximum amount the transaction can be rounded up, received in the &lt;code&gt;\\\/donationCampaigns&lt;\\\/code&gt; response.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;commercialTxAmount&lt;\\\/code&gt;: The original transaction amount for the shopper&#039;s order. This excludes the donation amount.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;The checkout page must:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;Show the name of the nonprofit.&lt;\\\/li&gt;\\n&lt;li&gt;Link to the nonprofit&#039;s website.&lt;\\\/li&gt;\\n&lt;li&gt;Link to the nonprofit&#039;s &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/donations\\\/terms-and-conditions\\&quot;&gt;Terms &amp;amp; Conditions&lt;\\\/a&gt;.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&lt;p&gt;If the shopper is paying with iDeal, tell the shopper that the donation transaction will show up in their bank statement a day or more later.&lt;\\\/p&gt;\\n&quot;,&quot;altTitle&quot;:&quot;roundup&quot;,&quot;oldTabId&quot;:&quot;round-present-donation-option_2&quot;,&quot;relation&quot;:&quot;roundup&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"make-a-donation\">Make a donation<\/h2>\n<p>Depending on the <a href=\"#how-it-works\">donation moment<\/a> for the campaign, you make a donation request at either time:<\/p>\n<ul>\n<li><strong>Pre-checkout donation<\/strong>: you first 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.  If the payment is authorized, and 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> or  <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> (for iDeal payments) response includes the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#responses-200-donationToken\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">donationToken<\/a> field, you make a donation request.<\/li>\n<li><strong>Post-checkout donation<\/strong>: you present the option to donate after the shopper completes the payment for their original transaction, you make a donation request and use the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#responses-200-donationToken\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">donationToken<\/a> you received in the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> or  <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> (for iDeal payments) response.<\/li>\n<\/ul>\n\n<div id=\"tabXlG0r\">\n    <div data-component-wrapper=\"tabs\">\n        <tabs\n                        :items=\"[{&quot;title&quot;:&quot;Fixed amount donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donations\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donations&lt;\\\/a&gt; request, specifying the following fields:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&lt;\\\/th&gt;\\n&lt;th&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\\\/donations#request-amount\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;amount&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 &lt;code&gt;currency&lt;\\\/code&gt; and &lt;code&gt;value&lt;\\\/code&gt; of the donation.&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\\\/donations#request-donationCampaignId\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationCampaignId&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 unique campaign ID from the &lt;code&gt;\\\/donationCampaigns&lt;\\\/code&gt; response &lt;code&gt;id&lt;\\\/code&gt; field.&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-paymentMethod\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;paymentMethod&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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;For cards, Apple Pay, or Google Pay: &lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;scheme&lt;\\\/strong&gt; &lt;br&gt; For iDEAL: &lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;sepadirectdebit&lt;\\\/strong&gt;&lt;br&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\\\/donations#request-donationOriginalPspReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationOriginalPspReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 PSP reference of the original payment.&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\\\/donations#request-donationOriginalPspReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationToken&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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;For cards, the &lt;code&gt;donationToken&lt;\\\/code&gt; from the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt;, or  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; response. &lt;br&gt; For iDEAL, the &lt;code&gt;donationToken&lt;\\\/code&gt; from the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; response.&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\\\/donations#request-reference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;reference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\\&quot;-\\&quot;). Maximum length: 80 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\\\/donations#request-merchantAccount\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;merchantAccount&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 merchant account identifier, with which you want to process the transaction.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donations request&#039;\\&quot; :id=\\&quot;&#039;make-a-donation-campaign-manager&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v71\\\\\\\/donations \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n        \\\\&amp;quot;value\\\\&amp;quot;: 500\\\\n    },\\\\n    \\\\&amp;quot;donationCampaignId\\\\&amp;quot;: \\\\&amp;quot;DONATION_CAMPAIGN_ID\\\\&amp;quot;,\\\\n    \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;scheme\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;donationOriginalPspReference\\\\&amp;quot;: \\\\&amp;quot;ORIGINAL_PAYMENT_PSP_REFERENCE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;donationToken\\\\&amp;quot;: \\\\&amp;quot;DONATION_TOKEN\\\\&amp;quot;,\\\\n    \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_DONATION_REFERENCE\\\\&amp;quot;\\\\n    \\\\&amp;quot;merchantAccount\\\\&amp;quot;:\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;\\\\n}&#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&lt;p&gt;The response contains:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;id&lt;\\\/code&gt;: a unique resource identifier.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;status&lt;\\\/code&gt;: the status of the donation. Possible values: &lt;strong&gt;completed&lt;\\\/strong&gt;, &lt;strong&gt;pending&lt;\\\/strong&gt;, or &lt;strong&gt;refused&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;payment&lt;\\\/code&gt;: object that contains the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/payment-result-codes\\\/#final-payment-status\\&quot;&gt;result code&lt;\\\/a&gt;, and the &lt;code&gt;pspReference&lt;\\\/code&gt; for the donation transaction.&lt;\\\/li&gt;\\n&lt;li&gt;The request body.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&quot;,&quot;altTitle&quot;:&quot;fixed&quot;,&quot;oldTabId&quot;:&quot;fixed-make-donation_1&quot;,&quot;relation&quot;:&quot;fixed&quot;},{&quot;title&quot;:&quot;Round-up donations&quot;,&quot;content&quot;:&quot;\\n&lt;p&gt;Make a POST  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/donations\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/donations&lt;\\\/a&gt; request, specifying the following fields:&lt;\\\/p&gt;\\n&lt;table&gt;\\n&lt;thead&gt;\\n&lt;tr&gt;\\n&lt;th&gt;Field name&lt;\\\/th&gt;\\n&lt;th&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\\\/donations#request-amount\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;amount&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 &lt;code&gt;currency&lt;\\\/code&gt; and &lt;code&gt;value&lt;\\\/code&gt; of the donation.&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\\\/donations#request-donationCampaignId\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationCampaignId&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 unique campaign ID from the &lt;code&gt;\\\/donationCampaigns&lt;\\\/code&gt; response &lt;code&gt;id&lt;\\\/code&gt; field.&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-paymentMethod\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;paymentMethod&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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;For cards, Apple Pay, or Google Pay: &lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;scheme&lt;\\\/strong&gt; &lt;br&gt; For iDeal: &lt;code&gt;type&lt;\\\/code&gt;: &lt;strong&gt;sepadirectdebit&lt;\\\/strong&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\\\/donations#request-donationOriginalPspReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationOriginalPspReference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 PSP reference of the original payment.&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\\\/donations#request-donationOriginalPspReference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;donationToken&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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;For cards, the &lt;code&gt;donationToken&lt;\\\/code&gt; from the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments&lt;\\\/a&gt; response. &lt;br&gt; For iDeal, the &lt;code&gt;donationToken&lt;\\\/code&gt; from the  &lt;a href=\\&quot;https:\\\/\\\/docs.adyen.com\\\/api-explorer\\\/Checkout\\\/latest\\\/post\\\/payments\\\/details\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;\\\/payments\\\/details&lt;\\\/a&gt; response.&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\\\/donations#request-reference\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;reference&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\\&quot;-\\&quot;). Maximum length: 80 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\\\/donations#request-merchantAccount\\&quot; class=\\&quot;codeLabel  external-link no-image\\&quot; target=\\&quot;_blank\\&quot; rel=\\&quot;nofollow noopener noreferrer\\&quot;&gt;merchantAccount&lt;\\\/a&gt;&lt;\\\/td&gt;\\n&lt;td&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 merchant account identifier, with which you want to process the transaction.&lt;\\\/td&gt;\\n&lt;\\\/tr&gt;\\n&lt;\\\/tbody&gt;\\n&lt;\\\/table&gt;\\n&lt;div data-component-wrapper=\\&quot;code-sample\\&quot;&gt;\\n    &lt;code-sample :title=\\&quot;&#039;Example POST \\\/donations request&#039;\\&quot; :id=\\&quot;&#039;make-a-donation-campaign-manager-roundup&#039;\\&quot; :code-data=\\&quot;[{&amp;quot;language&amp;quot;:&amp;quot;bash&amp;quot;,&amp;quot;tabTitle&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;curl https:\\\\\\\/\\\\\\\/checkout-test.adyen.com\\\\\\\/v71\\\\\\\/donations \\\\\\\\\\\\n-H &#039;x-api-key: ADYEN_API_KEY&#039; \\\\\\\\\\\\n-H &#039;content-type: application\\\\\\\/json&#039; \\\\\\\\\\\\n-d &#039;{\\\\n    \\\\&amp;quot;amount\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;currency\\\\&amp;quot;: \\\\&amp;quot;EUR\\\\&amp;quot;,\\\\n        \\\\&amp;quot;value\\\\&amp;quot;: 99\\\\n    },\\\\n    \\\\&amp;quot;donationCampaignId\\\\&amp;quot;: \\\\&amp;quot;DONATION_CAMPAIGN_ID\\\\&amp;quot;,\\\\n    \\\\&amp;quot;paymentMethod\\\\&amp;quot;: {\\\\n        \\\\&amp;quot;type\\\\&amp;quot;: \\\\&amp;quot;scheme\\\\&amp;quot;\\\\n    },\\\\n    \\\\&amp;quot;donationOriginalPspReference\\\\&amp;quot;: \\\\&amp;quot;ORIGINAL_PAYMENT_PSP_REFERENCE\\\\&amp;quot;,\\\\n    \\\\&amp;quot;donationToken\\\\&amp;quot;: \\\\&amp;quot;DONATION_TOKEN\\\\&amp;quot;,\\\\n    \\\\&amp;quot;reference\\\\&amp;quot;: \\\\&amp;quot;YOUR_DONATION_REFERENCE\\\\&amp;quot;\\\\n    \\\\&amp;quot;merchantAccount\\\\&amp;quot;:\\\\&amp;quot;YOUR_MERCHANT_ACCOUNT\\\\&amp;quot;\\\\n}&#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&lt;p&gt;The response contains:&lt;\\\/p&gt;\\n&lt;ul&gt;\\n&lt;li&gt;&lt;code&gt;id&lt;\\\/code&gt;: a unique resource identifier.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;status&lt;\\\/code&gt;: the status of the donation. Possible values: &lt;strong&gt;completed&lt;\\\/strong&gt;, &lt;strong&gt;pending&lt;\\\/strong&gt;, or &lt;strong&gt;refused&lt;\\\/strong&gt;.&lt;\\\/li&gt;\\n&lt;li&gt;&lt;code&gt;payment&lt;\\\/code&gt;: object that contains the &lt;a href=\\&quot;\\\/pt\\\/online-payments\\\/build-your-integration\\\/payment-result-codes\\\/#final-payment-status\\&quot;&gt;result code&lt;\\\/a&gt;, and the &lt;code&gt;pspReference&lt;\\\/code&gt; for the donation transaction.&lt;\\\/li&gt;\\n&lt;li&gt;The request body.&lt;\\\/li&gt;\\n&lt;\\\/ul&gt;\\n&quot;,&quot;altTitle&quot;:&quot;roundup&quot;,&quot;oldTabId&quot;:&quot;round-make-donation_2&quot;,&quot;relation&quot;:&quot;roundup&quot;}]\"\n            :should-update-when-url-changes='true'>\n        <\/tabs>\n    <\/div>\n<\/div>\n\n<h2 id=\"get-the-donation-outcome\">Get the donation outcome<\/h2>\n You get the donation outcome of each donation in a webhook message.\n<p>To receive these webhook messages, enable the <a href=\"\/pt\/development-resources\/webhooks\/webhook-types#other-webhooks\">Adyen Giving merchant webhook<\/a>, which includes <code>eventCode<\/code>: <span translate=\"no\"><strong>DONATION<\/strong><\/span>.<\/p>\n<p>For a successful donation, the event contains:<\/p>\n<ul>\n<li><code>success<\/code>: <span translate=\"no\"><strong>true<\/strong><\/span>.<\/li>\n<li><code>originalReference<\/code>: use this value to associate the donation with the shopper's original transaction.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Successful donation webhook event'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"live\\\": \\\"false\\\",\\n  \\\"notificationItems\\\": [\\n    {\\n      \\\"NotificationRequestItem\\\": {\\n        \\\"additionalData\\\": {\\n          \\\"originalMerchantAccountCode\\\": \\\"YOUR_MERCHANT_ACCOUNT\\\"\\n        },\\n        \\\"amount\\\": {\\n          \\\"currency\\\": \\\"EUR\\\",\\n          \\\"value\\\": 500\\n        },\\n        \\\"originalReference\\\": \\\"V4HZ4RBFJGXXGN82\\\",\\n        \\\"eventCode\\\": \\\"DONATION\\\",\\n        \\\"eventDate\\\": \\\"2022-07-07T13:18:13+02:00\\\",\\n        \\\"merchantAccountCode\\\": \\\"CHARITY_DONATION_ACCOUNT\\\",\\n        \\\"merchantReference\\\": \\\"YOUR_DONATION_REFERENCE\\\",\\n        \\\"paymentMethod\\\": \\\"visa\\\",\\n        \\\"pspReference\\\": \\\"Z58FGTKBRCQ2WN27\\\",\\n        \\\"reason\\\": \\\"033899:1111:03\\\/2030\\\",\\n        \\\"success\\\": \\\"true\\\"\\n      }\\n    }\\n  ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"test-and-go-live\">Test and go live<\/h2>\n<p>Before going live with your integration, <a href=\"\/pt\/online-payments\/donations\/testing\">use our test cards to test your integration<\/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\/api-only\"\n                        target=\"_self\"\n                        >\n                    API only integration\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><li><a href=\"\/reporting\/monitor-donations\/\"\n                        target=\"_self\"\n                        >\n                    Monitor donations\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/donations\/api-only","articleFields":{"description":"Add Adyen Giving Campaign Manager to an existing API-only integration.","feedback_component":true,"parameters":{"payment_method":"Giving","country_code":"NL","currency":"EUR","component_name":"donation","built_integration":"<a href=\"\/online-payments\/api-only\">Built an API-only integration<\/a>"},"filters_component":false,"last_edit_on":"22-01-2024 10:14","page_id":"9ebf9f6b-2b70-4080-b53b-f6cda18b718c","decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/donations\/api-only","title":"Giving for API only","content":"Accept donations for a nonprofit with the Giving API-only integration that gives you the flexibility to customize the donation flow. You build your own donation form to accept donations, and have full control of the style, visual elements, and user interface.\nIf the shopper chooses to make a donation, the donation transaction uses the same payment method that the shopper used to make the original payment.\nWith an API-only integration, you can accept donations for fixed amounts, or allow the shopper to round up their transaction amount as a donation. You can present the option to donate before or after the shopper completes the payment for the original transaction.\nRequirements\nIn addition to the general Adyen Giving requirements, take into account the following information.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have built an API only integration using Checkout API v67 or later.\n\n\nCustomer Area roles\nMake sure that you have the Donation campaigns manager role.\n\n\nWebhooks\nSubscribe to the following webhook(s): Standard webhooksAdyen Giving merchant webhook\n\n\nSetup steps\nBefore you begin: To check if your Customer Area user has the required roles, go to Account &gt; Users. If you need additional roles, contact your admin user.Enable and integrate with the payment methods that you want to support.Create and activate a donation campaign.\n\n\n\nHow it works\nThe donation flow depends on the donation moment:\n\n\n    \n        \n        \n    \n\n\nGet details of your active donation campaigns\nDepending on the donation moment that you choose, get the details of your active donation campaigns at either moment:\n\nWhen a shopper proceeds to pay for their original transaction with a payment method that supports donations.\nWhen a shopper completes their original transaction with a payment method that supports donations, and the  \/payments or  \/payments\/details (for iDeal payments) response includes the  donationToken field.\n\nWhen you make a request to get your active donation campaigns, the response you receive depends on your donation type:\n\n\n    \n        \n        \n    \n\n\nPresent the option to donate\n\n\n    \n        \n        \n    \n\n\nMake a donation\nDepending on the donation moment for the campaign, you make a donation request at either time:\n\nPre-checkout donation: you first make a  \/payments request.  If the payment is authorized, and the  \/payments or  \/payments\/details (for iDeal payments) response includes the  donationToken field, you make a donation request.\nPost-checkout donation: you present the option to donate after the shopper completes the payment for their original transaction, you make a donation request and use the  donationToken you received in the  \/payments or  \/payments\/details (for iDeal payments) response.\n\n\n\n    \n        \n        \n    \n\n\nGet the donation outcome\n You get the donation outcome of each donation in a webhook message.\nTo receive these webhook messages, enable the Adyen Giving merchant webhook, which includes eventCode: DONATION.\nFor a successful donation, the event contains:\n\nsuccess: true.\noriginalReference: use this value to associate the donation with the shopper's original transaction.\n\n\n    \n\nTest and go live\nBefore going live with your integration, use our test cards to test your integration.\nSee also\n\n\n                    API only integration\n                \n                    Webhooks\n                \n                    API Explorer\n                \n                    Monitor donations\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Donations using Giving","lvl3":"Giving for API only"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/online-payments","lvl2":"https:\/\/docs.adyen.com\/pt\/online-payments\/donations","lvl3":"\/pt\/online-payments\/donations\/api-only"},"levels":4,"category":"Online Payments","category_color":"green","tags":["Giving"]},"articleFiles":{"api-pre-flow.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/api-pre-flow.svg?decoding=auto&amp;fetchpriority=auto\" \/>","campaign-manager-api.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/campaign-manager-api.svg?decoding=auto&amp;fetchpriority=auto\" \/>","flow-post-checkout.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/flow-post-checkout.svg\" \/>","flow-pre-checkout.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/flow-pre-checkout.svg\" \/>","post-checkout.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/post-checkout.svg\" \/>","postman-logo-vertical-orange-2021.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/postman-logo-vertical-orange-2021.svg\" \/>","pre-checkout.svg":"<img alt=\"\" src=\"https:\/\/docs.adyen.com\/user\/pages\/docs\/02.online-payments\/24.donations\/04.api-only\/pre-checkout.svg\" \/>"}}
