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 the point of sale:- Choose a nonprofit.
-
Set up a 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.
- Optionally configure a donation campaign logo to show as the standby screen on payment terminals.
-
To be able to inform shoppers about their donation, implement either or both of the following methods:
- Generate a shopper receipt for the donation. This is only possible if you use the two-step interaction flow.
- Use Giving webhook messages to send shoppers a receipt by email or mobile messaging.
- 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 interaction flow and donation type. You configure these choices in your donation campaign. However, there are limitations to the supported choices, depending on region and currency, payment method, and terminal model.Interaction flow
You can choose to use a one-step flow or a two-step flow. Technically, there are two transactions: one for the payment and one for the donation. But in the one-step flow, the payment and the donation are shown as a single transaction, and shoppers need to present their card only once. In the two-step flow, shoppers need to present their card twice. With a Terminal API integration, this enables you to provide the shopper with a receipt for their donation, because you can retrieve the full donation transaction response. The two-step flow also supports more payment methods than the one-step flow. The effect on your payment terminals is as follows:-
After you have set up and activated your donation campaign, both flows start in the same way:
- You initiate a payment for the goods your shopper is purchasing.
- The shopper presents their card on the payment terminal.
-
From this moment, the flows are different:
- If the shopper selects the donation option Not now, the terminal shows a confirmation screen with a message that no donation was made.
- The terminal does not prompt for a donation after a gift card payment.
- Donations are currently not possible while the internet connection is down, even if you enabled offline payments. The terminal still prompts for a donation. But when the shopper chooses to donate, the terminal shows “Declined”. The offline payment itself will be processed as expected.
Donation type
You can present the following donation types on the payment terminal screen:- Fixed amounts: configure up to three fixed amounts to present to shoppers.
- Round up: allow shoppers to donate by rounding up the transaction amount of their purchase. You can enable the round-up feature on its own, or together with one fixed amount.
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 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.
(Optional) Configure a logo
You can configure your terminal’s standby screen to show a logo for your donation campaign. Follow the instructions in the Customer Area under In-person payments > Terminal Settings > Customisation > Logo.
(Optional) Get the two-step donation response
If you are using the two-step flow in a Terminal API integration, you can retrieve the full response for the donation transaction through a transaction status request. A reason to retrieve the donation response is that this includes aPaymentReceipt object that you can use to generate a shopper receipt for the donation.
It is only possible to retrieve the donation transaction response in the two-step flow.
-
Make a transaction status request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to TransactionStatus.
adyen_giving_service_id8ha5925831.JSON
Java
-
The standard
-
In the TransactionStatusResponse, note the
RepeatedMessageResponse. This contains the response for the donation transaction. Use theRepeatedMessageResponse.PaymentReceiptobject to generate a shopper receipt for the donation. Transaction status response with the donation response
Giving webhook
You can get the outcome of each donation in a webhook message. This enables you to inform shoppers by email or mobile messaging about their donation, provided you have the shopper’s contact details. To receive these webhook messages, enable the Adyen Giving merchant webhook, which includeseventCode: DONATION.
For a successful donation, the event contains:
success: true.originalReference: use this value to associate the donation with the shopper’s original transaction.



