---
title: "Test your Giving integration"
description: "Learn how to test your Giving integration before going live."
url: "https://docs.adyen.com/online-payments/donations/testing"
source_url: "https://docs.adyen.com/online-payments/donations/testing.md"
canonical: "https://docs.adyen.com/online-payments/donations/testing"
last_modified: "2023-09-21T13:20:00+02:00"
language: "en"
---

# Test your Giving integration

Learn how to test your Giving integration before going live.

[View source](/online-payments/donations/testing.md)

Before you go live with donations, test your integration to make sure that your nonprofit receives the donations from your shoppers. We recommend to test your integration in the [test environment](#test-environment), and [live environment](#live-environment). In each environment, test the following:

1. Creating and activating a donation campaign.
2. Making a donation.
3. Getting the donation outcome in the [Adyen Giving merchant webhook](/development-resources/webhooks/webhook-types/#other-webhooks).

## Test environment

### Create and activate a test donation campaign

1. In your [test Customer Area](https://ca-test.adyen.com/), go to **Giving** > **Campaigns**.

2. [Create a test campaign](/online-payments/donations/#managing-donation-campaigns) using one of our demo nonprofits.

3. Select **Start campaign** for the campaign you configured to:

   * Activate the campaign.
   * Start receiving the `donationToken` in the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) or [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) responses.

### Make a test donation

To test donations using iDEAL, contact our [Support Team](https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other) for additional configuration.

After you have started a campaign, verify that the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) or [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) response contains a `donationToken`.

When you make a [/donationCampaigns](https://docs.adyen.com/api-explorer/Checkout/latest/post/donationCampaigns) request, verify that the details returned in the response are correct.

Using your integration, make test donations using our [test cards](#test-cards).

### Get the test donation outcome

For each test donation that you make, verify that you get a [**DONATION** webhook](/development-resources/webhooks/webhook-types/#other-webhooks).

## Live environment

### Create and activate a live donation campaign

1. In your Live [Customer Area](https://ca-live.adyen.com/), go to **Giving** > **Campaigns**.

   If you do not see **Giving** section in your Customer Area, reach out to your Adyen contact or our [Support Team](https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other).

2. [Create a campaign](/online-payments/donations/#managing-donation-campaigns) for your nonprofit.

3. Select **Start campaign** for the campaign you configured to:

   * Activate the campaign.
   * Start receiving the `donationToken` in the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) or [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) responses.

### Enable the webhook for the live environment

In your live [Customer Area](https://ca-live.adyen.com/), enable the [Adyen Giving merchant webhook](/development-resources/webhooks/webhook-types/#other-webhooks).

### Make donations for your live campaign

After you have started a campaign, verify that the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) or [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) response contains a `donationToken`.

When you make a [/donationCampaigns](https://docs.adyen.com/api-explorer/Checkout/latest/post/donationCampaigns) request, verify that the details returned in the response are correct.

Using your integration, make a donation to your nonprofit.

### Get the donation outcome

You can verify the outcome of the donation by either:

* Getting the [**DONATION** webhook](/development-resources/webhooks/webhook-types/#other-webhooks) for your donation.
* Finding the donation in a [Giving report or dashboard](/reporting/monitor-donations).

## Troubleshooting

If an issue occurs with your test donation requests, you can find more details in the [API logs](/development-resources/logs-resources/api-logs/).

## Test cards for donations

You can use the test card details below to make test donations.

| Card Number         | Card Type           | Issuing Country/region | Expiry Date | CVC  |
| ------------------- | ------------------- | ---------------------- | ----------- | ---- |
| 3700 0000 0000 002  | American Express    | NL                     | 03/2030     | 7373 |
| 3700 0000 0100 018  | American Express    | NL                     | 03/2030     | 7373 |
| 5555 3412 4444 1115 | Mastercard Consumer | NL                     | 03/2030     | 737  |
| 5201 2820 5004 2993 | Mastercard          | RU                     | 03/2030     | 737  |
| 5454 5464 9832 4682 | Mastercard          | PL                     | 03/2030     | 737  |
| 2223 5204 4356 0010 | Mastercard Debit    | NL                     | 03/2030     | 737  |
| 5103 2219 1119 9245 | Mastercard Prepaid  | BR                     | 03/2030     | 737  |
| 3569 9900 1009 5841 | JCB                 | US                     | 03/2030     | 737  |
| 6011 6011 6011 6611 | Discover            | US                     | 03/2030     | 737  |
| 6445 6445 6445 6445 | Discover            | GB                     | 03/2030     | 737  |
| 6445 6445 6445 6445 | Carte Bancaire      | FR                     | 03/2030     | 737  |
| 4871 0499 9999 9910 | Bancontact          | BE                     | 03/2030     | 737  |

The following test card doesn't require the CVC when entering the card details. You must use this card to test Visa payments.

| Card Number         | Card Type | Issuing Country/region | Expiry Date | CVC |
| ------------------- | --------- | ---------------------- | ----------- | --- |
| 4111 1111 4555 1142 | Visa      | NL                     | 03/2030     | 737 |

### Test 3D Secure 2 authentication with donations

The following test cards are enrolled in 3D Secure 2.

| Card Number         | Card Type        | Issuing Country/region | Expiry Date | CVC  |
| ------------------- | ---------------- | ---------------------- | ----------- | ---- |
| 3714 4963 5398 431  | American Express | US                     | 03/2030     | 7373 |
| 6011 1111 1111 1117 | Discover         | US                     | 03/2030     | 737  |
| 5111 1200 3000 8958 | Mastercard       | NL                     | 03/2030     | 737  |

The following test card has [TRA exemption](https://www.visa.co.uk/content/dam/VCOM/regional/ve/unitedkingdom/PDF/sca/strong-customer-authentication-out-of-scope-and-exempt-transactions.pdf). In your payment request, include `threeDSRequestorChallengeInd`: **"05"**.

| Card Number        | Card Type        | Issuing Country/region | Expiry Date | CVC |
| ------------------ | ---------------- | ---------------------- | ----------- | --- |
| 3714 4963 5398 431 | Commercial Debit | RU                     | 03/2030     | 737 |

## See also

* [Webhooks](/development-resources/webhooks)
* [Monitor donations](/reporting/monitor-donations)
