Pointing Hyperswitch SDK self-hosted backend: what changes for your team
If your team self-hosts the Hyperswitch backend, the checkout SDKs still need to be configured to call your server rather than Juspay's endpoints. Pointing the SDKs at your own Router, keeping a separate publishable key for each environment and serving the SDK assets from infrastructure you control are the three changes that matter. The SDK configuration decides where the browser or app sends payment requests, which key identifies the merchant in each environment, and where the client code is downloaded from. It does not move any payment logic, so the decisions about routing, retries and token storage stay on the server side.
Several parts stay with the backend and should not be duplicated in the client. The Router handles routing, retries, vaulting and observability, the Scheduler handles queued work, and PostgreSQL and Redis hold the state behind both. Card data is held in the card vault, a separate service, so the SDK should only ever carry tokens and payment identifiers, never raw card numbers. Before go-live, confirm with your architects which vault model you have chosen, because that choice determines what the SDK may collect and where card fields are rendered. Also confirm that the SDK version you deploy matches the Router and Control Center versions in the compatibility matrix for each release.
Plan this work before your first staging test, not at go-live. Each environment (development, staging and production) should have its own publishable key and its own backend URL, so a misconfigured build cannot send live traffic to a test server or the reverse. Ask your engineers to confirm the exact configuration keys in the SDK version you use, and test a full payment in a non-production environment that mirrors the production hostnames, TLS setup and asset paths. Changing the backend host after launch usually means shipping new client builds for mobile apps, so the choice of hostnames and asset hosting should be settled and documented early.
Which SDK endpoint and key decisions to settle first
This table compares the four configuration decisions that shape how web and mobile SDKs reach a self-hosted Hyperswitch server. Read each row as a decision to close before any SDK code changes, noting what it depends on in your stack and what to confirm in the Hyperswitch docs for your chosen SDK. The main takeaway is that the endpoint, key and asset hosting choices must agree with the pinned server and client versions.
| Decision | When it fits | What it depends on in the self-hosted stack | What to confirm in the Hyperswitch docs |
|---|---|---|---|
| Where the SDK calls the API | Any self-hosted deployment where payment traffic should stay in your infrastructure rather than Juspay's endpoints | A reachable, TLS-terminated router endpoint on your domain, with DNS, load balancing and ingress managed by your platform team | Which base URL setting each SDK (web, Android, iOS, React Native, Flutter) reads, and whether it applies to both API calls and the hosted payment pages |
| Publishable key per environment | Separate keys for development, staging and production so test traffic never reaches live processors | Merchant accounts and API keys created in each environment's Control Center, stored in your secrets manager and injected at build or runtime | Which key type is safe to ship in client code, and that secret keys never reach the browser or app bundle |
| Where SDK assets are hosted | When your security review requires scripts to load only from domains you control, or your network blocks outbound calls to third-party CDNs | A CDN or static origin you operate, with versioned paths, cache rules and integrity controls, plus the matching self-hosted web client build | Whether the web SDK can be served from your own origin, the build steps required, and any mobile asset or update mechanism that also needs hosting |
| Pinned SDK and web client versions | Any production rollout, so that client and server behave consistently across releases | The router version in your cluster, Control Center version and release compatibility matrix on the Hyperswitch releases page, and your upgrade calendar | Which SDK versions the server release supports, and whether a required dependency such as Superposition must be running before a server upgrade |
| Environment and CORS allowlist | When the frontend origin, mobile bundle identifiers or redirect URLs differ between environments | Ingress rules, allowed origins and return URLs configured per environment, kept under the same change control as the router | How the server validates request origins and return URLs, and which settings must be updated when a domain changes |
| Who owns key and endpoint rotation | When several teams ship SDK builds that depend on the same endpoint and key | A named owner, a rotation runbook and a record of which app versions use which endpoint and key | Whether publishable key rotation requires an app release, and how old SDK builds behave after an endpoint change |
How SDK requests reach your Router and card vault
The flow starts in the customer's browser or mobile app, which loads SDK assets from hosting your team controls. The SDK then calls your self-hosted Router API, not Juspay's endpoints. The Router passes card data to the card vault and sends processor calls out from the Router, while the Scheduler, PostgreSQL and Redis sit behind it as backend dependencies. Check that every hop stays inside the trust boundary you intend, and confirm which components are in your PCI DSS scope.
Request path from customer SDK through your Router, card vault and backend dependencies.
How web, Android, iOS and cross-platform SDKs differ when pointed at your server
The web SDK is delivered as JavaScript that your pages load, so the server address and publishable key are normally supplied when the checkout is initialized in your page code or build configuration. Whether that value is baked into a bundle you build yourself or passed in at runtime decides how much work a change creates. Assets can come from the vendor-hosted location or from a host you control, and that host must serve the version that matches your app server.
- Where the values live: Check whether the server address and key are compiled into your bundle or read at page load, because that determines whether a change needs a rebuild.
- Asset hosting: If you host the SDK files yourself, every environment needs its own copy, and CDN caches must be purged after a new build is published.
- Version pairing: Keep the SDK version aligned with the server release, since the Hyperswitch upgrade process treats router and client versions as a matched set.
- Browser policy: Content Security Policy, CORS and allowed-origin settings on the server must include the domains that serve your checkout pages.
- Key rotation: Rotating a publishable key means updating every page that initializes the SDK, so plan the change as a coordinated deploy.
Confirm the initialization options and the asset loading method for the web SDK version you plan to run.
The Android SDK is a library your app compiles in, so the server address and publishable key are typically set in application code or build configuration and end up inside the packaged app. A change to either value is therefore a new app build, a signed release and a rollout through the store, and users on older builds keep the old values until they update. Build variants help keep staging and production values separate, but each variant still produces its own artifact.
- Where the values live: Expect the endpoint and key to sit in code or Gradle configuration, which places them inside the release artifact.
- Build variants: Separate debug, staging and production variants so a test server address never reaches a store build.
- Rollout timing: Plan for a period where installed apps run against the previous endpoint, and keep the old server reachable until adoption is high enough.
- Dependency changes: Changing the SDK version or the server release can require updating Gradle dependencies, so test the full build after each change.
- Over-the-air options: Confirm with the SDK version you use whether any part of the configuration can change without a store release, and which parts still require one.
Confirm the exact configuration points and any update mechanism for the Android SDK version you plan to ship.
The iOS SDK is added as a dependency and compiled into the app, so the server address and publishable key are set in source or build settings and are fixed in each signed binary. Changing them means a new build, an archive, a distribution step and App Store review, with the same adoption lag that Android users see. Build configurations and schemes are the usual way to keep environments apart, and payment-related capabilities such as Apple Pay carry their own configuration that must match the environment.
- Where the values live: Expect the endpoint and key in source files or build settings that are compiled into the app binary.
- Build configurations: Use separate configurations for development, staging and production so the production binary never points at a test server.
- Store review: Account for review time on every change to the endpoint or key, and avoid making those changes close to a release freeze.
- Dependency management: Changes to the SDK version or its package source should be tested with the same dependency manager and lock state used for release builds.
- Payment capabilities: Confirm that merchant identifiers and entitlements used for wallet payments match the environment the app points at.
Confirm the initialization fields, dependency version and any wallet configuration for the iOS SDK version you plan to release.
React Native and Flutter SDKs combine a shared language layer with native code for each platform, so the server address and publishable key are usually set in the JavaScript or Dart layer, while the native layers still need matching versions. A change can therefore touch the app code, the native build for both platforms and, depending on the SDK version, a bundle update. Teams should treat one configuration change as a change to two native builds plus the shared layer.
- Where the values live: Expect the endpoint and key in JavaScript or Dart configuration, often supplied through environment or build-time definitions.
- Native rebuilds: Changing native module versions or native configuration requires a fresh build for iOS and Android, even when only the shared layer changed on paper.
- Bundle updates: Confirm whether the SDK version you run supports updating the shared layer without a store release, and whether that path covers the endpoint and key.
- Expo and bare workflows: Check how the chosen workflow handles native configuration, since a managed workflow may limit which native settings you can change directly.
- Platform parity: Verify that the same server address and key reach both platforms, because a mismatch can show up on one platform only.
Confirm the configuration location, native dependency versions and bundle update support for the React Native or Flutter SDK version you run.
Setup sequence for a self-hosted Hyperswitch SDK backend
This sequence takes a self-hosted Hyperswitch server from a running backend to verified, pinned SDK builds that talk to your own endpoints in every environment. Each step closes with a check, so a failure is caught before it reaches a customer checkout.
Confirm the self-hosted server is reachable
The platform or infrastructure team confirms that the Hyperswitch router is running in each environment and answers on the hostname you plan to give the SDKs, with a valid TLS certificate and no redirect that changes the origin. Check the health endpoint from outside your cluster network, using the same DNS name and path the browser or mobile app will use. Record the exact base URL for each environment. The step is done when a request from a machine on the public or partner network returns a healthy response over HTTPS from that hostname, and the same URL is written down for the next steps.
Check the Superposition requirement for your release
Before going further, the platform team reads the release notes for the Hyperswitch version you have deployed or plan to deploy. The v1.124.0 release notes state that Superposition became a required configuration dependency and that a Superposition service must be running before upgrading to that version. If your target release has this dependency, confirm the service is deployed, reachable from the router and healthy in each environment. If your release does not require it, document that finding against the release page. The step is done when you have a written answer for each environment and, where required, a passing health check from the router's network.
Create publishable keys for each environment
The platform team creates a separate publishable key in the Control Center for sandbox, staging and production, each tied to the merchant account and profile that environment will use. Keep the keys out of shared repositories and store them in the secrets system your SDK build pipeline already reads. Name them so that a key cannot be mistaken for another environment's key during review. The step is done when each environment has its own key recorded in your secrets inventory, and a test request made with the sandbox key is rejected by the production server, confirming that keys do not cross environments.
Point each SDK build at its server and key
Developers configure each SDK build with the base URL from step one and the publishable key from step three for the matching environment. For web, this is the configuration used when the SDK is initialized. For Android, iOS, React Native and Flutter, follow the setting that points the SDK at a custom server in each platform's guide, and confirm the setting name against the current docs for your version. Build the sandbox artifact first so that mistakes are found in a low-risk environment. The step is done when each build's configuration file or build variable is reviewed in version control and the sandbox build loads its payment methods from your server, not from Juspay's endpoints.
Host the SDK assets from your own origin
If you serve the web SDK yourself, the platform team copies the built assets to your CDN or static origin and serves them from a domain you control, with cache headers and version paths that match the router release. Mobile SDK packages are pulled from your artifact repository or the public package manager as your release process requires, so confirm which versions are pinned. Confirm that the assets load over HTTPS from your origin and that the browser network log shows no requests to Juspay-hosted SDK URLs. The step is done when a clean browser session loads the checkout entirely from your domains and the version string matches the one recorded for the server.
Run an end-to-end test payment in each environment
QA or payments engineering runs a complete test transaction in sandbox, then staging, then production with a controlled card or test method, following the flow from payment creation through authorization and the result screen. Confirm that the payment is created on your server, the webhook reaches your endpoint, and the result appears in the Control Center. In production, use the test procedure your payments team has approved, and reverse or void any test transaction as your processor rules allow. The step is done when each environment shows a matched payment record in your server, your webhook log and the dashboard, with no errors in the router logs.
Record the pinned versions and the configuration
The platform team writes down the exact router release, Control Center version, Superposition version where applicable, each SDK version and the asset hashes or build IDs used in each environment. Store this record with the deployment manifests so that any future upgrade starts from a known state. Note the server base URLs, the key names (not the key values) and the owner of each secret. The step is done when the record is committed to your operations repository and a second engineer can rebuild the same SDK configuration from it without asking the original author.
Keeping publishable keys, endpoints and SDK assets under control
Pointing an SDK at your own server moves trust decisions into your build pipeline, your hosting and your release process. The cards below cover the places where keys, server addresses and SDK assets can drift or be altered, and the checks to confirm in your own environment before go-live.
Separate publishable keys per environment
Each environment (sandbox, staging, production) should have its own publishable key, issued by your own Hyperswitch server. A test key in a production build is the most common way a live checkout ends up talking to the wrong backend. Confirm that your build pipeline injects keys from an environment-specific source, that production artifacts fail the build if they contain a test key, and that no key is hardcoded in source control.
Self-hosting docsControl who can change the server address
The server URL baked into an SDK build decides where card and payment data is sent. Treat that setting like a deployment parameter: restrict who can edit it, require review for changes, and record which URL each released build uses. Confirm that a contributor cannot point a branch at an unapproved host without a review that a second person signs off on.
Protect the hosted SDK asset origin
If you host the web SDK files yourself, the origin serving them is part of your payment trust boundary. A modified script on that origin could read card fields before they are encrypted. Confirm that assets are served only over HTTPS from a controlled origin, that access to the hosting bucket or CDN is limited to the release pipeline, and that asset versions are pinned and checksummed where your tooling supports it.
TLS and hostname control
Your SDK and checkout pages should reach the server only through a hostname you own, with a valid certificate chain that clients trust. Check certificate expiry monitoring for the API and asset hostnames, avoid bypassing certificate validation in mobile builds for testing that later ships, and confirm how your mobile apps handle certificate pinning if your security policy requires it. Verify the exact behavior with the SDK version you ship.
Monitor SDK calls and failures
Once a server address is in production, you need to see which SDK versions and hostnames are making calls and where they fail. Log request outcomes and error codes on the server side, and alert on sudden drops in successful payment creation after a release. Confirm which SDK-side telemetry you can retain, how long your logs are kept, and whether they contain card or personal data that your privacy and PCI obligations forbid storing.
Roll out key and server changes to installed apps
Mobile apps keep the server address and key they shipped with until a user installs an update, so a key rotation or server move cannot be switched off at once. Plan a window where the old and new endpoints both work, keep the old path live until adoption data shows it is safe to retire, and test the rollback path. Confirm with your team how remote configuration or over-the-air updates are governed before relying on them for this.
Why SDK, Control Center and router versions must match
Pin the SDK to the server release you run. Hyperswitch ships roughly monthly minor releases, and each entry on its GitHub releases page includes a compatibility matrix covering Control Center and web client versions. The releases supplied for planning are v1.126.0 (August 24, 2026), v1.127.0 (September 28, 2026) and v1.128.0 (October 16, 2026). When you repoint the SDK at your own router, the client version you load should be the one the matrix lists for that server release, not whatever version a CDN or package manager serves by default. Record the pairing in your configuration so that a later dependency update does not silently move one side ahead of the other.
Plan the upgrade before you change URLs. The v1.124.0 release notes state that Superposition became a required configuration dependency, and that a Superposition service must be running before you upgrade to that version. If your SDK pointing work is scheduled ahead of that upgrade, the router change and the new service have to land together, so the sequence belongs in the same change plan. Confirm with your platform team whether Superposition is already deployed in each environment, and check the matrix for the Control Center version that matches your target router before you touch the publishable keys or the SDK asset host.
Check the matrix before every upgrade. Treat the compatibility matrix as a gate in your release process, and run the SDK pointing configuration in a non-production environment against the target router version first. Confirm that the checkout loads, that payment creation and confirmation complete against your own endpoint, and that the Control Center still shows the same merchant and keys. Ask your vendor or partner to confirm any version pairing that the public matrix does not cover for your deployment pattern, because a mismatch often appears as a checkout that loads but fails at confirmation.
What to confirm with Hyperswitch before you commit to a self-hosted SDK path
A self-hosted SDK path only works if every SDK feature you plan to use runs against your own server. The cards below cover the limits to check with Hyperswitch and in its current docs before you commit, and each one should be confirmed against the release notes for the version you plan to run.
Full SDK feature support on a self-hosted server
Not every SDK feature is guaranteed to behave the same against a self-hosted router as against the hosted sandbox. Build a list of the SDK features your checkout depends on, such as payment methods, wallets, 3DS handling and saved cards, and ask Hyperswitch to confirm each one works fully against a self-hosted backend. Record the SDK and server versions you tested together.
Self-hosting docsDependencies on Juspay-hosted services
Confirm whether any SDK function calls a Juspay-hosted endpoint, asset or service rather than your server. Check network traffic from a staging checkout with outbound calls blocked or logged, because a hidden dependency can break payments during an outage or fail a data residency review. Ask for the full list of external domains each SDK version contacts.
Control Center single sign-on limits
The Control Center supports OpenID Connect only, with no SAML, JIT or SCIM provisioning. Users must be invited before they can sign in, and roles are managed in Hyperswitch rather than mapped from your identity provider. Plan the onboarding and offboarding steps for dashboard users, and confirm these limits against the current SSO guide before you design your identity model.
SSO setup guideMobile over-the-air and payment link reach
Confirm whether over-the-air mobile updates and payment links are served from your own server or depend on hosted infrastructure. Ask which request paths they call, which domain they use, and whether the custom domain setup changes those paths. Test both features on a self-hosted stack before you promise them to a product team.
Licensing of SDK and dashboard code
The Hyperswitch repository and the Control Center are open source under Apache 2.0. Confirm which components are covered by that license in the version you plan to deploy, and check whether any SDK asset, widget or hosted script carries different terms. Have your legal team review the license files and any third-party notices shipped with the build.
Control Center repositoryQuestions buyers ask about pointing Hyperswitch SDK self-hosted backend setups
What drives the cost of pointing Hyperswitch SDKs at a self-hosted backend?
The main drivers are how many client platforms you support, how many environments you run, and how strictly you pin SDK and server versions. Each platform (web, Android, iOS, React Native or Flutter) has its own configuration path, build and test cycle, so every added platform adds work. Each environment, such as development, staging and production, needs its own publishable keys and endpoint settings. Release pinning matters because the Control Center and web client versions are published in a compatibility matrix with each release, so the SDK version must match the server you run. Dependencies also add cost: Hyperswitch v1.124.0 made Superposition a required configuration dependency, so a Superposition service must be running before you upgrade to that version or later. Ask any partner to price each platform, environment and the Superposition setup as separate line items.
How long does it take to point Hyperswitch SDKs at a self-hosted server?
The duration depends on the number of platforms, whether the backend is already running in production, and how much asset hosting and release pinning you need. A single web integration on an existing self-hosted stack is usually much shorter than a multi-platform rollout that also covers mobile release pipelines and separate staging and production keys. Teams that have not yet deployed the Hyperswitch server, or that need to add Superposition first, should plan for that work before the SDK configuration starts. No fixed duration is supplied for this work, so ask any partner for a timeline built from your platform list, environment count and current deployment state, and check which items depend on app store review cycles.
What does your team need to provide for an SDK backend setup?
Plan to provide several inputs before work starts:
- Server access to the Hyperswitch deployment, with the Kubernetes or Docker context and permissions your change process requires.
- DNS records and TLS certificates for the public endpoints the SDKs will call, with a named owner for renewals.
- Key custody arrangements for publishable keys and any server-side secrets, including who can create and rotate them per environment.
- A decision on where SDK assets are hosted, such as your own CDN, and who controls the build artifacts.
- Test merchant accounts and sandbox credentials for each environment, so end-to-end checks can run before go-live.
Agree on these owners in writing. Gaps in DNS, TLS or key custody are among the most common causes of delay.
Can an internal engineering team point Hyperswitch SDKs at its own backend alone?
Often yes, if the team already runs production Kubernetes or container platforms, has someone comfortable with TLS and DNS, and can read the Hyperswitch release notes for compatibility changes. The work is mostly configuration, asset hosting and testing rather than new product code, so a small team with the right access can usually complete a single platform. Risk rises when several platforms must ship together, when mobile release trains are involved, or when no one on the team owns key rotation and version pinning over time. Many teams split the work: internal staff own the running server and day-to-day upgrades, while an outside partner handles the first configuration and a documented handover. Decide based on who will own the setup after launch.
What should a fixed-scope quote for this work list?
A fixed-scope quote should name every item in writing before work begins. List the platforms in scope (for example, web and Android only), the environments (development, staging and production), the asset hosting approach, and how publishable keys will be issued and rotated. State the Hyperswitch server version and the matching Control Center and client versions you will pin, and whether Superposition is already running or must be set up. Include the verification steps, such as test payments in each environment, and what counts as completion. Add the handover deliverables, the client inputs listed in the scope, and the change process for later releases. DeployOpen does not publish a price list, and a quote follows from the written scope.
What goes wrong most often when SDKs point at a self-hosted Hyperswitch server?
The most common failures come from version mismatches between the server and the SDK or web client, which the compatibility matrix on each release is meant to prevent. Missing or misconfigured TLS certificates and DNS records stop the SDK from reaching the endpoint, and the error can look like a generic network failure. Publishable keys copied between environments cause payments to hit the wrong backend or fail authentication. Upgrading the server without running the Superposition service, which became required in v1.124.0, can break startup. Asset hosting that lags behind a server upgrade is another frequent cause of checkout errors. Ask any partner how they will test each of these before go-live.
Does pointing the SDKs at our own server change our PCI DSS scope?
Changing the SDK endpoint alone does not settle your PCI DSS scope, because scope depends on how card data is collected, transmitted and stored. Whether card data passes through your systems depends on the checkout design and the vault model you choose, and the Hyperswitch docs say that in the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling. Confirm your scope with a qualified assessor and your acquirer before launch. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure. For SDK configuration, that means agreeing in writing which web and mobile SDKs point at your Hyperswitch server, which environments and publishable keys are in play, and where the SDK assets are hosted before any build work begins.
How we scope
- Written scope lists each SDK in use, its platform and the Hyperswitch server version it must match.
- Scope maps environments such as sandbox, staging and production, with the publishable keys and custom URLs for each.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- Configuration is set up in your own infrastructure, with custom API and SDK asset URLs wired to your Hyperswitch backend.
- Each SDK is tested against your server in every environment, including checks that the correct publishable key is used.
- Where SDK assets are self-hosted, hosting, caching and version pinning are configured and verified in your environment.
How we hand over
- Handover documents each environment's URLs, key ownership and the SDK and server version pairing used.
- Runbooks cover how to rotate publishable keys, change endpoints and roll back a misconfigured SDK build.
- Your engineers receive the configuration in your repositories so changes stay under your own change control.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, including re-testing after Hyperswitch releases.
- Retainer work can cover checking SDK and server compatibility before each planned upgrade of either component.
- Confirm with DeployOpen during scoping which support hours, response paths and upgrade coverage the retainer includes.

