# Migrating from Adyen

Learn how to move your stored cards from Adyen to Finix. After the import, you can keep charging returning buyers and running recurring payments without asking buyers to re-enter their payment details.

## Migration overview

To migrate your Adyen data to Finix:

1. [Integrate with Finix](#step-1-integrate-with-finix) and set up your account.
2. [Prepare your data](#step-2-prepare-your-data) and decide which shoppers to migrate.
3. [Contact Finix](#step-3-contact-finix) to start the migration.
4. [Request a token export from Adyen](#step-4-request-a-token-export-from-adyen) and include Finix on the request.
5. [Finix imports your data](#step-5-finix-imports-your-data) and creates Payment Instruments and Identities.
6. [Verify the migrated data](#step-6-verify-the-migrated-data) with the mapping file Finix sends you.


## Data you can migrate

Adyen stores payment details as tokens linked to a `shopperReference`, the shopper ID you send with each payment. The export covers the card data behind those tokens.

| Data  | Migrates  | Details  |
|  --- | --- | --- |
| Stored cards | Yes | Adyen exports the card data for every shopper on your merchant account, or for a list of shopper references you provide. Finix creates a Payment Instrument for each card. |
| Shopper details | Confirm with Adyen | Adyen links stored payment details to your `shopperReference` instead of a separate customer object. Ask Adyen Support which shopper details, such as name and email, the export includes. |
| Stored bank accounts (ACH) | Request from Adyen | Finix imports bank account data. Adyen can store ACH bank accounts as tokens, but its export guidance describes card data. Ask Adyen Support to include your stored bank accounts in the export. |
| Apple Pay and Google Pay | No | Digital wallet tokens are tied to the provider that created them. Buyers add them again at their next checkout. |
| Recurring schedules | Not applicable | With Adyen, your system sends each recurring payment request with a stored payment method. Keep your schedule and swap Adyen tokens for Finix Payment Instruments. |
| Transaction history | No | The token export covers stored payment details only. Keep your Adyen reports for your records. |
| Card security codes (CVV) | No | PCI DSS doesn't allow processors to store CVVs after authorization, so no processor can export them. |


## Step 1: Integrate with Finix

To set up your Finix account, see the [Quickstarts](/guides/getting-started/quickstarts). For platforms and marketplaces, see the [Platform Quickstart](/guides/platform-payments/platform-quickstart).

### Tokenizing cards and bank accounts

Like Adyen's Web Drop-in and Components, Finix has libraries that collect payment details without the sensitive data touching your servers.

- See [Tokenization Forms](/guides/online-payments/payment-tokenization/tokenization-forms) to accept payment details on the web.
- See [iOS](/guides/online-payments/payment-tokenization/mobile-tokenization-ios) or [Android](/guides/online-payments/payment-tokenization/mobile-tokenization-android) mobile tokenization to accept payment details in your mobile app.
- See [Raw Card Data](/guides/online-payments/payment-tokenization/handling-raw-card-data) if you have a Level 1 PCI-compliant card data environment (CDE).


Set up tokenization early. You need it for buyers whose payment details don't migrate, such as digital wallets.

### Low-code products

Finix has low-code products that reduce the code you need to replace.

- **[Payment Links](/low-code-no-code/payment-links):** Send buyers a link to complete a payment by email, text, web page, or QR code.
- **[Subscriptions](/guides/subscriptions/subscriptions-quickstart):** Let Finix run your recurring billing instead of scheduling each charge yourself.


### Adyen to Finix resource mapping

| Adyen concept  | Finix resource  | Notes  |
|  --- | --- | --- |
| `shopperReference` | Identity | Finix stores buyer details on an Identity. Each Payment Instrument links to an Identity. |
| Stored payment method (`storedPaymentMethodId`, formerly `recurringDetailReference`) | Payment Instrument | Stores the card or bank account. Finix returns a new Payment Instrument ID for each Adyen token. |
| Payment | Authorization or Transfer | Use an Authorization to authorize and capture later. Use a Transfer to charge in one step. |
| Legal entity and account holder (Adyen for Platforms) | Identity and Merchant | Onboard each seller to Finix. See [Platforms and marketplaces](#platforms-and-marketplaces). |


### Buyer data mappings

These Adyen Checkout API fields map to fields on the Finix Identity.

| Adyen field  | Finix field  | Description  |
|  --- | --- | --- |
| `shopperReference` | `external_customer_id` in the mapping file | Your shopper ID. |
| `storedPaymentMethodId` | `external_token_id` in the mapping file | The Adyen token. |
| `shopperName.firstName` | Identity `entity.first_name` | The buyer's first name. |
| `shopperName.lastName` | Identity `entity.last_name` | The buyer's last name. |
| `shopperEmail` | Identity `entity.email` | The buyer's email address. |
| `telephoneNumber` | Identity `entity.phone` | The buyer's phone number. |


For every field, see the [Adyen Checkout API reference](https://docs.adyen.com/api-explorer/Checkout/71/post/payments).

## Step 2: Prepare your data

Decide which shoppers to migrate before you contact Adyen.

- Adyen exports either all card data on your merchant account or a list of shopper references you provide.
- To export a list, prepare a file with one `MerchantAccount,ShopperReference` pair per line.
- Make sure every shopper reference maps to a buyer in your own database. The mapping file Finix returns uses these references.


### Platforms and marketplaces

If you use Adyen for Platforms, you also need to migrate each seller's business details, such as legal name, address, tax ID, and merchant category code (MCC). For the process, see [Migrating Customer Data](/additional-resources/developers/migrating-data-to-finix/migrating-customer-data).

## Step 3: Contact Finix

When you're ready to migrate, contact your Finix point of contact or the [Finix Support team](mailto:support@finix.com). Finix then starts the technical preparation for your import.

## Step 4: Request a token export from Adyen

Adyen handles token exports through its Support team.

1. Contact Adyen Support from your Adyen Customer Area and request a token export to Finix. Include your Finix point of contact or Finix Support on the request.
2. Send Adyen a formal letter that states your intent to move your card data to Finix. The letter needs the date, a signature, your company name and logo, and Finix as the new provider.
3. Provide Finix's PCI attestation. Finix's most recent PCI DSS Attestation of Compliance (AoC) is [available by request](/guides/managing-operations/security-compliance) under a signed non-disclosure agreement with Finix.
4. Provide Finix's PGP key. Adyen checks that the key is published by the receiving provider. Finix publishes its key on the [PGP Key](/additional-resources/developers/migrating-data-to-finix/pgp-key) page.


After Adyen accepts the request:

- Adyen sends a limited first export of up to 1,000 shopper references, encrypted with Finix's PGP key.
- Adyen then sends the full export to Finix.


Share any details Adyen sends you with your Finix point of contact or the [Finix Support team](mailto:support@finix.com).

Cards saved during the switch
Buyers can save new cards on Adyen while the export is in progress. Route new card saves to Finix before the full export, or ask Adyen for a follow-up export of shoppers added after the first one.

## Step 5: Finix imports your data

When Finix receives the file from Adyen:

- Finix decrypts the payment data in a PCI-compliant environment.
- Finix creates Payment Instruments and Identities from the exported data.
- If any data can't be used, Finix explains the issue and works with you and Adyen to resolve it.


It can take anywhere from a few days to several weeks for your original processor to transfer your payment data to Finix. Build this time into your migration plan.

Account Updater is on by default
Finix automatically enables [Account Updater](/guides/after-the-payment/account-updater) on imported tokens.

## Step 6: Verify the migrated data

When the import is complete, Finix sends you a CSV mapping file. It lists each Adyen token next to the new Finix Payment Instrument and Identity.

| Field  | Description  |
|  --- | --- |
| `external_customer_id` | The Adyen `shopperReference`. |
| `external_token_id` | The Adyen stored payment method ID. |
| `finix_identity_id` | The ID of the new Finix Identity. |
| `finix_instrument_id` | The ID of the new Finix Payment Instrument. |
| `successful` | Whether Finix created the Payment Instrument. When `false`, check `error_msg` and contact the buyer to collect their payment details again. |
| `is_expired` | Whether the card is expired. |


For every field in the file and an example, see [CSV output](/additional-resources/developers/migrating-data-to-finix/migrating-payment-data#csv-output).

Use the file to replace Adyen tokens in your database with Finix IDs. Then start processing payments with the new Payment Instruments.

## API mappings

Replace Adyen Checkout API calls with the equivalent Finix API requests.

| Task  | Adyen  | Finix  |
|  --- | --- | --- |
| Create a buyer | No equivalent. Adyen uses `shopperReference`. | POST /identities |
| Save a card | `/payments` with `storePaymentMethod` | POST /payment_instruments |
| Authorize a payment | `/payments` with manual capture | POST /authorizations |
| Capture an authorization | `/payments/{paymentPspReference}/captures` | PUT /authorizations/{id} |
| Void an authorization | `/payments/{paymentPspReference}/cancels` | PUT /authorizations/{id} |
| Charge in one step | `/payments` with automatic capture | POST /transfers |
| Refund a payment | `/payments/{paymentPspReference}/refunds` | POST /transfers/{id}/reversals |
| Run recurring billing | `/payments` with a stored payment method on your own schedule | POST /subscriptions, or POST /transfers on your own schedule |
| Receive event notifications | Adyen webhooks | [Finix webhooks](/additional-resources/developers/webhooks/integrating-into-webhooks) |


## Learn more

Migrating Payment Data
See the general token migration process and every field in the mapping file.

Migrating Customer Data
Migrate seller records and onboard them to Finix.

PGP Key
Get the Finix PGP key your processor uses to encrypt your data.

Account Updater
Keep imported cards up to date when buyers get new cards.