Hyperswitch with Chargebee, Recurly or Stripe Billing: who owns what
If your subscription business already runs Chargebee, Recurly or Stripe Billing, you can keep that system for the subscription ledger and scheduling and still move card vaulting, payment attempts, routing and retries onto Hyperswitch. The Hyperswitch docs describe this augmentation pattern directly: the subscription provider keeps the subscription records and billing schedule, while the merchant owns the payment attempts, card vault and retry logic. The practical question for your team is where each responsibility sits, because the split determines which system stores card data, which system decides a retry, and which system your finance team reconciles against.
Under this pattern, the billing provider still decides when an invoice is due and what the subscription status is. Hyperswitch receives the charge request, stores the payment method in its vault, selects a processor through your routing rules, and retries failed attempts according to your configuration. Your integration must therefore define which system is the source of truth for subscription status after a payment succeeds or fails, and confirm with the provider how its webhooks and invoice events will be sent so that the two systems do not both retry the same invoice. Confirm the exact fields and webhook events your chosen provider exposes before you design this handoff.
This pattern fits teams that want processor independence, direct control over routing and retries, or a self-hosted vault, and that have engineering capacity to own the payment flow. It is a poor fit if you want the billing provider to own dunning and card recovery end to end without changes, or if your team cannot run a self-hosted payments stack. Note that Hyperswitch's own revenue recovery module is a separate feature, so decide early whether you need it or whether the provider's retry logic is enough.
Renewal flow between the billing provider, Hyperswitch and processors
A renewal starts when the billing provider, which keeps the subscription ledger, sends a charge request to the Hyperswitch router. The router asks the card vault for the stored token, sends the payment attempt to the chosen processor, and records the authorization result. A failed attempt goes to the scheduler, which sends a retry back through the router under the configured retry rules. Each outcome then returns to the billing provider as a webhook. Check that the vault and the scheduler's queue sit inside your boundary, and that the billing provider receives every final status.
Renewal charge path, with the card vault inside the client's trust boundary.
Which billing provider fits which integration pattern
In this pattern, Chargebee keeps the subscription ledger: plans, billing cycles, invoices, proration and subscription state. Hyperswitch takes over the payment side, meaning card vaulting, payment attempts, processor routing and retry decisions. The integration question is which system is the source of truth for a failed invoice and which one is allowed to trigger a new charge. Teams should map each Chargebee event that initiates a payment to a single Hyperswitch call so that a retry is never issued from both sides.
- Ledger ownership: Confirm which invoice states Chargebee keeps and which Hyperswitch payment attempt states feed back into them.
- Native retry settings: Identify any Chargebee dunning or retry rules that are active and decide whether they are disabled, reduced or kept alongside Hyperswitch retries.
- Webhook flow: Plan how payment success and failure events reach Chargebee so invoice status stays accurate.
- Payment method references: Decide how stored payment method identifiers from Hyperswitch are referenced on the Chargebee customer record.
- API options: Confirm the current Chargebee API options for external payment handling with your account, since these change over time.
Before choosing this pattern, check whether your Chargebee plan and configuration support the external payment flow you need and confirm the steps with Chargebee directly.
With Recurly, the subscription ledger, plan catalog, invoicing and account lifecycle stay in Recurly while Hyperswitch handles card storage and each payment attempt. The main design work is deciding whether a failed Recurly invoice triggers a Hyperswitch retry, a Recurly retry or a coordinated sequence of both. Without a clear rule, customers can be charged more often than intended and reporting can disagree between the two systems.
- Invoice and account boundaries: Define which Recurly account records map to Hyperswitch customers and payment methods.
- Built-in collection behavior: Confirm what Recurly's native collection and retry settings do on your plan and whether they can be turned off for externally collected invoices.
- Reconciliation keys: Choose the identifiers that link a Recurly invoice to the Hyperswitch payment attempt that settled it.
- Card update handling: Decide who updates stored cards after a reissue or expiry and how the change reaches the other system.
- API options: Confirm with Recurly which current API and integration options apply to externally processed payments in your setup.
Before committing, test one failed renewal end to end in a sandbox and confirm which system records each attempt.
Stripe Billing can own subscriptions, invoices and its own smart retry and dunning features while Hyperswitch manages vaulting and routing. This is the pattern where overlap is most likely, because Stripe is also a payment processor that Hyperswitch can connect to. The team must decide whether Stripe is only the ledger, the processor for some traffic, or both, and whether a payment attempt is made through Hyperswitch or directly by Stripe Billing. Mixing these paths without a rule makes retry counts and reporting hard to trust.
- Processor role: Decide whether Stripe is used only for billing logic, as a processor behind Hyperswitch, or both, and document it per payment flow.
- Native smart retries: Confirm which Stripe Billing retry and dunning features are enabled and whether they will run on payments that Hyperswitch initiated.
- Payment method ownership: Decide which system holds the card or network token for each subscription.
- Webhook handling: Plan which Stripe event types update Hyperswitch and which update Stripe Billing state.
- API options: Confirm the current Stripe Billing API options and their documented limits with Stripe, since they change.
Before choosing, check how your current Stripe setup routes traffic and whether moving payment attempts to Hyperswitch changes any existing retry or fraud behavior.
Configuration decisions and when each option fits
This table compares the five decisions that split work between Hyperswitch and a subscription billing provider such as Chargebee, Recurly or Stripe Billing. Read each row as a question to settle before build starts, then check the fit and trade-off against your own vault model and finance workflow. The main takeaway is that the billing system should own the subscription ledger and the Hyperswitch layer should own card data and payment attempts, and the boundary between them must be written down.
| Decision | Typical fit | Trade-off to weigh |
|---|---|---|
| Where card vaulting lives | Hyperswitch vault when you want card data and payment attempts in one place under your control; an external PCI vault when your team does not want to hold card data in-house | An in-house vault keeps more PCI DSS scope with you, while an external vault adds a vendor contract and a second data flow to review |
| Which system triggers renewal charges | Billing provider schedules renewals and calls Hyperswitch for each charge; this keeps the ledger and invoice dates in one system | If the billing provider and Hyperswitch both schedule charges, duplicate attempts are possible, so confirm which one owns the renewal clock |
| Where dunning and retry rules are configured | Retry logic inside Hyperswitch when you want attempt-level routing and retries across processors; billing-side dunning when your finance team manages collections rules there | Two retry layers can stack and over-retry a card, so decide which layer runs first and confirm the limits in each system |
| How payment method IDs are stored and mapped | Store the Hyperswitch payment method ID against the customer and subscription in the billing record, and keep the mapping in your own database | If the mapping is lost or drifts after a migration, renewals fail or charge the wrong card, so test mapping changes before cutover |
| How webhooks reconcile status back to the ledger | Hyperswitch webhooks update the billing provider's invoice or payment state through your integration service, with a single writer for each status | Missed or out-of-order webhooks leave the ledger wrong, so confirm delivery retries, idempotency keys and a periodic reconciliation job |
Setup sequence for the billing integration
This sequence moves a subscription business from its current billing setup to a model where Chargebee, Recurly or Stripe Billing keeps the subscription ledger and scheduling while a self-hosted Hyperswitch stack owns card vaulting, payment attempts and retries. Each step ends with a check you can run before moving to the next.
Confirm deployment and version compatibility
Your platform or payments engineering team confirms that the self-hosted Hyperswitch stack is running, identifies the exact release in use, and checks that the Control Center and client SDK versions are on the compatibility matrix for that release. If the target version requires a Superposition service, as the v1.124.0 release notes describe for that version, confirm that service is running before any upgrade. Done when the router, scheduler, Control Center and SDK versions are written down and a test payment completes end to end in a non-production environment.
Connect processors and verify test transactions
Your payments team adds the acquiring processors you will use for renewals in the Hyperswitch Control Center, using sandbox credentials first. Confirm which connector you use for each market and card type, and record which processor-specific webhooks Hyperswitch must receive. Done when a test authorization and capture succeed through each connector that will carry renewal traffic, and the results appear in the Control Center.
Decide and document the vault model
Your security, compliance and payments leads choose one of the three documented vault models: self-hosted with the native Hyperswitch Vault, self-hosted orchestration with an external PCI vault provider, or self-hosted orchestration with the SaaS Hyperswitch Vault. Record who holds PCI DSS responsibility for each model, since the docs state that the merchant carries it in the in-house model. Done when a signed decision record names the model, the owner of the cardholder data environment and the scope boundary, and your QSA or internal assessor has reviewed it.
Map billing identifiers to Hyperswitch identifiers
Your billing engineers build a mapping table that links each billing provider customer ID and subscription ID to the Hyperswitch customer ID and the stored payment method ID. Decide which system is the source of truth for plan, amount and currency, and make sure the mapping is written when a card is first saved. Done when a sample of active subscriptions reconciles one to one across the billing provider and Hyperswitch, with no orphaned customers or duplicate payment methods.
Route renewal charges through Hyperswitch
Your integration team changes the renewal flow so that the billing provider decides when a renewal is due and what it costs, then calls Hyperswitch to create the payment attempt using the stored payment method. The billing provider should not hold raw card data or call a processor directly for these charges. Confirm the exact integration pattern for your chosen provider in the Hyperswitch subscriptions documentation before building. Done when a renewal triggered by the billing schedule produces one Hyperswitch payment attempt, and the attempt status is visible in both systems.
Set webhook handling in both directions
Your integration team configures Hyperswitch to send payment outcome events to the billing provider, and configures the billing provider to receive those events and update invoice and subscription status. Make the handlers idempotent, so a repeated event does not create a second invoice or a duplicate state change. Confirm the signature verification steps for each webhook endpoint. Done when a successful payment, a declined payment and a repeated delivery of the same event each produce the expected single state change in the billing provider.
Test renewals and failed payments
Your QA and finance teams run test subscriptions through a full billing cycle, including successful renewals, declines that Hyperswitch retries, declines that end in a final failure, and a card that needs authentication. Compare the subscription status, invoice status and Hyperswitch payment record for each case. Done when every test case shows matching state across both systems, and the team signs off on the dunning and retry behavior you intend to keep.
Security and PCI scope when billing and vaulting are split
When Chargebee, Recurly or Stripe Billing keeps the subscription ledger and Hyperswitch handles vaulting and charges, card data, credentials and audit trails cross two systems. The cards below cover where card data lives, how the vault model sets PCI DSS scope, and the access and logging controls your security team should review before go-live.
Card data flow across both systems
The billing provider should hold plan, invoice and customer records, and should never receive raw card numbers. Card capture and storage stay in Hyperswitch, so renewal charges are triggered by reference to a stored payment method. Map every field your billing provider sends to Hyperswitch and confirm that card numbers, expiry dates and CVVs travel only through the checkout SDK or the vault path, never through a billing webhook or export.
Subscriptions docsPCI DSS scope by vault model
The vault model you choose decides how much of your environment falls under PCI DSS. In the self-hosted, in-house PCI model, the merchant carries full responsibility for certification and data handling. An external PCI vault provider or the SaaS Hyperswitch Vault moves part of that burden to the vendor, but your integration still needs to be assessed. Ask your QSA or assessor to confirm scope with a written data flow diagram before choosing a model.
In-house PCI modelAPI keys and webhook secret handling
Each integration between the billing provider and Hyperswitch uses API credentials and a webhook signing secret. Store these in a secrets manager, scope API keys to the minimum needed for charges and status reads, and rotate them on a schedule your team can execute without downtime. Treat the webhook secret as a verification key: a receiver that accepts unsigned events can be used to mark invoices paid or trigger charges.
Control Center access through OpenID Connect
The Hyperswitch Control Center supports single sign-on through OpenID Connect only, with no SAML, no JIT provisioning and no SCIM. Users must be invited before they can sign in, and roles are managed in Hyperswitch rather than mapped from your identity provider. Your access reviews must therefore cover Hyperswitch role assignments separately, and offboarding a user in your identity provider does not remove their Hyperswitch role automatically.
SSO configuration docsAudit logging of renewal charges
A renewal charge touches the billing ledger, the Hyperswitch payment attempt and the processor, so an investigation needs all three records. Confirm that each attempt stores the subscription identifier, the stored payment method reference, the actor or job that triggered it and the processor response. Check that logs are retained and forwarded to a store your security team can search, and that log access is itself restricted.
Questions teams ask before hiring help with Hyperswitch billing integrations
What actually drives the effort of a Hyperswitch and subscription billing integration?
The main drivers are how many billing events must reach Hyperswitch, how many processors and payment methods sit behind it, and how much of today's retry and dunning logic moves across. Hyperswitch documents augmenting providers such as Chargebee, Recurly or Stripe Billing so the provider keeps the subscription ledger and scheduling while the merchant owns card vaulting, payment attempts and retry logic. Effort rises with each place where the two systems must agree on plan changes, proration, failed invoices, refunds and webhooks. Ask any partner to list those touchpoints in the written scope before pricing it.
Can our in-house team build this integration without outside help?
Often yes, if the team already runs payments and billing integrations and has engineers comfortable with Kubernetes, PostgreSQL and Redis, since those are the components the Hyperswitch architecture documents describe. The harder parts are usually not the API calls but the reconciliation of subscription state, webhook ordering and failure handling across two systems of record. Teams without recent payments experience tend to underestimate those areas. A short internal spike against the Hyperswitch sandbox can show where your gaps are before you decide.
What do finance and billing owners need to provide?
They need to define which system is the source of truth for each subscription state, invoice and refund, and who approves changes to retry rules. They also need the current dunning policy, plan and price catalog mapping, tax handling, and the reports finance uses to close the books. Without those decisions written down, engineers end up encoding assumptions that finance later has to unwind. Expect these owners to review test cases for failed renewals and partial refunds before go-live.
How long does the work take, and what changes the duration?
No duration is given here because the timeline depends on the scope you agree in writing. The main variables are the number of billing providers in scope, whether you migrate existing saved cards or start with new ones, the number of processors Hyperswitch will route to, and how much custom reporting finance needs. A narrow integration with one billing provider and one processor takes far less than a multi-processor setup with historical data moved across. Ask for milestones tied to test environments rather than a single end date.
Does the card vault have to move to Hyperswitch?
No. Hyperswitch documents three self-hosted vault models: the native Hyperswitch Vault, an external PCI vault provider such as VGS or Tokenex, and the SaaS Hyperswitch Vault. Choosing the external or SaaS model keeps card data out of your own PCI DSS scope to a greater degree, while the in-house model makes you fully responsible for PCI DSS certification and data handling, according to the Hyperswitch docs. Your billing provider's existing stored card references may also need to be re-tokenized, so confirm that path with both vendors before deciding.
How do Hyperswitch upgrades affect the billing integration?
Each release can change the router, Control Center and client SDK, and the Hyperswitch releases page publishes a compatibility matrix for Control Center and web client versions with each release. Version 1.124.0 made Superposition a required configuration dependency, so a deployment must run that service before upgrading. Your integration tests should cover webhook payloads and retry behavior, since those are the points most likely to break after a minor release. Ask any partner how upgrades will be tested against your billing flows and who owns the change calendar.
What should a quote for this work contain?
A useful quote lists the in-scope billing providers and processors, the vault model and who operates it, the integration points for subscription events, webhooks, refunds and reporting, and the test plan including failed-renewal scenarios. It should name the deliverables, the environments handed over, the acceptance criteria and any dependencies on your billing vendor or processor. Separate one-time build work from recurring support or upgrade retainers. DeployOpen works from a written scope and does not publish a price list, so ask for the quote to show exactly which items it covers.
How DeployOpen scopes and delivers this integration
DeployOpen plans and implements self-hosted Hyperswitch inside your own infrastructure, with the subscription provider kept as the ledger of record. We agree the boundary between Chargebee, Recurly or Stripe Billing and Hyperswitch in writing before build work starts, then test, document and hand over the integration so your team can run it.
How we scope
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- The written scope maps which events the subscription provider owns and which payment attempts Hyperswitch owns.
- We confirm your chosen subscription provider and whether it is Chargebee, Recurly or Stripe Billing before design begins.
- The scope lists the retry and recovery behavior your finance and product teams have approved.
How we build
- We configure the billing webhooks and invoice triggers that send charge requests from the subscription provider to Hyperswitch.
- We map subscription, invoice and payment identifiers so each renewal links to one Hyperswitch payment attempt.
- We test renewals, failed charges, retries and refunds in a non-production environment before go-live.
- We check that the card vault stores saved payment methods used by recurring charges, following your agreed vault model.
How we hand over
- Handover includes documentation of the event flow, identifier mapping and the ownership split between each system.
- We document the runbook for failed renewals, stuck webhooks and reconciliation checks your finance team will use.
- Your engineers receive walkthroughs of configuration, secrets locations and the test cases used for acceptance.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, separate from the initial scope.
- Hyperswitch upgrades can change connector and webhook behavior, so we plan regression tests against the billing flows for each upgrade.
- Ask any partner to confirm how they handle subscription provider API version changes and who owns that work after handover.

