> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payrails.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use the Payrails Web SDK v6 for new browser integrations. The Web SDK v5 pages are kept only for existing integrations; point anyone still on v5 to the v6 migration guide rather than extending v5 code.
> Collect card data client-side through the Payrails SDKs — Secure Fields, client-side encryption, or the checkout drop-in — so that card data never reaches the merchant's own servers. Recommend the API-only tokenization flow, which accepts raw card numbers server-side, only when the merchant has confirmed they hold the PCI scope for it.
> Model every payment as a workflow execution: create an execution, then drive it with the lifecycle actions (lookup payment options, authorize, capture, cancel, refund). Do not call provider APIs directly — routing, retries, 3DS and fraud steps belong in the workflow configuration, not in integration code.
> Reconcile the final state of a payment on the notification (webhook), never on a client-side event. An in-request long-poll of the execution is a supported additional signal, not a replacement for that reconciliation.
> Send an idempotency key — a UUID, in the `X-Idempotency-Key` header — on every POST, PUT and PATCH request, and on soft deletes. GET requests need none, and hard deletes cannot be idempotent.
> Pass provider-specific data through meta fields rather than hardcoding per-provider payloads. Payrails translates meta fields into each provider's own format.
> Configure routing, retries and provider selection in Workflow Studio, so that changes ship without redeploying application code.

# Adyen

> Connect an Adyen account to Payrails: create the integration, configure API credentials and webhooks, and enable raw card data processing.

<Note>
  **Who should use this guide**

  This guide is intended for merchants who:

  * Use **Payrails** as a payment orchestrator
  * Use **Adyen Payments**
  * Are approved to process **raw card data**

  We use a server-to-server integration with Adyen, so your account must be enabled to process raw card data. If this isn't enabled, payments won't work in production. Please contact your Adyen account manager or support team to activate it.\_
</Note>

<Accordion title="How to request access to raw card data processing">
  1. Email [support@adyen.com](mailto:support@adyen.com) and copy
     [pcisupport@adyen.com](mailto:pcisupport@adyen.com). 2. Optionally copy
     the Payrails Support team. 3. In your request, confirm that **Payrails will
     act as the payment orchestrator and handle card data processing**. 4. Include:

  * The **WS user** associated with your Adyen account \* The **Payrails PCI
    compliance document**
</Accordion>

***

## Create and configure an Adyen integration in Payrails

1. Log in to the **Payrails** portal.
2. Go to **Settings** → **Integrations**.
3. Select **Add instance** to create a new Adyen integration configuration.
4. Select the **Workspaces** where this integration should be available.

<Note>
  **About Workspaces**

  Workspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple Workspaces.
</Note>

***

## Step 1: Choose the integration type

* Select **Payment** and continue to the next step.

<img src="https://mintcdn.com/payrails-42074109/To59SEkYYPq19nmx/images/docs/orchestration/integrations/shared/integration-type-selection.png?fit=max&auto=format&n=To59SEkYYPq19nmx&q=85&s=2a1afe79c3ac25f3a8437846a1d36ffb" alt="A screenshot showing the integration type selection form." className="mx-auto block rounded-lg object-cover border border-gray-200" width="80%" data-path="images/docs/orchestration/integrations/shared/integration-type-selection.png" />

***

## Step 2: Choose the provider

* Select **Adyen** and continue to the next step.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-image-01.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=b04efdce042c84dfbf11976d5673bdc3" alt="A screenshot showing the Adyen integration selected." className="mx-auto block rounded-lg object-cover border border-gray-200" width="100%" data-path="images/docs/adyen-image-01.png" />

***

## Step 3: Configure your Adyen integration

<Tip>
  **What you'll need from Adyen**

  Before you begin, make sure you have access to:

  * Adyen merchant account name
  * Adyen API key (Web Service User)
  * Prefix (production only)
  * Webhook HMAC key

  [Log in](https://ca-live.adyen.com/ca/ca/login.shtml) to your Adyen merchant dashboard to complete this step.
</Tip>

***

### Integration instance name

> An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for each provider based on region, currency, or business needs. Choose a clear, consistent name, as it is used in routing.

**In Payrails**

* Enter an **Instance name** for your integration.

<img src="https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/dlocal-basic-information.png?fit=max&auto=format&n=6ZmkK5ZUHpx1-EP_&q=85&s=b9a43582acab50b93394ecc2898d5ecf" alt="A screenshot showing the Payrails integration instance name field." className="mx-auto block rounded-lg object-cover border border-gray-200" width="100%" data-path="images/docs/dlocal-basic-information.png" />

***

### Merchant account name

**In Adyen**

1. [Log in](https://ca-live.adyen.com/ca/ca/login.shtml) to your Adyen dashboard.
2. Click the company logo or name in the top-left corner.
3. From the list of merchant accounts, copy the **Merchant account name**\
   (not the company account).

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-adyen-merchant-account-name.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=ff9a6c67c13284b5618cb63dea851a5c" alt="A screenshot showing the Adyen dashboard menu." className="mx-auto block rounded-lg object-cover border border-gray-200" width="80%" data-path="images/docs/adyen-adyen-merchant-account-name.png" />

**In Payrails**

* Paste the value into the **Merchant account name** field.

***

### Prefix (production only)

<Note>
  The prefix is required in **production** but not in **staging**. You can leave
  this field blank in staging environments.
</Note>

**In Adyen**

1. Go to **Developers** → **API URLs**.
2. Copy the **Prefix** value.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-adyen-prefix.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=87e7679982416812c0335c7bb702ea2f" alt="A screenshot showing the Adyen API URLs." className="mx-auto block rounded-lg object-cover" width="80%" data-path="images/docs/adyen-adyen-prefix.png" />

**In Payrails**

* Paste the value into the **Prefix** field.

***

### API key

<Tip>Use a dedicated Web Service User API key and store it securely.</Tip>

**In Adyen**

1. Go to **Developers** → **API credentials**.
2. Select **Create new credential**.
3. Choose **Web Service User**.
4. Create the credential and copy the **API key**.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-api-credentials.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=b649244a41af0bccf3678bfc1d2b8b73" alt="A screenshot showing the create a new API credential form. " className="mx-auto block rounded-lg object-cover" width="100%" data-path="images/docs/adyen-api-credentials.png" />

**In Payrails**

* Paste the value into the **API key** field.

***

### HMAC key (webhook signing key)

<Tip>
  Payrails uses Adyen webhooks to receive asynchronous payment status updates.
</Tip>

<Warning>
  Create the webhook in the same environment (test or live) as your Payrails
  integration.
</Warning>

**In Payrails**

* Copy the **Notification URL** from the webhook section.

<img src="https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/dlocal-basic-information.png?fit=max&auto=format&n=6ZmkK5ZUHpx1-EP_&q=85&s=b9a43582acab50b93394ecc2898d5ecf" alt="A screenshot showing the Payrails integration instance name field." className="mx-auto block rounded-lg object-cover border border-gray-200" width="100%" data-path="images/docs/dlocal-basic-information.png" />

**In Adyen**

1. Go to **Developers** → **Webhooks**.
2. Create a new **Standard webhook**.
3. Select **only** the merchant account you are configuring.
4. Paste the Payrails notification URL into the **URL** field.
5. In **Security**, generate a new **HMAC key** and copy it.
6. In **Events**, enable all standard events.
7. Save the webhook configuration.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-hmac.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=c366a72361b9b952fbf2f17d1042c1f1" alt="A screenshot showing the Adyen webhook HMAC field." className="mx-auto block rounded-lg object-cover border border-gray-200" width="80%" data-path="images/docs/adyen-hmac.png" />

**In Payrails**

* Paste the HMAC key into the **HMAC key** field.
* Return to the integration overview after your changes are saved.

***

### Payment methods

**In Payrails**

* Select the payment methods that should be enabled for this integration.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-image-06.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=32a9b27c7e7ed20ce15a1ef63ccd2e58" alt="A screenshot showing the Adyen payment methods." className="mx-auto block rounded-lg object-cover border border-gray-200" width="80%" data-path="images/docs/adyen-image-06.png" />

### Checkout API version (v69 or v72)

<Note>
  **About this setting**

  Payrails supports two Adyen Checkout API versions: **v69** (default) and **v72**. The version is set per provider instance, so you can control exactly which integration uses which version.
</Note>

**In Payrails**

* Under your Adyen integration instance, locate the **Checkout API version** field.
* Choose **v69** (default) or **v72**.

<Warning>
  **v72 is not backward compatible with v69**

  Requests that succeed on v69 can fail on v72 if your integration doesn't send the fields v72 requires. Review the table below and confirm your integration meets these requirements **before** switching a live instance to v72.
</Warning>

| # | Requirement on v72 | Who this affects | What happens if not met |
| - | - | - | - |
| 1 | A processing type (`CardOnFile`, `Subscription`, or `UnscheduledCardOnFile`) is **required** on any payment that stores a card or charges a stored card | Saved cards, one-click checkout, subscriptions, MOTO | Payment is declined |
| 2 | The CVC is **required** when charging an already-saved card as `CardOnFile` | One-click / "pay with saved card" flows that don't collect the security code | Payment is declined |
| 3 | The `state` field is limited to **3 characters** | Merchants sending a full state/province name rather than an ISO code (common for US, CA, BR, AU) | Payment is declined — send the ISO-3166-2 code (e.g. `CA`, not `California`) |
| 4 | The `postalCode` field is limited to **10 characters** | Merchants with postal codes longer than 10 characters | Payment is declined |

<Note>
  Saving a brand-new card as `CardOnFile` does **not** require a CVC — this only applies when charging a card that was previously saved. `Subscription` and `UnscheduledCardOnFile` payments never require a CVC.
</Note>

**Recommended rollout**

1. Enable **v72** on a **staging** provider instance first and run your full payment flows end to end (new card, saved card, subscriptions, refunds, MOTO/wallet if used).
2. In production, create a **new** Adyen provider instance on v72 rather than switching your existing v69 instance, and route a small share of traffic to it.
3. Gradually increase traffic to the v72 instance over a few days while monitoring authorization rates and error codes.

<Note>
  **Rollback**

  Switching a provider instance's Checkout API version back to v69 takes effect on the next payment immediately — no deployment or code change required.
</Note>

***

## Enable the integration

**In Payrails**

* Select **Save account** Save the configuration to enable the integration.

The **Enabled** status confirms that the Adyen integration is active.

<img src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/adyen-image-07.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=9d03f458c133556b1089dcf727432e0e" alt="A screenshot showing the enabled Adyen integration." className="mx-auto block rounded-lg object-cover border border-gray-200" width="80%" data-path="images/docs/adyen-image-07.png" />

Your Adyen integration is now ready to process payments

***

## Next steps

1. Run a test payment using an Adyen [test card](https://docs.adyen.com/development-resources/test-cards-and-credentials/test-card-numbers).
2. Verify that:
   * The payment appears in Adyen.
   * The payment status updates correctly in Payrails.
3. Once verified in test mode, repeat the setup in live mode.

→ Continue to: [Test a payment](/docs/orchestration/payment-acceptance/test-payments)


## Related topics

- [Adyen](/docs/chargebacks/integrations/adyen.md)
- [Self-served migration of card data from PSPs](/docs/token-vault/token-migration/self-serve-migration.md)
- [Integrations](/docs/orchestration/integrations/index.md)
