Read more
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.How it works
To enable your users to accept donations at checkout:- Choose a nonprofit.
-
Set up an account holder donation campaign in your Customer Area, under Giving > Campaigns.
You need to select:- The account holders that you want to make the campaign available to.
- The nonprofit.
- The stores and donation settings.
- Make sure that your integration can show the active campaign in your checkout, and make a request for the amount that the shopper wants to donate. See Online payments flow.
- Make sure you have a way to show the nonprofit’s terms and conditions.
- To inform shoppers about their donation, make sure that you can process Giving webhook messages.
- Start the campaign from the Campaigns overview in your Customer Area.
Donation settings
With our Giving integration, you have the flexibility to choose a combination of donation type and donation moment. However, there are limitations to the supported choices, depending on region and currency and payment method.Donation type
In your donation campaign you can configure the following donation types:- Fixed amounts: up to three fixed amounts to present to shoppers when they make a payment. Your checkout should provide a selection mechanism, such as donation buttons for these amounts.
- Round up: allow shoppers to donate by rounding up the transaction amount of their purchase. Your checkout should show a round-up checkbox. We recommend rounding up to the nearest whole amount.
Donation moment
Your integration can present the option to donate at different moments in your checkout flow:- Pre-checkout: the shopper can review the total transaction amount that includes the donation before completing their payment.
- Post-checkout: the shopper can contribute to your donation campaign after completing their payment. This gives you flexibility to align Giving with your existing checkout process.
Set up a donation campaign for account holders
The Campaigns user interface in the Customer Area guides you through setting up a donation campaign, and shows example screens. The main steps to create an Adyen Giving donation campaign for your account holders are as follows:- In your Customer Area, go to Giving > Campaigns.
- Select Create new campaign > For account holders.
-
Add the account holders to the campaign, one by one or as a group:
- One by one: select Search accounts, select your balance platform, and search by account holder ID or reference, legal entity ID or name, or email address. Then select Add in the tile of the individual account holder.
- Group: select Submit a list of accounts, select your balance platform, enter a comma-separated list of account holder IDs, and select Add.
-
Select the campaign details:
- The nonprofit.
- Either a specific cause, or “General fundraising”.
- The sales channel: online payments (ecommerce), in-person payments (point of sale), or both.
-
If you selected online payments, first select the stores that the campaign applies to.
Then select the donation type. When you choose fixed amounts and enter the amounts in your default currency, we automatically add equivalent amounts in other currencies if necessary for the selected stores. -
If you selected in-person payments, first select the stores that the campaign applies to.
Then refer to in-person donation settings, and select:- The one-step or two-step interaction flow.
- Timeouts for the donation prompt and the payment screen.
- The text to show on the donation screen on the terminal: the name of the nonprofit or the cause you selected.
- The donation type. When you choose fixed amounts and enter the amounts in your default currency, we automatically add equivalent amounts in other currencies if necessary for the selected stores.
- Review the summary. When everything is correct, select Create campaign.
- In your Customer Area, go to Giving > Campaigns.
- Find the tile for the campaign, and select Start.
Online payments flow
The donation flow depends on the donation moment:- Pre-checkout donations
- Post-checkout donations
- Fixed amount donations
- Round-up donations
- Fixed amount donations
- Round-up donations
- Fixed amount donations
- Round-up donations
When your shopper goes to the checkout page and proceeds to pay with a payment method that supports donations:
- From your server, make a /donationCampaigns request to get the details of your active donation campaigns.
-
Depending on the donation type of the campaign, present the option to donate by either:
- Show the shopper a donation form with fixed amounts.
- Show the shopper a round-up checkbox that suggests to round up their payment amount as a donation.
- From your server, make a /payments request to make the payment for the original transaction.
- After you get the /payments response, make a /donations request to make a donation.
- Get the outcome from a webhook and show it to the shopper.