Using Stripe as a processor behind Hyperswitch

Stripe connects to self-hosted Hyperswitch as one processor among many, through API credentials and webhooks configured in Control Center. This page covers the setup sequence, data mapping, raw card limits and the checks that keep recurring payments portable.

On this page

How Stripe fits behind Hyperswitch as one processor

Stripe is one of the processors Hyperswitch connects to, and it sits behind the router as one option among many. Teams usually arrive here in one of two ways. Some already run Stripe directly and want Hyperswitch in front for routing, retries and a second acquirer. Others are self-hosting Hyperswitch and need Stripe as a connector so that card and wallet traffic can reach it. In both cases the Hyperswitch README lists Stripe among its supported processors, and the connection is made in the Control Center by entering Stripe credentials and configuring webhooks. Once connected, the Stripe connector is one candidate the router can select, alongside any other processors you add. The exact credential fields and webhook endpoints change between releases, so confirm them against the Stripe connector section of the Hyperswitch documentation for the release you run before you prepare keys.

Connecting Stripe through Hyperswitch does not move ownership of the money. Your Stripe account remains the merchant account of record, and Stripe still performs settlement to your bank, holds funds, applies its fee schedule and runs its own dispute and chargeback workflows. Hyperswitch sends authorization and capture requests to Stripe and reads back the results, so a dispute raised in Stripe will still arrive in Stripe's dashboard first. Hyperswitch surfaces payments and disputes across processors in the Control Center, but reconciliation against Stripe payouts is a separate job that you need to design. Ask your finance team which Stripe reports they reconcile against today before you change the routing setup, because that report will not change just because a router now sits in front of it.

Plan for Stripe to be one processor among several from the start, not the only one. Keep the Stripe credentials in your secrets store, record which payment methods and currencies are enabled on the Stripe connector, and test a failover path in a sandbox before any live traffic is routed. Confirm with the Hyperswitch documentation for your release how the router behaves when the Stripe connector is ineligible for a given transaction and how the default fallback routing selects another processor. Those answers determine whether a Stripe outage becomes a degraded checkout or a failed one.

What you need before connecting Stripe

Connecting Stripe to a self-hosted Hyperswitch stack depends on four groups of readiness: the platform itself, the Stripe account, Control Center access and key ownership. Confirm each one before the first connector configuration, because a gap in any of them usually surfaces as a failed test payment or a webhook that never arrives.

A tested Hyperswitch release

Run a self-hosted Hyperswitch stack on a release your team has already tested in a non-production environment. Before upgrading anything, check the compatibility matrix for Control Center and web client versions on the GitHub releases page, since each release lists the versions it supports. Record the exact router and Control Center versions you are running so that any later failure can be traced to a known combination.

Hyperswitch releases

PostgreSQL and Redis in place

The self-hosted architecture depends on PostgreSQL, set up with a master and replica, and on Redis for caching and the scheduler queue. A Stripe connector stores merchant configuration and payment state in these stores, so an outage in either one stops payments even when Stripe is healthy. Confirm that backups, failover and connection limits for both are defined before go-live.

Architecture docs

Router reachable from Stripe

Stripe sends payment status events to a webhook endpoint that must resolve to the Hyperswitch Router from the public internet. Confirm the ingress, load balancer and TLS certificate for that hostname, and make sure your firewall or WAF does not block the request path. Test the endpoint with a Stripe test event before relying on it for reconciliation.

Stripe account for the right environment

Create or confirm a Stripe account with API access, and start every integration in test mode with test keys. Only move to live keys after test authorizations, captures, refunds and webhook deliveries work end to end in your own stack. Ask who at your organization owns the Stripe dashboard, since account roles there control which keys and webhook endpoints can be changed.

Control Center role for connectors

Adding a connector requires a Control Center login whose role allows connector configuration. Roles are managed inside Hyperswitch, not mapped from your identity provider, and users must be invited before they can sign in. Confirm that the people who will add or edit the Stripe connector hold this role, and that at least one second person can perform the same task.

Control Center SSO docs

Owner of the Stripe secret key

Decide who holds the Stripe secret key before it is entered into Hyperswitch. Whoever can read the key can make charges, issue refunds and change account settings, so limit access to a named owner, and document where the key is stored and who can rotate it. This decision also determines who responds when Stripe credentials must be replaced after a staff change.

How a Stripe payment flows through Hyperswitch

The flow starts at the merchant's checkout, which sends the payment request to the Hyperswitch Router inside the merchant's own infrastructure. The Router makes the routing decision, hands the request to the Stripe connector, and Stripe's API responds. Stripe then sends a webhook back to the Router, which writes the status update to PostgreSQL. Check where card data is held: if it is sent to the card vault, that path sits inside your scope, while Stripe's side of the boundary is Stripe's responsibility under your agreement with them.

Payment path from checkout through the Router and Stripe, with the trust boundary marked.

Connecting Stripe keys and webhooks in Control Center

This sequence connects one Stripe account to a self-hosted Hyperswitch stack through the Control Center, proves that a test payment and refund flow end to end, and confirms that the webhook path updates payment status before any live traffic is routed.

  1. Confirm the self-hosted stack is ready

    Your platform or infrastructure team confirms that the Router, the Control Center and the database services are running in the test environment before any processor is added. Check the Control Center loads, that you can sign in with an invited user, and that the Router responds to a basic health request from inside the cluster. If the Control Center is unreachable or the Router is not healthy, stop here, because a connector screen cannot be validated against a stack that is not yet working. Confirm the Hyperswitch release you run includes the required Superposition dependency if it is a version that needs it (see the v1.124.0 release notes).

  2. Create or select the test environment

    Choose a test or sandbox environment in the Control Center and keep all first connections there, separate from any environment that will take production traffic. Use a Stripe test account and its test-mode keys so that no live charges can occur during setup. Your payments lead should write down which environment and which Stripe account are linked, because later mistakes in webhook routing are most often caused by mixing these up. The check is simple: the environment name and the Stripe account type (test) are both visible on the connector screen before you enter any credentials.

  3. Enter Stripe credentials in the connector screen

    In the Control Center, open the processor connector screen, select Stripe, and enter the test secret and publishable keys from your Stripe dashboard. Store the values only in the connector screen, not in a configuration file or a shared document, and restrict who on your team can view them. Confirm the field names against the screen in your release rather than against older guides. The check is that the connector saves without a validation error and appears as active for the test environment. If saving fails, check that you copied the test key and not the live key, and that the key has not been restricted in Stripe.

  4. Register the webhook endpoint and store its secret

    In the Stripe dashboard, create a webhook endpoint that points to the publicly reachable address of your self-hosted Router, using the path shown in the Control Center or the Hyperswitch integration documentation. Select the Stripe events that Hyperswitch needs for payment and refund status, then copy the webhook signing secret that Stripe generates. Enter that signing secret into the connector screen so Hyperswitch can verify that incoming events really came from Stripe. The check is that Stripe shows a successful delivery when you send a test event from its dashboard, and that Router logs record the event as received and verified.

  5. Enable the payment methods the business needs

    Turn on only the payment methods and currencies that the first test cases require, such as cards in one currency, and leave the rest disabled. Your product owner and payments engineer should agree this list in writing, because each enabled method adds test cases and later reconciliation work. Some methods depend on account settings in Stripe, so confirm each one in the Stripe dashboard before you rely on it. The check is that the enabled methods appear in the payment flow for the test environment and that a method not on the list does not appear at checkout.

  6. Run a test authorization and capture

    Using a Stripe test card through a test checkout or the sandbox API flow, create a payment, authorize it, and then capture it. Your QA engineer should record the payment identifier that Hyperswitch returns and compare it with the identifier shown in the Control Center. The check is that the payment appears in the Control Center with the expected state after authorization, and then changes to the captured state after capture. If the state does not change, look first at the webhook delivery log in Stripe and the Router logs, because status updates depend on the webhook path working.

  7. Send a refund and confirm the status update

    Issue a refund for the captured test payment through the Control Center or the API, then watch the payment and refund records. Confirm that the refund event arrives at the Router through the webhook, that the signature verification step passes, and that the payment and refund status in the Control Center both update without manual intervention. Your engineer should also record the time between the refund and the status change so the team has a baseline for later monitoring, using the platform's own observability tools. The check is a refund shown as completed in the Control Center and in the Stripe dashboard, with matching identifiers in both places.

How Stripe objects and states map to Hyperswitch

This table compares the Stripe objects a team will see with the Hyperswitch payment, refund, dispute and customer records they correspond to, and notes which identifiers to store for reconciliation. Read it alongside your own connector configuration, because the exact Stripe object names and webhook event types should be checked against the current Hyperswitch Stripe connector documentation before you build mappings. The main takeaway is that Hyperswitch holds the orchestration record, while Stripe remains the processor record of the acquiring transaction.

Stripe conceptHyperswitch recordIdentifiers to storeSource of truth
Payment intent or chargePayment attempt linked to a payment intentHyperswitch payment ID, attempt ID, Stripe PaymentIntent ID, charge IDStripe for processor status, Hyperswitch for merchant order state
RefundRefund record linked to the original paymentHyperswitch refund ID, Stripe refund IDStripe for settled refund outcome
DisputeDispute record surfaced in Control CenterHyperswitch dispute ID, Stripe dispute ID, original charge IDStripe, with your team recording the response
CustomerCustomer object with connector customer mappingHyperswitch customer ID, Stripe customer IDHyperswitch if it holds the customer profile, confirm which side writes updates
Payment method (saved card or token)Payment method record in the vault or connector mandateHyperswitch payment method ID, Stripe payment method ID, network transaction referenceVault model you chose, confirm where raw or tokenized card data lives
Webhook event typesStatus updates applied to Hyperswitch payment and refund recordsStripe event ID, event type, received timestamp, processing outcomeStripe emits the event, Hyperswitch applies the state change, verify exact event names in the connector docs

Where raw card acceptance stops for Stripe

Sending raw card data through Hyperswitch to Stripe is a separate decision from using Stripe as a processor. Keeping Stripe as one connector behind Hyperswitch does not, by itself, mean your team can pass primary account numbers to it. Stripe restricts raw card data through its own account controls, so the answer depends on what your Stripe account has been approved to receive, not on how Hyperswitch is configured. Treat raw card flows as an open question until Stripe confirms it in writing for your account.

The Hyperswitch vault models decide where card data sits and who carries PCI DSS responsibility. 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, so your environment holds the cardholder data and falls inside your assessment scope. The self-hosted and in-house PCI model page sets out those responsibilities. Using an external PCI vault provider such as VGS or Tokenex, or the SaaS Hyperswitch Vault with self-hosted orchestration, changes which systems touch card data and therefore changes your scope. Each option needs its own scope analysis with your assessor.

Before you plan any raw card flow, ask Stripe what its account requires for raw card data, which documentation it expects and whether the restriction applies to your account type and region. Map the answer against your chosen vault model so the scope decision is made once, with both sides in view. This page does not cover the attestation process that a self-hosted merchant may need to provide, which is covered in the raw card acceptance topic. If Stripe does not approve raw card data for your account, plan your card flow around tokenization through a vault model Stripe accepts.

Split settlement and recurring payments: one processor or two

When Stripe is the only processor behind Hyperswitch, settlement reporting stays close to what you already receive from Stripe. Payouts, balance transactions and dispute records remain in Stripe's dashboard and reports, and Hyperswitch records the payment intent, attempt and refund states it received from Stripe through its connector. Your saved payment methods and recurring schedules sit in two places: Stripe holds the customer and payment method objects, and Hyperswitch holds its own references to them. Reconciliation is simpler because there is one settlement source to match against.

  • Settlement source: Confirm with your finance team that Stripe payouts are still the authoritative record for bank deposits, and that Hyperswitch reports are used only to match payment attempts.
  • Token location: Ask Stripe which customer and payment method objects back your saved cards, and confirm how Hyperswitch maps its own IDs to them.
  • Webhook path: Verify that Stripe webhooks reach the Hyperswitch endpoint you configured and that failed deliveries are retried and monitored.
  • Recurring logic: Decide whether billing schedules run in Stripe Billing or in your own scheduler, since that choice determines where the next charge is created.
  • Migration note: Even in a single-processor setup, document which tokens and objects you could export, so a later move is not blocked by an undocumented dependency.

Before go-live, confirm the Stripe account settings, API keys and webhook signing secrets in writing with your Stripe contact or account documentation.

Securing Stripe keys, webhook secrets and card data scope

Stripe credentials and webhook secrets give access to live payments, so they need the same handling as any production secret. The controls below cover where secrets live, who can change connector settings, how keys rotate, and how changes are recorded, which together determine whether your Stripe setup stays within the scope you planned.

Keep secrets out of config files

Store the Stripe secret key and webhook signing secret in a secrets manager, not in Helm values, ConfigMaps or repository files. Inject them into the Router at runtime so that anyone reading deployment manifests cannot see live credentials. Confirm with your platform team which secrets manager integration your cluster uses, and check that secret values do not appear in logs or in the Control Center connector view after saving.

Self-hosting docs

Limit Control Center connector roles

Assign connector management only to the people who actually add, change or remove processor credentials. Other operators can receive read or reporting access. Because the Control Center requires users to be invited first and manages roles inside Hyperswitch, you must review the invited user list and role assignments yourself, since your identity provider will not map groups to roles automatically.

SSO setup docs

Use OpenID Connect for Control Center sign-in

Control Center single sign-on works through OpenID Connect only, with no SAML support, and it has no just-in-time or SCIM provisioning. Plan the invitation step as part of onboarding and removal as part of offboarding, because a user removed from your identity provider keeps access inside Hyperswitch until you remove them there. Confirm this behavior against the version you run before you write the access procedure.

Configure SSO

Verify Stripe webhook signatures

The Router should reject any Stripe webhook whose signature does not match the webhook signing secret for that endpoint. Without this check, anyone who can reach the webhook URL can send forged payment status events. Test the rejection path with a deliberately wrong signature in a non-production environment, and confirm that the webhook endpoint is reachable only from the paths you intend to expose.

Rotate keys on a written schedule

Set a rotation schedule for the Stripe secret key and the webhook signing secret, and record who performs each rotation and how the new value reaches the Router. Rotation needs a short overlap plan so payments in flight do not fail during the switch. Ask your team to confirm the schedule with the compliance owner, and to test one rotation in staging before the first production rotation.

Separate test and live credentials

Keep Stripe test and live keys in separate environments, with separate secrets, separate webhook endpoints and separate Control Center connector entries. A test key pasted into a production connector, or a live key used in a sandbox, is a common cause of unintended live charges and misrouted events. Label each connector clearly in the Control Center and block live credentials from non-production clusters at the secrets manager level.

Why Stripe calls and webhooks fail behind Hyperswitch

This table lists the failures teams most often hit when Stripe runs behind a self-hosted Hyperswitch Router, with the likely cause and the first check to run for each. Read it as a triage order: confirm delivery and keys before you suspect the connector code. The main takeaway is that most failures trace back to network reachability, secret or mode mismatches, or a missed event that needs a replay rather than a code change.

FailureLikely causeFix and check to run
Webhooks never reach the RouterThe webhook endpoint is on a private network or behind a firewall that blocks Stripe's inbound requestsConfirm the public route to the Router's webhook path with an external request. In the Stripe dashboard, open the endpoint's delivery log, then review the Router logs for the matching event ID. Open the firewall or ingress rule for Stripe's sending addresses, or expose only that path.
Signature verification failsThe webhook signing secret in Hyperswitch no longer matches the endpoint secret in Stripe, often after the endpoint was recreated or rotatedCopy the current signing secret from the Stripe endpoint settings into the Hyperswitch connector configuration. Send a test event from Stripe, then check the Router logs for the signature error. Confirm that a proxy or load balancer is not altering the request body, since that also breaks verification.
Test keys used in live modeThe connector holds a test-mode secret key or publishable key while live traffic is sent, so calls are rejected or land in the wrong environmentConfirm the key prefix matches the environment (test keys and live keys are distinct). Check the connector credentials in the Control Center for each environment, and verify with a no-value authorization in the test environment before go-live. Keep test and live connectors as separate entries.
Payment stuck in a pending stateA webhook was missed or rejected, so Hyperswitch never received the final status from StripeCompare the payment's status in Hyperswitch with the PaymentIntent in the Stripe dashboard. In Stripe, replay the event from the endpoint's event list, then review the Router logs to confirm it was processed. Check whether a sync or status poll is configured for your flow so that a missed event does not leave the payment open.
Refund fails on an uncaptured paymentThe original payment was authorized but not captured, so Stripe does not accept a refund against itCheck the payment's capture status in Stripe before retrying. Capture the payment first, or void the authorization if the intent is to cancel. Confirm the refund request references the correct Stripe payment identifier in the Router logs.
Connector errors after an upgradeA Hyperswitch release changed a required dependency, such as the Superposition service that became mandatory in v1.124.0, or the Control Center and router versions no longer matchBefore upgrading, read the release notes and the compatibility matrix for your target version. Confirm every required dependency is running and reachable. After the upgrade, review Router logs for connector initialization errors and run one authorization and one webhook test in a non-production environment.
Webhooks arrive out of orderStripe events for one payment can arrive in a different order than they were created, and the handler applies a stale statusCompare event timestamps and the Stripe event IDs in the Router logs against the payment's state history. Confirm that the handler checks the latest object state from Stripe before it updates the payment, and test with a delayed event in a sandbox.

Questions buyers ask about running Stripe behind Hyperswitch

What drives the effort of connecting Stripe to a self-hosted Hyperswitch?

The main drivers are the number of payment methods you enable, the number of Stripe webhook events you need to handle, how much reconciliation you require, how much existing Stripe data must be carried over, and whether recurring payments must stay portable to other processors. Each added payment method means more configuration and testing across checkout and settlement. Each webhook event you must act on adds handler logic and replay tests. Existing Stripe customers, subscriptions and saved payment methods add migration and matching work. Ask for a written scope that lists each of these items separately so the quote can be traced back to them.

Can our own engineers connect Stripe to Hyperswitch without a partner?

Yes, a capable internal team can do the connection, provided it has engineers who can run the Hyperswitch stack, manage Stripe API keys and webhook endpoints, and test payment flows end to end. The team needs a working self-hosted Hyperswitch environment, access to a Stripe test account, and someone who understands settlement and reconciliation. The Hyperswitch documentation covers connector configuration, and the Control Center handles processor setup. The hard parts are usually webhook correctness, reconciliation against Stripe payouts, and keeping the setup current through upgrades, so weigh those against your team's capacity.

What do we need to provide before the work starts?

You will need Stripe administrator access, or a named person who can create restricted API keys and webhook endpoints in the Stripe dashboard. You will also need a test environment that mirrors your production Hyperswitch configuration, plus a Stripe test account and sandbox data. Assign one named owner for the Stripe keys, who approves key creation, rotation and storage in your secrets system. Confirm early which Stripe account types, currencies and payment methods are in scope, because the Stripe dashboard controls several of these settings and some changes need account-level approval.

How do we ask for a quote based on a written scope?

Start with a written scope that names the Stripe account and regions, the payment methods, the webhook events you must process, the reconciliation requirements, the environments to build, and the handover items such as runbooks and tests. Ask the provider to state what is included, what you must supply, what is excluded, and which deliverables are fixed. Ask whether the price is one-time, recurring, or both, and whether ongoing support, upgrades and testing are quoted separately. DeployOpen works from a written scope and does not publish a price list, so the quote follows from the scope you agree.

Can we move recurring payments off Stripe later?

It is possible, but it depends on how recurring payments are set up from the start. Stripe holds subscription objects, customer records and saved payment methods, and those are tied to Stripe's data model. Moving them later requires exporting tokens or payment data through a supported path, which Stripe may restrict depending on your account and the card data permissions you hold. To keep recurring payments portable, decide early whether tokens are stored in a vault you control, and whether billing logic lives in your own system instead of only in Stripe subscriptions. Confirm the token export options with Stripe in writing before you design around them.

What breaks most often when Stripe sits behind an orchestrator?

The most common failures involve webhooks and reconciliation. Stripe sends events asynchronously, so duplicate deliveries, out-of-order events and delayed events can leave Hyperswitch and Stripe showing different payment states. Split settlement and refund timing can also cause totals to differ between Stripe payouts and your ledger. Check that webhook signatures are verified, that handlers are idempotent, and that a replay process exists for missed events. Test refunds, partial captures and disputes in the test environment before go-live, and confirm that your reconciliation reports match Stripe's balance and payout data.

Does Stripe's card data restriction affect our setup?

Yes, it can. Stripe restricts raw card data acceptance by default, and using Hyperswitch in a self-hosted, in-house PCI model may require that you hold the compliance evidence Stripe asks for before it enables raw card transfers. Confirm with Stripe, in writing, which card data path it supports for your account, and whether it requires a PCI Attestation of Compliance from you. If Stripe does not enable raw card acceptance, you may need to use Stripe-hosted tokenization or an external vault. Settle this decision before choosing a vault model, because it sets your PCI DSS scope.

How DeployOpen works on this

DeployOpen plans, implements and supports self-hosted open-source platforms inside your own infrastructure, so a Stripe connection behind your Hyperswitch stack is scoped in writing before any work starts. The engagement covers the connector setup, webhook handling, test evidence and operating documents your team needs to run Stripe as one processor among several.

How we scope

  • Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • We confirm which Stripe account types, payment methods and flows your business needs, including whether raw card acceptance is in scope.
  • The written scope states who holds Stripe API keys, where webhook endpoints live and which recurring payment flows stay processor-agnostic.

How we build

  • We configure the Stripe connector in your self-hosted Hyperswitch environment, using keys stored in your own secrets management system.
  • We register and verify webhook endpoints, then test event handling for payments, refunds and disputes against Stripe's test mode.
  • We test failure paths such as duplicate webhooks, delayed events and declined payments, and record the results as evidence.

How we hand over

  • You receive configuration documentation covering credentials, webhook URLs, routing rules and the Stripe settings that affect scope.
  • We provide a runbook for rotating keys, updating the connector during Hyperswitch upgrades and checking webhook delivery.
  • We deliver a retest summary so your security and compliance teams can review the connection before it carries live traffic.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so connector changes follow each Hyperswitch release.
  • Retainer work can cover checks after Stripe API or Hyperswitch connector changes that affect your integration.
  • Ask any quote to name what recurs (retainer, testing cycles) and what is one-time (initial connector build and documentation).

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.