Hyperswitch payment links with a custom domain

Hyperswitch payment links let you accept payments without building a checkout. This page covers theming, serving them from your own domain and embedding them in trusted iframes.

On this page

When Hyperswitch payment links with a custom domain fit your payment flow

Hyperswitch payment links let a team create a hosted payment page for a payment and send the customer there, so money can move before a full checkout is built. A custom domain makes sense when the customer should see your own hostname in the browser, for example when the link appears in invoices, emails or support messages and an unfamiliar third-party address would cause hesitation or support tickets. Before you commit, check the current options in the Hyperswitch docs for link expiry, theming controls and what your release exposes, since these can change between versions.

Payment links do not replace a checkout or a headless build. You accept the page layout, the order of payment methods and the post-payment flow the platform provides, and you cannot add your own logic between steps. If you need your own card fields, custom validation or a checkout that sits inside your product, plan for the web checkout or the headless SDK instead. Embedding a secure link in a trusted iframe is a separate decision: confirm the framing rules, the allowed parent domains and your site's content security policy with your security team before you place a link in someone else's page.

Payment links are not standalone. They are generated and served through the self-hosted Router, so their availability depends on the Router, PostgreSQL, Redis and the Scheduler that your team operates. You also own the DNS record, the TLS certificate for the custom domain, its renewal and the hosting path that routes the domain to your stack. Decide in advance who owns those pieces, which environment (sandbox or production) each link uses, and how a failed or expired link is detected and reissued. Ask your implementation partner or your own platform team to confirm these responsibilities against your deployment before launch.

Which teams and payment scenarios suit payment links

Payment links suit collection tasks with a clear amount, a known customer and a simple payment step. The cards below show where that fit holds and where a custom checkout is the stronger choice, so you can check the scope against your own flows before you build.

Invoices and payment requests

A link fits an invoice or payment request that already has an amount, currency and customer reference. Confirm that each link maps to a single payment, what happens after a link expires, and how the payment outcome reaches your accounting system through webhooks. Check that a resent link cannot create a second charge on your side.

One-off sales and donations

Sellers with a short offer list can share one link per sale without building a storefront. The trade-off is limited control over cart, shipping and tax logic, so confirm which order fields the link collects and how item details reach your order system. Test refunds and receipts for every currency you accept before the first live sale.

Low-volume collection from known customers

Deposits, membership renewals and balance reminders involve a small group of customers who already know your business. A link lets finance collect without a sign-in flow for each payer. Confirm who can create and revoke links, who receives confirmations, and how staff reconcile the payments each month.

Embedded links in your own pages

Support portals, partner sites and account pages can host a link inside an iframe. Frame links only on pages you control, and confirm which parent origins the payment page accepts before launch. Test the flow in each browser your customers use, since some browsers restrict third-party frames and cookies that embedded flows may depend on.

Serving links from your own domain

Serving the link from a domain customers recognize helps them trust the payment step. Plan the DNS record, TLS certificate and redirect behavior with your platform team, and confirm which components answer requests on that domain. Add the certificate expiry to your change calendar so a lapse does not silently stop collection.

Cases that need a custom checkout

Multi-step carts, dynamic shipping and tax, saved cards for recurring billing and custom card fields usually need a custom checkout. Confirm with the Hyperswitch docs whether a link can carry the data and stored-credential flows you need. If a link is becoming a workaround for a flow it does not support, plan the checkout build before launch.

Hyperswitch docs

Configuration options for payment links and when each fits

This table lists the main payment link choices, when each fits and what to confirm in the Hyperswitch docs for the version you plan to run. Read each row as a decision: pick the option that matches your flow, then check the stated detail against the release notes before you build.

OptionWhen it fitsWhat to confirm for your version
Theming and brandingYou want the hosted payment page to match your brand without building a checkoutWhich theme fields the link page exposes (logo, colors, business name) and whether they apply to every payment method
Custom domain and hostnameCustomers should see your domain on the payment page, which helps trust and email deliverabilityWhether the link host can be served from your domain, what DNS and TLS steps apply, and who hosts the page assets
Single-use linksOne invoice or one-off charge that should not be paid twiceHow expiry and the paid state are reported back to your system and whether a second attempt is blocked
Reusable linksA product or donation page that many customers pay throughHow each payment is recorded separately, and how you reconcile and refund individual payments from one link
Expiry windowQuotes or time-limited offers that should lapse automaticallyThe default and maximum expiry values, and what the customer sees after expiry
Return URL handlingYou need to send customers back to your site with a result and order referenceWhich result parameters are passed back, whether they are signed, and that your server confirms status from webhooks rather than the redirect alone
Iframe embeddingThe payment step should sit inside your own page without a full redirectWhich parent origins are allowed, how the frame handles 3DS and wallet pop-ups, and the browser policies that block framing
Language and payment methodsCustomers in several countries or with specific local methodsWhich locales and payment methods are enabled per connector, and how availability changes by currency and country

Serving links from your domain and embedding them in iframes

Serving payment links from your own domain means the hostname customers see belongs to your organization and resolves to the self-hosted Hyperswitch stack in your infrastructure. The infrastructure team owns the DNS zone, the record that points the hostname at your public entry point, and the decision about which hostname the application server uses when it builds link URLs. The self-hosting documentation describes the deployment that sits behind that hostname, and it is the right reference for confirming which base URL settings your release expects.

  • DNS record: Create a dedicated hostname for payment links, separate from the Control Center and API hostnames, so access policies and certificates can differ.
  • Hostname consistency: Use the same public hostname in link generation, return URLs and any webhook endpoints, so customers are not redirected to a host you did not intend.
  • Ingress routing: Route only the payment link paths to the customer-facing service and keep administrative paths on a separate route.
  • Change control: Treat the DNS record and ingress rule as production configuration with a named owner and a documented rollback.

Confirm with your Hyperswitch release which settings control the public base URL for links, because a mismatch here is one of the most common causes of broken redirects.

How a payment link request moves through your domain, the Hyperswitch router and the processor

The flow starts when a customer opens a payment link page on your domain, which embeds the secure link in an iframe. The reverse proxy terminates TLS and forwards the request to the self-hosted Hyperswitch router. The router passes card details to the card vault, so they stay inside the card data boundary, then sends the authorization to the processor. The processor's result returns to the router, which sends a webhook to your backend to update the order. Check that the proxy passes the correct host and headers, that card data lands only in the vault, and that only your iframe host can embed the link.

Card data stays inside the vault boundary while the merchant backend receives webhooks.

Setting up a custom domain for Hyperswitch payment links

This sequence takes a self-hosted Hyperswitch stack from a version check to a payment link served from your own domain, embedded only on trusted origins, and proven with a sandbox payment before production. Each step closes with a check so the team knows it can move on.

  1. Confirm the self-hosted version and SDK compatibility

    The platform team records the Hyperswitch router version and the Control Center and web client versions in use. Each Hyperswitch release on the GitHub releases page includes a compatibility matrix for Control Center and web client versions, so the team checks that set against the release it runs. If the target version is v1.124.0 or later, confirm that the Superposition service is running before any upgrade, because the release notes make it a required configuration dependency. Done when the team has a written version set that matches the matrix and the Superposition check is recorded.

  2. Create a test payment link in the sandbox

    An engineer creates a payment link in the Hyperswitch Control Center or through the payment link API, using the hosted sandbox or a non-production instance of your self-hosted stack. Use a test amount and currency that match a real product so later checks are meaningful. Open the generated link in a browser and confirm that it loads, shows the expected amount and currency, and lists the payment methods you enabled. Done when the link opens without errors and the displayed details match the request.

  3. Configure theming for the payment link

    The design owner applies brand settings to the payment link, such as logo, colors and display text, using the theming options available in your Hyperswitch version. Check the current documentation for which elements can be changed, because the supported options vary by version and must be confirmed before the design is final. Open the link on desktop and mobile widths and compare it with the approved design. Done when the approved design renders correctly on both widths and the team has noted any element that cannot be themed.

  4. Place the domain behind a reverse proxy with TLS

    The infrastructure team publishes a hostname for payment links, such as a subdomain under your company domain, and places it behind a reverse proxy or load balancer that terminates TLS. The proxy forwards requests to the Hyperswitch payment link service and passes the original host name so pages and redirects use your domain. Redirect plain HTTP to HTTPS and confirm the certificate chain is complete. Done when a request to the new hostname returns the payment link page over a valid TLS connection with no certificate warnings.

  5. Set allowed embedding origins

    The engineer sets which sites may embed the payment link in an iframe, limiting the list to the trusted domains that host your checkout pages. Confirm the exact setting name and format in the Hyperswitch documentation for your version, because embedding controls differ between releases. Load a test page on an allowed origin and confirm the link renders, then load the same link from a page on an unlisted origin and confirm the browser blocks it. Done when the allowed origin renders and the unlisted origin is refused.

  6. Test the end-to-end payment in the sandbox

    The QA engineer completes a payment through the custom domain using the sandbox test card data that your connected processor provides. Confirm that the payment status shows correctly in the Control Center, that the webhook reaches your endpoint, and that the return URL sends the customer back to the correct page. Repeat the test for at least one failed payment and one cancelled payment. Done when the payment record, webhook delivery and redirects all match the expected outcome for each case.

  7. Repeat the checks in production and go live

    The team applies the same configuration to the production stack, using production processor credentials, the production hostname and the approved theme and embedding list. Compare the production settings with the sandbox configuration to find any drift. Run a low-value live test only if your processor and internal policy allow it, and store the results as go-live evidence. Done when the production link loads on the custom domain, the allowed origins match the approved list, and the evidence is filed with the change record.

Security and operational risks of hosted payment links

Hosted payment links move part of the payment flow onto pages that a shopper sees under your domain. The risks sit in the seams: the frame that displays the link, the identifiers that address it, the redirect after payment, the DNS and certificates you own, the webhooks that confirm results, and the vault model that decides where card data lands. Each card names one risk, the control for it, and what to confirm for your chosen vault model.

Clickjacking and iframe abuse

A payment link embedded in an iframe on your site can be framed by a hostile page, which can hide the real controls behind a decoy layout or trick a shopper into clicking something other than the pay button. Control this with a restrictive frame policy on your pages that allows only the embedding origins you own, and test the framed page from an unrelated origin to confirm it refuses to render. Confirm with Hyperswitch which headers and embed attributes its hosted page sends for your release, since that determines what you can set on your side.

Link enumeration and expiry

If payment link identifiers are sequential or easy to guess, someone can probe for open links, find old amounts, or reach links you meant to keep private. Check how link IDs are generated, and whether each link can carry an expiry, a single-use setting or a locked amount. Set an expiry on every link you send to a customer, and review open links on a schedule so stale ones do not stay payable. Ask the vendor to confirm the ID format and expiry behavior for your version.

Return URL manipulation

After payment the shopper returns to a URL you configured, and anyone who can alter that destination can send shoppers to a phishing page styled as a receipt. Register only exact HTTPS return destinations on your own domain, keep order amounts and state out of query strings, and treat the browser redirect as a display signal. Never trust the redirect alone to confirm payment. Settle the order from a server-side status check or a verified webhook instead.

Certificate and DNS management

A custom domain means you own the DNS records and TLS certificates that serve every payment link. An expired certificate breaks every link at once, and a dangling DNS record can let someone else serve content under your brand. Assign an owner to each record, automate certificate renewal, monitor expiry dates, and remove records when a subdomain is retired. Confirm with Hyperswitch which hostname and certificate setup its hosted pages expect before you point production traffic at them.

Webhook verification

Webhooks tell your backend that a payment succeeded, failed or was refunded, so a forged request could mark an unpaid order as paid. Verify the signature on every event before acting on it, reject events you cannot authenticate, and make handlers idempotent so a replayed event does not fulfill an order twice. Check the Hyperswitch docs for your release to see how signing secrets are configured per endpoint, and send a deliberately forged request in staging to confirm it is rejected.

Scope effect of card capture

How card data is captured on the payment page sets your PCI DSS scope. The Hyperswitch docs state that in the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling, and they document external and SaaS vault models that change that split. Choose the vault model before launching links, because it decides whether card numbers can reach your systems at all. Ask your assessor to review the chosen model and the hosted page together.

In-house PCI model docs

Questions teams ask about Hyperswitch payment links and custom domains

How much effort does a Hyperswitch payment link setup take, and who does the work?

The effort depends on how many links you need, how far the look and feel must match your brand, and how much domain and proxy work sits between your site and the self-hosted backend. Your team usually owns the business decisions: which payment methods appear, which currencies and products are covered, and who receives notifications. The implementation side covers configuring the merchant account in Hyperswitch, creating and theming links, pointing the domain at the hosted page, and testing the result end to end. Ask any partner to split the work into these parts so you can see which tasks your own staff can take on.

Can our team set up Hyperswitch payment links without outside help?

A team with solid experience in Kubernetes, DNS, TLS certificates and payments can do much of this alone, provided it has a running self-hosted Hyperswitch stack and a clear list of links to build. The steps that most often need extra attention are the custom domain and reverse proxy configuration, the iframe embedding rules, and confirming that the payment flow behaves correctly on every device and browser your customers use. If none of these areas is familiar, an implementation partner can carry the build while your staff learn the operating model. Either way, confirm the required skills against the Hyperswitch self-hosting documentation before committing.

What drives the cost of a payment link project up or down?

Cost follows scope more than the number of links. The main drivers are:

  • Theming: a standard look costs little to set up, while brand-specific layouts, fonts and page logic add design and testing time.
  • Domain and proxy work: serving links from your own domain involves DNS, certificates, proxy rules and sometimes allowed-origin settings, which vary by network setup.
  • Embedding and testing: placing secure links in trusted iframes, then testing across browsers, devices and failure cases, usually takes more effort than the initial build.
  • Operations: monitoring, alerts and change control for the domain and proxy layer add recurring work.

Ask any quote to list each of these separately, with what is one-time and what recurs.

How long does a payment link project take to define?

Defining the work is faster than building it, and the definition is what makes a timeline reliable. Start with an inventory of the links, brand requirements, domains, embedding locations and the environments that need testing. Those inputs let a provider write a fixed scope with deliverables and an agreed schedule before work begins. Because timelines depend on your environment, approvals and any change windows, no general duration applies to every organization. Ask for a written plan that names the dependencies your team must clear, such as DNS changes and certificate issuance.

What does our team need to provide for a payment link project?

The work needs access and decisions more than new infrastructure. Typical inputs include:

  • A running self-hosted Hyperswitch environment with administrator access to the Control Center.
  • The domain names, DNS control and the certificate process you use.
  • Brand assets, approved copy and the list of payment methods and currencies to offer.
  • The sites or applications that will embed the links, with their owners and release process.
  • Test accounts for each connected processor, and a named contact for approvals.

Confirm with your security team how staff accounts and secrets will be handled before the build starts.

Do Hyperswitch payment links reduce our PCI DSS scope?

Payment links can keep card entry on a page hosted by the payments platform, which often narrows what your own systems touch. That does not remove PCI DSS obligations. Your scope depends on how the links are embedded, whether any of your pages collect or transmit card data, how your domain and proxy handle requests, and which vault model you run. Hyperswitch documents that in the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling. Have a qualified assessor review your architecture, and note that DeployOpen prepares evidence and controls for assessments but does not issue certifications.

What should we check before embedding payment links in an iframe?

Confirm that the page embedding the link is a trusted origin, that frame restrictions allow it, and that your site cannot read or alter the payment content. Review the anti-clickjacking headers and content security policy on both sides, and test in each browser your customers use. Check how the embedding page behaves when the frame fails to load, and make sure customers see a clear next step. Document the decision in your security review, because an embedded payment page changes which controls protect the checkout flow.

Trade-offs between payment links and a custom checkout

Payment links trade front-end effort for control. A team can start accepting payments without building a checkout, because the card entry, payment method display and confirmation happen on a page that Hyperswitch hosts and the merchant configures. The cost is that the layout, the flow and the order in which payment methods appear are set by what the hosted page supports. Before committing, the team should confirm in its own deployment which theming options the link page exposes, whether the page can be served from the custom domain it plans to use, and which fields it can pass through for reconciliation. These are the points where a link stops being a simple shortcut and starts shaping the product.

The customer experience is where the trade-off is felt most. A payment link is a handoff: the customer leaves the product, pays on a separate page and returns. That works well for invoices, one-off sales and pre-sale deposits, and poorly for flows where payment is one step inside a longer journey, such as a subscription upgrade or a checkout that depends on the customer's account state. The team should decide how the link is opened, where the customer returns after success, failure or abandonment, and who tells the customer's account what happened. Return and status handling should be tested end to end in the team's own environment rather than assumed from the documentation alone.

Moving later to the web SDK or a headless checkout keeps the same payment platform underneath, but changes what the team owns. Payments are still created on the server, routed and reconciled the same way, so the back end built around links is not wasted. What grows is the front end: the team takes on the embedded component or its own card fields, appearance work, and a larger share of PCI DSS scope when it builds its own card entry. The team should ask early whether payments and saved payment methods created through links carry over to a later SDK integration, and confirm the answer for its version of Hyperswitch in the Hyperswitch documentation before relying on links as the first step.

How DeployOpen scopes and delivers Hyperswitch payment links

DeployOpen plans, builds, tests and documents Hyperswitch payment links inside your own infrastructure, so the links, the domain and the backend stay under your control. Work starts from a written scope that names the links, the brand treatment, the domain setup and the evidence your security and compliance teams will ask for.

How we scope

  • We confirm which payment link types, currencies and processors the written scope covers before any build starts.
  • We agree the custom domain plan, certificate ownership and the self-hosted backend that will serve the links.
  • We record which iframe embedding targets and trusted pages are in scope, and which are excluded.

How we build

  • We deploy and configure the Hyperswitch stack you have chosen, then create and theme links to your written brand rules.
  • We serve links from your domain and test redirects, expiry, return URLs and the secure iframe embedding behavior.
  • We check that link pages do not expose card data paths beyond the vault model agreed in the scope.

How we hand over

  • You receive configuration records, domain and certificate settings, and a list of link templates with their owners.
  • We document the steps to create, expire and retire links, plus the test cases we ran and the results.
  • Runbooks cover the checks your team repeats after each Hyperswitch upgrade that touches the links.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, which you can ask us to quote.
  • Ask any partner, including us, to confirm in writing how link pages and certificates are renewed and monitored.

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.