Skip to content
EN
Book a demo

HomeGuides

Payment Gateway Migration: Moving Off Direct Integrations

Payment gateway migration without downtime works when you never switch everything at once. You connect the same providers through a new layer, run the old and new paths side by side, move traffic by rule, and delete the direct code only after the new path has carried real volume.

On this page

The hard part of a payment service provider migration is rarely the connection. It's the stored cards, the in-flight subscriptions and the handful of edge cases your old integration quietly handled for years. If you're asking how to switch payment providers without downtime, the steps below put those first.

01Payment gateway migration: before you start

Migration touches more teams than a new integration does, so settle ownership before the first step. The table lists what to have in hand.

What you need Who owns it Where it comes from
An inventory of every live provider integration Integration lead Your repositories, configs and billing statements
Contract terms and notice periods for each provider Head of payments Your provider agreements
An export route for stored card data from each provider Security or payments lead The provider's support, with PCI DSS evidence
A list of recurring billing schedules and their next dates Billing owner Your subscription system
A parallel-run window and a freeze on unrelated payment changes Engineering manager Your release calendar
Reconciliation sign-off for each provider Finance Settlement reports

Check the contract notice periods early. A provider you plan to drop may need months of notice, and that date, not your code, can set the end of the project.

02Step by step

  1. 01 Inventory every direct integration

    For each provider, record which payment methods it serves, which countries and currencies, which webhooks it sends you, and which of your services call it. Include the quiet ones, such as a refund job that runs monthly or a script finance uses to pull reports. Anything missing from this list becomes an outage after cutover, so ask support and finance, not only developers.

  2. 02 Describe your current flows as a checklist

    Write down what happens on approval, decline, timeout, refund, chargeback and a customer returning from an authentication page. Note where your code has provider-specific exceptions, such as a decline code you treat differently. These exceptions are the second-most common source of surprises, after stored cards, and they're easy to lose when the integration is rewritten.

  3. 03 Connect the same providers through the new layer

    Re-create each provider inside the layer with its own credentials, one at a time, starting with the one you trust least. Keep your current providers rather than changing them in the same project, since a provider swap and a layer swap together make every problem harder to trace. Ask the layer's vendor whether your providers already have connectors, and what any missing one needs from the provider's side.

  4. 04 Plan the stored cards by token type

    Stored cards are where migrations stall, because the type of token decides the route. Acquirer tokens usually need the merchant ID data that goes with them. Customer tokens come with the card number and payer data. Network tokens depend on the token requestor to issue new cryptograms. Ask each provider which kind you hold, in writing, and ask how it hands them over.

    Plan a mapping from old token to new record, and keep it where you can audit it. The recurring billing schedule for migrated cards needs the same care, so export the next charge date for every subscription with the cards.

  5. 05 Move the cards and test a sample

    Transfer in encrypted form, between parties that both meet PCI DSS. The PCI Security Standards Council publishes the standard that governs both sides. Start with a small batch of cards. Charge each one a test amount or run a zero-value check where the provider allows, and compare the results with what your old integration returned.

  6. 06 Run both paths in parallel

    Keep the old direct path live and send a narrow slice of traffic through the layer, such as one country or one payment method, then compare approvals, declines and settlement amounts for the two paths over several billing cycles rather than a few days, and treat every gap as a pointer to a rule, a mapping or a token that migrated badly.

  7. 07 Move traffic by rule

    Widen the slice rule by rule, so the change in each step is one you can name. A routing rule can match on currency, country, amount, card type or payment method. Move the low-risk traffic first, and hold the largest merchant or the most complex market until everything else is steady.

  8. 08 Retire the old code

    When a provider's direct path has carried no traffic for a full billing cycle, switch off its webhooks and remove its calls. Keep credentials and the old code in version control for a defined period before deleting them, then close the provider's old integration endpoints with its support team.

03Testing before real traffic

Before the first live payment moves, run each check and record its result.

  • A sample of migrated cards charges successfully through the new path
  • A subscription renews on its original date after migration
  • Refunds for a payment made on the old path work from the new one
  • A chargeback on the old path still reaches the team that handles it
  • Your reports show both paths in one view with matching totals
  • A failed call to one provider follows the fallback rule you set, and checkout keeps working

A failure in any row means the slice stays where it is. Fix the cause first, because widening a slice multiplies a defect.

04Rolling back, and what goes wrong

Cards fail after transfer. Usually the token type was misread, or the merchant ID data that must travel with acquirer tokens stayed behind at the old provider, so the new path can't use them. Stop the batch, ask the provider to confirm the type of each failing token, and re-run the sample before you move more.

Customers get charged twice. This happens when both paths accept the same payment during the parallel run. Give each payment a unique reference, reject duplicates at the layer, and keep every customer on one path at a time.

A subscription renews late or not at all. The schedule didn't travel with the card. Pull the missing dates from your billing system and load them again, then check the next renewal by hand.

Rollback itself is a rule change. Narrow the slice, and payments return to the old path, which is why you keep it for a full cycle. If you later need your cards back, card data belongs to you and is handed back on request, a route the portable card vault page walks through.

05Where the platform does the step

Steps 3 to 7 are the platform's work. Existing acquirers, gateways and payment methods are connected and combined with the ready connectors, and 700+ of those exist. Migration of stored cards follows the token types in step 4, with two token mapping options and billing schedules carried over for migrated cards. Rules move traffic in step 7, and a sandbox lets you test steps 5 and 6 first.

A provider missing from the ready list becomes a multi PSP integration request while you keep the others as they are.

06FAQ

How do I switch payment providers without downtime?

Keep the old path live while the new one carries a small slice. Move traffic by rule, compare results over full billing cycles, and switch off the old path only when it has gone quiet. Downtime happens when the cutover is one event.

Can I migrate stored cards from one gateway to another?

Yes, if the card holder of record can export them securely. The route depends on token type, so ask your current provider what it holds and how it releases it. Network tokens need new cryptograms from the token requestor.

How long does a payment platform migration take?

The time depends on the number of providers, the token types and your billing cycles, so we won't give a standard figure. Plan for at least one full billing cycle of parallel running, plus any notice period in provider contracts.

Do I have to change providers to use a layer?

No. You can connect the providers you already use through the layer first, and change providers later as a separate decision. Doing both at once only makes problems harder to place.

Next step

Plan your move off direct integrations

Send us your list of providers and the kinds of tokens you hold, and we'll tell you which steps need connectors and which depend on your current providers. Start the conversation.

Book a demo

Map your integrations onto one API

We look at the providers you run today and what moving them behind one API would take.