# Migrating from Payrix

Learn how to move your stored payment tokens and customer records from Payrix to Finix. Payrix is part of Worldpay for Platforms, and its platform is called Payrix Pro. After the import, you can keep charging returning buyers without asking them to re-enter their payment details.

## Migration overview

To migrate your Payrix 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) in the Payrix portal.
3. [Contact Finix](#step-3-contact-finix) to start the migration.
4. [Request a token export from Payrix](#step-4-request-a-token-export-from-payrix) 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

Payrix stores each buyer as a customer and each saved payment method as a token. Payrix exports tokens only to a PCI-certified payment processor.

| Data  | Migrates  | Details  |
|  --- | --- | --- |
| Stored cards | Yes | The export includes the Payrix customer ID, token ID, and card expiration date for each token. Finix creates a Payment Instrument for each card. |
| Customer records | Yes | Finix creates an Identity for each Payrix customer. |
| Stored bank accounts | Request from Payrix | Finix imports bank accounts as Payment Instruments. Ask Payrix Support to include bank account tokens in your export. |
| Subscriptions and plans | Confirm with Payrix | The token export covers payment details. Plan to recreate subscriptions in Finix. |
| Transaction history | No | Keep your Payrix 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 Payrix PayFields, 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.

### Low-code products

Finix has low-code products that replace common Payrix workflows.

- **[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):** Recreate your recurring payments in Finix.


### Payrix to Finix resource mapping

| Payrix object  | Finix resource  | Notes  |
|  --- | --- | --- |
| Customer | Identity | Stores the buyer's name, email, phone number, and billing address. |
| Token | Payment Instrument | Stores the card or bank account. Finix links each Payment Instrument to an Identity. |
| Transaction | Authorization or Transfer | Use an Authorization to authorize and capture later. Use a Transfer to charge in one step. |
| Merchant | Merchant | Onboard each seller to Finix. See [Platforms and marketplaces](#platforms-and-marketplaces). |


### Buyer data mappings

Payrix customers store a first name, last name, and email, with an optional phone number, company, and billing address. This data maps to the Finix Identity.

| Payrix data  | Finix field  | Description  |
|  --- | --- | --- |
| Customer ID | `external_customer_id` in the mapping file | The Payrix customer ID. |
| Token ID | `external_token_id` in the mapping file | The Payrix token ID. |
| First name | Identity `entity.first_name` | The buyer's first name. |
| Last name | Identity `entity.last_name` | The buyer's last name. |
| Email | Identity `entity.email` | The buyer's email address. |
| Phone | Identity `entity.phone` | The buyer's phone number. |


## Step 2: Prepare your data

Review your customers and tokens in the Payrix portal before you request the export.

- Confirm customer names, emails, and billing addresses are accurate.
- Remove customers and tokens you no longer charge.
- Make a list of your recurring payments so you can recreate them in Finix.


### Platforms and marketplaces

If you onboard merchants through Payrix, you also need to migrate their 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 Payrix

Payrix handles token exports through its Support team.

1. Email Payrix Support at [support@payrix.com](mailto:support@payrix.com) and request an export of your tokens to Finix. Include your Finix point of contact or Finix Support on the request.
2. Name Finix as the new processor and send a copy of 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.
3. Provide Finix's PGP key. See [PGP Key](/additional-resources/developers/migrating-data-to-finix/pgp-key).


After Payrix approves the request:

- Payrix encrypts the token data with Finix's PGP key and sends it directly to Finix as a CSV file.
- Payrix typically completes an export in one to two weeks. Larger exports can take longer.


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

## Step 5: Finix imports your data

When Finix receives the file from Payrix:

- 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 Payrix 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 Payrix token next to the new Finix Payment Instrument and Identity.

| Field  | Description  |
|  --- | --- |
| `external_customer_id` | The Payrix customer ID. |
| `external_token_id` | The Payrix token 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 Payrix token IDs in your database with Finix IDs. Then start processing payments with the new Payment Instruments.

## API mappings

Replace your Payrix API requests with these Finix API requests.

| Task  | Finix  |
|  --- | --- |
| Create a buyer | POST /identities |
| Save a card or bank account | POST /payment_instruments |
| Authorize a payment | POST /authorizations |
| Capture an authorization | PUT /authorizations/{id} |
| Void an authorization | PUT /authorizations/{id} |
| Charge in one step | POST /transfers |
| Refund a payment | POST /transfers/{id}/reversals |
| Create a subscription | POST /subscriptions |
| Receive event notifications | [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.