Adding PayPal to an existing Stripe checkout with Hyperswitch

Placing Hyperswitch in front of an existing Stripe integration lets you add PayPal without a second checkout build, then extend to more processors later. This page covers what maps, what to confirm first, and the sequence to a safe cutover.

On this page

Adding PayPal to Stripe checkout without a second build

The documented Hyperswitch payment recipe adds PayPal to an existing Stripe integration through Hyperswitch payment orchestration, so a team with a working Stripe checkout does not have to build a second checkout to offer PayPal. The question is less whether this is possible and more how much work it takes in your environment, and that depends on three things: how your current checkout calls Stripe, which Stripe products you use, and whether you run a self-hosted or hosted Hyperswitch stack. Read the recipe in the Hyperswitch docs on using PayPal with Stripe before you estimate, and confirm each dependency against your own code.

Start by mapping the current integration. Identify where the checkout creates payment intents, where it handles webhooks, and whether it uses Stripe-hosted fields, Elements or server-side calls. Each of these determines how much of the request path has to move behind Hyperswitch. Also list the Stripe products in use, such as subscriptions, invoicing or connected accounts, because a product that the documented flow does not cover will need its own decision before work starts. Ask your partner or the Hyperswitch team to confirm support for each product in writing.

This is a first, low-risk step. Its purpose is to add a second payment method while Stripe keeps processing existing card payments, so you can test PayPal in a controlled rollout before you change anything else. No import of saved cards is part of this step. Stored Stripe payment methods stay where they are, and moving them is a separate project covered by the saved card import and migration pages. Plan your rollback path, webhook monitoring and a sandbox test plan before you go live.

What maps cleanly from Stripe and what needs checking

This table compares the Stripe capabilities your current checkout depends on with their Hyperswitch equivalents for a PayPal-add-on migration. Read each row for one of three outcomes: it maps cleanly, it needs a checkout change, or you must confirm it in the Hyperswitch docs for the processor you plan to use. The main takeaway is that the card path and PayPal path must each be verified separately before any traffic moves.

Stripe capabilityHyperswitch equivalentHow it maps
Card payments through the Stripe APIPayments created through the Hyperswitch API and routed to Stripe as a connectorMaps cleanly at the API level, but confirm the Stripe connector's supported payment flows in the Stripe payment recipe and connector documentation
Stripe Elements or Checkout in the browserHyperswitch client SDK for web or a headless custom checkoutNeeds a checkout change, because the front end must call the Hyperswitch SDK instead of Stripe.js elements
PayPal as a new payment methodPayPal added as a second connector behind the same Hyperswitch payment flowNeeds a checkout change to show the PayPal option, and the PayPal flow must be confirmed in the PayPal with Stripe recipe
Stripe webhooksHyperswitch webhooks for payment, refund and dispute eventsMust be confirmed, since event names, signing and retry behavior differ and your handlers need updating before cutover
Refunds issued in the Stripe dashboard or APIRefunds issued through Hyperswitch or the Control Center across connectorsConfirm refund support per connector, and plan how refunds on existing Stripe charges will be handled during the transition
Saved customers and payment methodsCustomer and saved-payment-method records held in HyperswitchNeeds checking, because existing Stripe-held tokens do not move with this first step; keep Stripe as the source for saved cards until a separate import is planned
Stripe Radar and 3DS settingsHyperswitch 3DS and fraud controls, or the existing Stripe settings kept in placeMust be confirmed per connector, as authentication behavior can change when Stripe is routed through Hyperswitch
Reporting and reconciliation in the Stripe dashboardPayments and reconciliation data in Hyperswitch alongside Stripe and PayPal dataConfirm which reports and reconciliation views you need, and keep Stripe reporting running until the new view is verified

How Hyperswitch sits between the checkout and both processors

The diagram starts at the existing checkout, which keeps calling its payment API but now sends requests to Hyperswitch Router instead of directly to Stripe. Router hands each payment to Stripe for the current card flow or to PayPal for the new wallet option, and processor webhooks return through Router before the checkout sees the result. Router depends on PostgreSQL and Redis, and the Control Center is where processor credentials are connected. Check that every processor call and webhook passes through the self-hosted boundary and that no card data reaches the checkout's own services.

Checkout calls Hyperswitch, which reaches Stripe and PayPal inside a self-hosted boundary.

Documented setup paths and how to start the evaluation

Hyperswitch documents several ways to start, from a hosted sandbox to a Kubernetes install. For a first PayPal step alongside Stripe, the question is which building block answers which need, and where each stops. The cards below map each documented path to this migration step.

PayPal with Stripe payment recipe

The Hyperswitch docs include a payment recipe for adding PayPal to a Stripe integration through Hyperswitch orchestration. This is the closest match to the step you are planning, because Stripe stays as an existing processor and PayPal is added behind the same Hyperswitch API. Read it to confirm which Stripe and PayPal configuration the recipe assumes, which checkout flows it covers, and whether your current Stripe API usage maps onto the recipe. It does not replace your own test plan for refunds, webhooks and reconciliation.

PayPal recipe docs

Hosted sandbox for early testing

The hosted sandbox lets your developers call the Hyperswitch API and test a Stripe and PayPal flow without running any infrastructure. It suits proof-of-concept work, such as checking that a PayPal redirect returns to your order page and that a Stripe payment still completes. It is not a production environment, so it does not show your sizing, network controls, key handling or data residency. Confirm with the vendor which sandbox limits and test credentials apply before you rely on results.

Hyperswitch docs

Docker-based local setup

The Docker-based local setup runs the Hyperswitch stack on a developer machine, so engineers can read the router logs and trace a payment step by step. Use it to check how your checkout code calls Hyperswitch and to rehearse the PayPal path before the team shares a test environment. It does not cover high availability, PostgreSQL replicas, Redis sizing or production secrets, and it should not hold live Stripe or PayPal credentials.

Helm charts and cloud guides

Hyperswitch documents Helm charts for Kubernetes, with guides for local Minikube, AWS, GCP and Azure. A shared cluster is the path to a staging environment that resembles production, with the Router, Scheduler, PostgreSQL and Redis running as you would run them. The guides cover installation, not your network design, identity integration or backup policy. Ask your platform team which cluster, ingress and secret stores they will supply before choosing a cloud guide.

Control Center for connecting processors

The Control Center is the Hyperswitch merchant dashboard, and it is where you connect Stripe and PayPal credentials and review payments, refunds and disputes across both processors. Operations staff need it to confirm that a PayPal payment appears next to Stripe payments in one view. Its single sign-on supports OpenID Connect only, has no SAML, JIT or SCIM provisioning, and manages roles inside Hyperswitch, so plan user invitations and role assignment before go-live.

Control Center SSO docs

Client SDKs and no data import

The client SDKs for web, Android, iOS, React Native and Flutter handle the customer-facing payment screens, so you can decide whether your existing Stripe checkout calls Hyperswitch directly or only changes the server side. Confirm which SDK version your front end needs before you change it. No data import tool is needed for this step, because existing Stripe payments and saved customers stay with Stripe, and PayPal is added as a new processor. Check that your Stripe saved-card handling still works after the change.

The sequence from inventory to parallel run and cutover

This sequence moves PayPal into production behind Hyperswitch in controlled stages, so the Stripe checkout keeps working throughout and each stage ends with a decision someone signs off on. Each step produces a written artifact that the next step depends on.

  1. Inventory the Stripe integration and entry points

    Your engineering team lists every place the Stripe integration is called: checkout pages, server-side payment creation, webhook handlers, refund and dispute flows, saved-card use, and any mobile or hosted surfaces. For each entry point, record which Stripe products and SDK versions it uses and who owns it. The output is a written inventory that shows which paths would change if PayPal is added in front of Stripe. Engineering leadership and the payments owner sign off before any build work starts.

  2. Run a sandbox pilot with the PayPal recipe

    Engineers follow the Hyperswitch documented recipe for using PayPal with Stripe in a sandbox, using test credentials for both processors, and confirm that a PayPal payment and its webhook events reach your order system. Record what the recipe required that your inventory did not anticipate, such as changes to payment creation calls or webhook endpoints. The output is a pilot report with pass or fail results for each test case. The engineering lead reviews the report and decides whether the design holds.

  3. Decide where the self-hosted stack runs

    The platform owner and security lead choose the hosting target for Hyperswitch, its PostgreSQL and Redis dependencies, and the environments that will hold PayPal credentials. Confirm which deployment option the Hyperswitch documentation describes for your infrastructure, and confirm whether Superposition or any other required service must run before the chosen release. The output is a short decision record covering hosting, network paths, and who operates the stack. The CISO or equivalent and the platform owner sign it.

  4. Connect PayPal in a non-production environment

    Engineers configure the PayPal connector in a non-production Hyperswitch environment that mirrors the production routing and webhook setup, and run the full test matrix again, including refunds and failed payments. They also confirm that Stripe payments still succeed through the same entry points. The output is a signed test matrix with results and open defects. The payments owner and QA lead approve moving to a live parallel run.

  5. Run a parallel period with a limited cohort

    Production traffic is routed so that a small share of customers, or a defined test cohort, sees the PayPal option through Hyperswitch while everyone else continues on the existing Stripe path. Finance compares settled amounts, reconciliation output and failure rates between the two paths, and support reviews any customer contacts. The output is a comparison report covering authorizations, declines, webhook delivery and reconciliation differences. The payments owner and finance lead review it and decide whether to widen, hold, or roll back.

  6. Cut over the PayPal option

    Once the parallel run results are accepted, the PayPal option is enabled for all eligible customers through Hyperswitch, with a documented rollback step that turns the option off without a deployment. Operations monitors dashboards and alerts during the first business cycles after the change. The output is a change record showing the enablement date, the rollback procedure tested, and the first monitoring summary. The change board and payments owner approve the cutover.

  7. Decommission replaced code and document the next step

    Engineers remove any temporary branches, cohort flags and duplicate PayPal code that the parallel run required, and update the inventory from the first step to reflect the new architecture. The team also records which processor would be added next and what the same pattern would require. The output is an updated inventory, a closed list of removed components, and a backlog item for the next processor. The engineering lead closes the migration record.

Choosing between the hosted sandbox and a self-hosted stack

The hosted sandbox is the fastest way to confirm that PayPal appears as a payment method alongside your existing Stripe flow. Hyperswitch operates the environment, so your team does not install databases, caches or the Router service to run early tests. It is meant for evaluation with test credentials, not for live customer payments.

  • Operator: Hyperswitch runs the sandbox. Your team configures test connectors and test accounts.
  • Data residency: Confirm where the sandbox stores test records and whether any production data is ever sent to it.
  • Access control: Confirm who on your side receives sandbox credentials and how they are removed when the test ends.
  • Backups and upgrades: Do not assume production-grade backups or a release schedule you control. Ask what the hosted environment guarantees.
  • PCI DSS scope: Do not send real card numbers to the sandbox. Keep test data separate so that no live cardholder data enters the environment during evaluation.

Before relying on sandbox results, confirm in writing what the hosted service covers, and plan the move to your own infrastructure as a separate step.

What drives the effort and cost of the first PayPal step

This table lists the factors that change the size of a first PayPal step on an existing Stripe checkout, with the direction each one pushes cost or duration and what to request in a written quote. Read each row against your own Stripe footprint, since the number of entry points and webhook consumers usually matters more than the PayPal work itself.

DriverEffect on cost or durationWhat to ask for in a quote
Number and type of Stripe entry pointsMore server-side calls, payment flows and product surfaces (checkout, subscriptions, invoices, mobile) increase routing and regression workA list of every Stripe API call path and SDK surface in scope, with the proposed handling for each
Stripe-hosted versus custom checkoutStripe-hosted pages limit the change to configuration, while a custom checkout needs front-end and payment method display changes for PayPalConfirmation of which checkout type is in scope and the front-end files or components that will change
Stripe webhooks feeding other systemsEach downstream consumer of Stripe events (ledger, CRM, fulfilment, reporting) needs to be re-pointed or verified, which adds testing and reconciliation workAn inventory of webhook consumers and a plan for dual running or cutover of event delivery
Self-hosted stack to stand up and operateStanding up Hyperswitch in your infrastructure adds cluster, database, cache, secrets and upgrade work that a hosted sandbox does not requireThe deployment target, the Helm or Kubernetes path proposed, and who operates the stack after handover
Identity and access setup for the Control CenterIf single sign-on is required, OIDC configuration is needed, since SAML is not supported and users must be invited before roles applyConfirmation of the identity provider, its OIDC support, the user invitation process and the role model to be set in Hyperswitch
Testing and sign-off effortPayPal flows, failure and refund cases, webhook replay and reconciliation checks extend the test matrix and the number of sign-offsA test plan listing payment, refund, failure and webhook cases, the environments used, and the named approvers
Hosted sandbox versus productionA hosted sandbox is faster to start for evaluation, but moving to production adds credentials, live PayPal and Stripe account setup and go-live checksWhich environments are included, how credentials are stored and rotated, and the criteria for moving traffic to production

How this first step extends to more processors later

The same orchestration layer that places PayPal beside Stripe is the one you would use to add further processors and routing later, so the first build should be done with that next step in mind. What carries over is the checkout integration point: your application keeps calling Hyperswitch, not each processor's API, so the payment flow your customers see does not need a rebuild for each new acquirer. The Control Center configuration also carries over, since connector credentials, merchant accounts and the processors attached to your profile are held in Hyperswitch. Webhook handling is the piece to design carefully now. Confirm which webhook endpoints Hyperswitch exposes for each connector and how your service maps incoming events to payment status, so that the second processor does not require a new event pipeline.

What must be re-tested for every new processor is the processor-specific behavior, not the shared flow. Test authorization, capture, refund, partial refund, cancellation and failure responses against that processor's sandbox, and check how its declines and error codes surface in your application. Repeat the webhook tests for its events, including delayed and out-of-order delivery. Verify reconciliation exports for the new processor before it carries live volume, because settlement timing and fee detail will differ from Stripe and PayPal. Confirm which payment methods each processor supports in your markets and currencies, since capability differs by connector and is listed in the Hyperswitch connector documentation.

Routing is a separate planning step. Hyperswitch documents several routing strategies, including rule-based, volume-based, auth-rate, multi-objective and least cost routing for debit networks, plus default fallback routing when no rule applies or a processor is ineligible. Choose the strategy, define the fallback behavior and agree how you will measure authorization rates before any traffic moves to a second processor. Start with a small share of traffic, compare results against your baseline, and keep the ability to route back. Saved payment methods and customer references also need a decision before routing changes, because a token issued by one processor is not automatically usable on another. Review the routing guidance in the Hyperswitch documentation before you shift traffic.

What usually goes wrong when PayPal is added through Hyperswitch

Most problems in a PayPal-through-Hyperswitch rollout come from running two systems side by side without planning for the seams between them. The cards below cover the places where webhooks, reconciliation, feature parity, access control, upgrades and recovery tend to break, with a prevention step for each.

Duplicated or lost webhooks during the parallel run

While Stripe and PayPal both send events during the parallel run, a payment can be recorded twice or missed entirely if each webhook path updates the order independently. Decide which system is the source of truth for each event type, make handlers idempotent on the processor's event or payment identifier, and test refunds, disputes and failed captures as well as successful payments. Confirm how Hyperswitch forwards and retries processor webhooks in your version before cutover.

Reconciliation that does not match across processors

Stripe and PayPal report settlements, fees, currencies and timing differently, so totals from one feed rarely line up with the other. A ledger built on a single processor's export will show false mismatches for PayPal transactions. Agree on one internal payment identifier before go-live, map each processor's settlement fields to it, and reconcile a sample of PayPal and Stripe payments end to end by hand before relying on the report.

Assuming Stripe features map one to one

Features such as saved payment methods, customer objects, Radar-style rules, Checkout-specific flows and Stripe-hosted pages do not necessarily have a PayPal equivalent behind Hyperswitch. Inventory every Stripe-dependent behavior in your checkout and mark whether it is handled by Hyperswitch, by your code, or not at all. Check the documented Stripe recipe for what it covers before assuming a flow carries over.

PayPal with Stripe recipe

Control Center access without a role plan

The Control Center supports single sign-on through OpenID Connect only, with no SAML, JIT or SCIM provisioning. Users must be invited first, and roles are managed in Hyperswitch rather than mapped from your identity provider, so offboarding and role changes become manual steps. Before enabling SSO, define who needs which role, who invites users, how removals happen, and who reviews access on a fixed schedule.

Control Center SSO docs

Upgrades that add a required dependency

Some Hyperswitch releases add configuration dependencies that must exist before the upgrade runs. The v1.124.0 release notes state that Superposition became required, and deployments need a Superposition service running before upgrading to that version. Read the release notes and compatibility matrix for every version between your current release and the target, check Control Center and web client compatibility, and stage the upgrade in a non-production environment first.

Hyperswitch releases

Self-hosted stack without a tested recovery path

A self-hosted Hyperswitch stack depends on PostgreSQL, Redis, the scheduler and, for card data, the card vault, so a failure in any of them can stop payments on both processors. Backups that have never been restored are not a recovery path. Define recovery objectives with your team, restore PostgreSQL and vault data into an isolated environment on a schedule, and document who can fail traffic over to a backup processor or stop the PayPal route if the stack fails.

Architecture docs

Questions teams ask before adding PayPal through Hyperswitch

What does the first step of adding PayPal through Hyperswitch cost?

The cost is driven by the work, not a fixed fee: configuring the PayPal connector in Hyperswitch, putting Hyperswitch in front of your existing Stripe calls, testing the checkout flows and handling webhooks and reconciliation for the new processor. Your own engineering time is a recurring line item for the team that operates the stack. A partner quote follows from a written scope that lists the checkout surfaces, environments and PayPal payment methods in use. Ask each bidder to separate one-time build effort from any retainer for upgrades and monitoring, and to name who holds the PayPal and Stripe credentials during testing.

How long does adding PayPal to an existing Stripe checkout take?

Duration depends on the checkout, not on the connector alone. A single web checkout that uses a standard Stripe integration is a smaller task than several mobile apps, a custom checkout or a set of server-side flows that create payments directly. Count the number of payment entry points, the refund and dispute paths, the webhook consumers and the test cases your QA team needs to sign off. No duration figure is supplied for this step, so ask any partner to give a timeline tied to those counts and to name the environments it will pass through before go-live.

What does the internal team need to provide for this work?

Plan for named owners in four areas: a payments engineer who knows how your Stripe calls are structured, an engineer who can deploy and reach the Hyperswitch stack, a finance or operations contact who checks settlement and reconciliation, and a security reviewer who signs off on where credentials and logs live. You also need PayPal and Stripe sandbox access, a place to store secrets and a change window for go-live. Without these owners, testing tends to stall at credential handoffs rather than in the code.

Can our team add PayPal alone using the documented recipe?

Yes, a team with payments and deployment experience can follow the documented recipe for using PayPal with Stripe through Hyperswitch payment orchestration. The recipe covers the basic path, but it does not replace your own test plan, your handling of edge cases such as partial refunds, failed captures and webhook retries, or your compliance evidence. Decide early whether your team has the capacity to own those checks. If not, a fixed-scope engagement can cover the build, testing and handover, and you can confirm its boundaries in writing before work starts.

Do saved Stripe cards have to move to Hyperswitch for this step?

No. For this first step, existing saved cards do not need to move. The goal is to route new PayPal payments through Hyperswitch while your Stripe integration keeps handling its current customers and stored payment methods. Card import, vault design and token handling belong to later migration steps, which have their own risks and data requirements. Confirm with your team that no subscription or merchant-initiated flow depends on a Stripe-held card before you freeze the scope for this step.

What changes for PCI DSS scope when we self-host Hyperswitch?

Self-hosting the orchestration layer does not by itself decide your PCI DSS scope. Scope depends on whether card data touches your systems, which vault model you choose and whether the vault is in-house or an external provider. In the self-hosted, in-house PCI model, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling. Adding PayPal through a redirect flow may keep card data out of your environment, but confirm that with your assessor and the PayPal integration you build. DeployOpen prepares systems and evidence for an assessment, while independent assessors issue any attestation.

How does this first step extend to more processors later?

The same pattern applies: Hyperswitch sits between your checkout and each processor, so adding another connector later means configuring that connector, testing its flows and adjusting routing, rather than rebuilding the checkout. Hyperswitch documents more than 100 processors and six routing strategies, and the documented routing options can be planned once you have two or more processors. Before you add a second processor, confirm its connector support in Hyperswitch, the webhook and reconciliation changes it needs, and the upgrade path for each Hyperswitch release, since upgrades must keep the router and Control Center compatible.

How DeployOpen scopes and delivers the PayPal step

DeployOpen plans, implements, tests and documents the PayPal step on infrastructure you control, with Hyperswitch placed in front of your existing Stripe integration. The work is agreed as a fixed scope in writing before it starts, so your team knows what changes in the checkout and what stays the same.

How we scope

  • We confirm which Stripe checkout flows, SDK versions and saved-card paths stay in place during the first step.
  • We record which PayPal business account, currency and regions the written scope covers.
  • We agree the routing rule, fallback behavior and test cases in writing before any build starts.

How we build

  • We deploy the self-hosted Hyperswitch stack in your environment and connect the Stripe and PayPal connectors.
  • We configure default fallback routing so Stripe remains the path when no PayPal rule applies.
  • We test payment, refund and webhook flows in a sandbox before any change reaches live traffic.

How we hand over

  • We deliver configuration records, connector settings, routing rules and the test results for your review.
  • We document the rollback steps and the webhook endpoints your operations team will monitor.
  • We walk your engineers through the Control Center settings so they can run the next processor step.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Upgrades to new Hyperswitch releases are planned and tested against your connector setup before rollout.
  • We can extend the same pattern to further processors once you agree a new written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.