Why teams self-host the Hyperswitch web SDK
Teams self-host the Hyperswitch web SDK when their backend already runs on infrastructure they control and the browser-side checkout code should be served from the same boundary. The web client, hyperswitch-web, is the JavaScript that renders the payment form and talks to the payments API in the browser. Self-hosting means you build it yourself and serve the assets from your own CDN or origin, so you decide which version reaches customers, when it changes, and which domain it loads from. The Hyperswitch self-hosting guides cover three paths for the client: a production-ready deployment, integration into a web app, and an optional playground deployment for prototyping. The production path is the one that matters for a regulated launch, and the playground is useful only for internal testing because it is not meant to carry live traffic.
The choice between self-hosting and the hosted client usually comes down to control and change management. Self-host when you need to pin the client version to the app server version, when your security team must review the exact JavaScript that runs on the payment page, or when your data residency or network policy keeps asset delivery inside your environment. Using the hosted client is simpler when you have no self-hosted backend, or when you want updates without operating a build pipeline. Before you decide, confirm with Juspay or your DeployOpen scope which client version your router release expects, because the release compatibility matrix ties Control Center and web client versions to each server release. Ask the same question about any optional playground build and whether it is supported beyond prototyping.
How the self-hosted web client connects to your router
The flow starts in the shopper's browser, which loads the web SDK from your own CDN rather than a Juspay-hosted address. The SDK then calls your self-hosted Hyperswitch router, which is the only component that talks to payment processors. Card data is kept out of the router's ordinary path and goes to the card vault boundary, so the vault is shown as its own trust zone. Check that the SDK build, the router version and the Control Center version come from the same compatibility matrix, because a mismatch between them is where integration failures usually start.
Trust zones and version-matched hand-offs for a self-hosted web SDK.
Deployment options for the web client and when each fits
This table compares the three ways a team can run the Hyperswitch web client: production hosting on its own CDN or object storage, integration into an existing web app, and the optional playground for prototyping. Read each row against your team's ownership of hosting, release control and go-live checks, since the production path carries the most ongoing work. The main takeaway is that the playground is for evaluation only, and production needs a hosting, versioning and verification plan agreed before the build starts.
| Option | When it fits | What your team must provide | What to confirm |
|---|---|---|---|
| Production deployment on your own CDN or object storage | Live checkout traffic where you control the asset origin, cache policy and release timing | Build pipeline for the web client, object storage or CDN origin, TLS certificates, cache invalidation on release, and an owner for hosting incidents | Build steps and output files in the current deploy web client guide, supported hosting targets, and how the client version is pinned to your app server release |
| Integration into an existing web app | Teams adding the unified checkout to a React or other front end that already calls a REST backend | Front-end engineers to load the client script, a server-side payment creation flow, error and result handling, and test coverage in your release process | Which integration guide matches your framework, how the client loads relative to your Content Security Policy, and how the client points at your self-hosted server |
| Optional playground deployment | Prototyping, internal demos and evaluating the flow before committing to production hosting | A small hosting target, a non-production publishable key and test credentials, and a rule that playground assets never serve live payments | Whether the playground build is supported for your version, its limits compared with production hosting, and when it should be removed |
| Version alignment with the app server | Any deployment, since the client must match the server release it talks to | A recorded pairing of client build and server release in your change log, and a test run after each upgrade of either side | The compatibility matrix published with each Hyperswitch release, and whether your Control Center version needs the same pairing |
Build, host and integrate the self-hosted web client
This sequence takes the web client from a version chosen to match your router and Control Center through to a tested payment running on assets you host. Each step closes with a check so the team can confirm the stack is consistent before the client reaches customers.
Pin the client to a matching release
The platform lead or the team that owns the payment stack picks one Hyperswitch release from the GitHub releases page and records the web client version listed in its compatibility matrix, alongside the router and Control Center versions you already run. Releases such as v1.126.0, v1.127.0 and v1.128.0 each publish that matrix, so the pairing comes from the vendor's own table. Check: one record lists three versions (router, Control Center and web client) taken from the same release row. If the matrix does not list your router version, stop and confirm the pairing with the vendor before building.
Build the client from pinned source
A build engineer checks out the repository at the tag that matches the chosen release and follows the build steps in the deployment guide for the web client. Use a locked dependency set so the output can be reproduced later. The build produces static assets that any CDN or object store you control can serve. Record the commit hash, the build date and a checksum for each output file in your release notes. Check: the build completes without errors, and the output folder contains the entry script and its supporting files with recorded checksums.
Publish assets with cache and integrity settings
The platform or DevOps team uploads the build output to the CDN origin under a versioned path, so each release sits in its own directory and a rollback means pointing at an earlier path. Files with content hashes in their names can carry long cache lifetimes, while the entry file that loads them should revalidate more often. Where your loader supports subresource integrity, store the hash of each file with the release record. Check: request each asset from outside your network and confirm the cache headers and checksums match the build output.
Point the SDK at your self-hosted server
The integration engineer sets the client configuration so that API calls resolve to your own router, using the base URL of your deployment and the publishable key for that environment. Keep these values in per-environment configuration so staging and production each use their own key and endpoint. The sibling guide on pointing Hyperswitch SDKs at a self-hosted backend covers the full set of settings. Check: in the browser's network panel, every payment request goes to your domain and none goes to the vendor's default endpoints.
Integrate the client into the web app
A frontend developer adds the script and stylesheet from your CDN path to the checkout page. The payment is created on your backend, which sets the amount and currency, and the browser receives only the client secret needed to mount the payment element. Keep the creation call server side so your system controls the values that matter for the charge. Check: the checkout page loads with no console errors, the payment element renders, and the loaded resource paths show the pinned release version.
Run a test payment in sandbox
The QA lead runs payments through a sandbox environment using test card numbers from the processor configured in your stack. Cover at least a successful payment, a declined card and a payment that triggers authentication, which is illustrative of the scenarios to script. Confirm each payment appears in the Control Center with the expected status and that the webhook reaches your endpoint. The hosted sandbox can help isolate client issues first, but the final run should hit your self-hosted router. Check: every scenario produces the status you expect in both the checkout and the dashboard.
Set the rule for future upgrades
The platform owner writes a rule that each router upgrade moves the web client to the version in the same compatibility row, and that the change passes through staging before production. This matters because a release can add a dependency. The v1.124.0 release notes state that Superposition became a required configuration dependency, and deployments must have a Superposition service running before upgrading to that version. Check: the upgrade record names the router, Control Center and web client versions together, and a staging test payment passes before the production change.
How version matching between the client and app server works
The web client you host and the Hyperswitch app server you run must come from a compatible release. Each GitHub release for Hyperswitch publishes a compatibility matrix that lists the Control Center and web client versions it supports, so that matrix is the first thing to check before you pin the hyperswitch-web build in your CDN. Treat the matrix as the contract for a given server version: if you move the router to a new release, confirm the matching client version in the same release notes before you publish new client assets. Do not assume that a client built from the latest branch will work with an older router, and do not assume that a router upgrade leaves a previously built client untouched. Keep a record in your deployment repository that pairs each router version with the client build it was tested against.
Hyperswitch ships roughly monthly minor releases. The releases v1.126.0 (August 24, 2026), v1.127.0 (September 28, 2026) and v1.128.0 (October 16, 2026) show that cadence, and each one carries its own compatibility matrix. That rhythm means the client and server pairing will change often, so plan a recurring step to read the release notes, rebuild the client against the matched version, and run your checkout tests in a staging environment before promoting either component. Confirm with Juspay's release notes how long each minor version is supported, because that window sets how often you must move.
Some upgrades change a required dependency rather than only the API surface. The v1.124.0 release notes made Superposition a required configuration dependency, so deployments had to run a Superposition service before upgrading to that version. When a release note names a new required service, add it to your staging environment first, verify the router starts and serves the checkout, and only then move production. Record the dependency in your runbook, and check the compatibility matrix again if the new dependency changes which client version you can use. Confirm the exact requirements in the release notes for the version you are targeting, not in older documentation.
Security and operational risks of hosting the client yourself
Hosting the web SDK yourself moves responsibility for the script that touches every checkout onto your team. The cards below cover the controls that keep card data out of your page scope, the delivery path for the assets, and the upkeep that keeps the client matched to the server over time.
Keep card data out of page scope
Your self-hosted client runs inside your payment page, so its handling of card fields determines your PCI DSS scope. Before go-live, confirm which vault model you run: the in-house PCI model makes you fully responsible for PCI DSS certification and data handling, while the external vault and SaaS vault models change what your environment stores. Ask your QSA to review the chosen model against the data flow for each page that loads the SDK.
Vault deployment modelsServe assets over controlled TLS
Self-hosted SDK files are code your customers execute during payment, so the origin, transport and delivery path need the same care as your application bundle. Serve the assets only over HTTPS with current TLS settings, restrict who can publish to the bucket or CDN origin, and verify file integrity with checksums or subresource integrity where your build supports it. Test that a tampered or missing file fails closed rather than loading a partial client.
Handle publishable keys per environment
Each environment needs its own publishable key and its own endpoint configuration, so a staging key or sandbox URL can never reach production pages. Store the keys as build or deployment configuration, not in the repository, and check at deploy time that the key prefix matches the target environment. Rotate keys through a documented process and confirm with your Hyperswitch administrator how revocation affects checkouts already in progress.
Patch and rebuild on each release
The web client is compiled from a specific version, and upstream releases ship roughly monthly minor versions with compatibility matrices for the Control Center and web client. Your team owns the rebuild, retest and redeploy cycle, including security fixes in dependencies pulled into the build. Pin the version, track the release notes, and schedule a rebuild window so the client never drifts far behind the server.
Hyperswitch releasesInvalidate caches after upgrades
A CDN or browser may keep serving an older SDK file after you deploy a new version, which can mismatch the app server and break payment calls only for some customers. Use versioned file paths or content hashes for SDK assets, set short cache lifetimes on the loader entry point, and purge the CDN as part of the release runbook. Verify from a clean browser session and from a region outside your own network after each upgrade.
Monitor client errors and load failures
Because you host the client, failures such as a blocked script, a missing asset or a version mismatch will not appear in Juspay's operations view and may only show up as abandoned checkouts. Capture script load errors and client-side exceptions with a error reporting tool, tag each event with the SDK version and environment, and alert on sudden changes in failed payment initialization. Confirm your logging avoids recording card fields or full tokens in those events.
Questions teams ask before self-hosting the web SDK
How much effort does self-hosting the Hyperswitch web SDK take?
The effort is mostly in the build pipeline, the CDN hosting and the version pairing with your app server, not in the SDK code itself. Your team takes on a build step that produces the SDK assets, a hosting path that serves them over HTTPS from a domain you control, and a release process that deploys new client builds alongside server upgrades. The main drivers are how many environments you run (sandbox, staging, production), whether you need a playground for prototyping, how often you plan to upgrade, and how much your checkout deviates from the default configuration. Ask any partner for a written breakdown of these components and which parts recur after go-live.
Can an in-house team self-host the web SDK without outside help?
A team with solid front-end build and CDN experience can usually do it in-house, provided it has someone who understands how the web client connects to the app server. The Hyperswitch docs cover a production-ready deployment of the web client, integration into a web app and an optional playground for prototyping, so the path is documented. The risk is less the build itself and more the ongoing discipline: matching client and server versions, testing each release in a sandbox, and keeping the CI pipeline working as the front-end toolchain changes. Teams that lack this capacity often bring in a partner for the initial setup and hand over a runbook.
How long does a self-hosted web SDK deployment take?
The duration depends on scope, and no fixed figure applies to every organization. A basic deployment that serves the client from a CDN and points one web app at it is a much smaller job than a deployment with multiple environments, a custom integration into an existing checkout, and a documented upgrade process. Ask for a timeline tied to a written scope that lists the environments, the number of web apps, the hosting platform and the test cases you expect to pass before go-live. Your own environment, including access approvals and existing CI tooling, will also move the schedule.
What does the work need from our infrastructure and team?
You need four things in place before the work starts: a CDN or static hosting service you control, a CI pipeline that can run the build and publish assets, a running Hyperswitch router environment that the client can reach, and a sandbox where you can test without touching live payments. Access to your DNS, TLS certificates and the app repository is also required. Confirm with your platform team which CDN and CI tools are approved, how assets are versioned and cached, and who signs off on production releases. Missing any of these items usually shifts effort from the build into waiting for access.
How are upgrades handled when Hyperswitch releases a new web client?
Each Hyperswitch release ships with a compatibility matrix that lists which Control Center and web client versions work with a given server release, so the web client version must be chosen with the app server version in mind. Upgrades should follow a fixed sequence: read the release notes, check the matrix, upgrade the server in a sandbox, rebuild the client at the matching version, run your checkout test cases, and then promote both to production. Releases come out roughly monthly, so plan a recurring upgrade cadence rather than treating this as a one-time task. Some releases add required dependencies, so confirm those in the release notes before upgrading.
Does self-hosting the web SDK change our PCI DSS scope?
Hosting the SDK assets yourself does not by itself decide your PCI DSS scope, because scope depends on where card data is collected, transmitted and stored. The vault model you choose matters more: with the native in-house vault, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling. With an external PCI vault provider or the SaaS vault, the card data path changes, and so does the scope. Your self-hosted web client must also be served over TLS, kept under change control and included in your asset inventory. Scope conclusions should come from your QSA or internal assessor, not from the SDK build.
Does DeployOpen handle the PCI DSS certification for a self-hosted SDK?
No. DeployOpen plans, implements, hardens and documents self-hosted platforms in your infrastructure, and it prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications, and independent auditors and certification bodies do that work. For a self-hosted web SDK, the implementation can include hosting configuration, release pipelines, version pinning and runbooks that your assessor can review. Ask any partner to state in writing what evidence it will produce and what remains with your team and your assessor.
How DeployOpen scopes and delivers this work
Self-hosting the web SDK touches your router, your Control Center and your front-end release process, so the work is only as good as the version pairing and the scope agreed before it starts. The cards below follow the order we use: agree the scope in writing, confirm versions, build and host the client in your infrastructure, verify the integration, and keep it current afterward.
Agree the scope in writing
Before any build, the scope is written down: which web app or apps load the SDK, which environments need a self-hosted client, which checkout modes are in use, and who signs off on each deliverable. Most engagements are fixed-scope, so the written scope is also the basis for the quote. Ask for the list of in-scope pages, the deployment targets and the acceptance tests, and confirm what is excluded, such as custom checkout UI work or payment method changes.
Confirm router and Control Center versions
The self-hosted client has to match the version of the app server and Control Center it talks to. Hyperswitch publishes a compatibility matrix with each release, so the target router, Control Center and web client versions are confirmed against that matrix before the build starts. Check the release notes for required dependencies as well, since a version change can require a service that is not yet running in your environment.
Hyperswitch releasesBuild and host the client
The web client is built from source and served as static assets from infrastructure you control, usually behind your CDN and with your own cache and versioning rules. DeployOpen sets up the build pipeline, the asset hosting path, and the way each release is pinned so that a rollback is a known operation. Confirm who owns the CDN account, how assets are invalidated, and where build artifacts are stored.
Run integration and verification tests
Integration testing checks that the self-hosted client loads from your domain, reaches your backend endpoints, completes a test payment in the sandbox, and handles declines, errors and redirects in each payment method you enable. Verification also covers content security policy, caching headers and the failure path when the asset host is unavailable. The test results and any open defects are delivered in writing, so your team can repeat the checks during each upgrade.
Plan upgrades and continuous testing
Hyperswitch ships minor releases on a regular cadence, so the client version has to move with the router and Control Center. DeployOpen offers retainers that cover version upgrades, regression runs against the new release and ongoing testing of the checkout flow. Ask for the upgrade procedure, the retest scope per release and the response terms in the retainer, since these set the recurring cost.
How DeployOpen works on self-hosted Hyperswitch checkout
DeployOpen is a Chainscore Labs company that plans, deploys, hardens and supports self-hosted open-source platforms inside the client's own infrastructure. For a self-hosted Hyperswitch web SDK, that means the work runs in your cloud accounts, data centers or air-gapped network, and the built client assets, the hosting path and the version pairing with your app server stay under your control. DeployOpen does not operate Juspay's hosted services, and it does not issue audit reports or certifications. Where your compliance team needs evidence about the web client's hosting, headers and change history, DeployOpen prepares the systems and records for that review, and an independent assessor reaches the conclusions.
Most engagements are fixed-scope, and the scope is agreed in writing before any work starts. For this topic, the written scope would normally name the Hyperswitch release and the matching web client version, the build pipeline and CDN or static hosting target, the environments covered (for example, sandbox and production), the integration into your web app, and the verification steps you accept as done. Ongoing upgrades and continuous testing can be covered by a retainer, which is also agreed in writing. Ask any partner to state which of these items are included, which are your responsibility, and how a change to the scope is priced and approved.
A quote follows from the written scope, and DeployOpen does not publish a price list. Ask for the quote to break out the components: discovery of your current environment, build and hosting setup, application integration, testing, documentation and handover, and any recurring support. Confirm with your own engineers which items you will keep in-house, and confirm the Hyperswitch release and compatibility matrix you intend to run before the quote is finalized, because the version you pick drives how much upgrade and testing work follows. Your team should also confirm who holds the deployment credentials and who signs off each go-live step.

