Adding alternative payment methods with Hyperswitch Hyperwidgets

Embedding single alternative payment method widgets lets you keep an existing checkout and add methods one at a time. This page explains when that fits, what to confirm in the current Hyperswitch docs, and how the work is scoped.

On this page

Adding alternative payment methods to an existing checkout without replacing it

If your checkout already works, you may only need to add specific alternative payment methods such as wallets or bank redirects. Hyperwidgets is the Hyperswitch approach for embedding individual payment method widgets into an existing checkout instead of replacing the whole payment page with Hyperswitch's unified checkout. The unified checkout takes over the payment form, method selection and result handling. Embedding widgets keeps your current page structure, form flow and styling, and places only the method you choose where you want it. Teams usually pick this route when a checkout is tuned for conversion, has custom fields or regional logic that a full replacement would disrupt, or when they want to test one or two methods before deciding on a bigger change. The Hyperswitch platform connects to more than 100 payment processors, including Stripe, Adyen, PayPal, Worldpay and Checkout.com, plus wallets such as Apple Pay and Google Pay, so the methods you can offer depend on which connectors and payment method settings are configured in your backend, not only on the widget you embed.

The research supplied for this page does not describe the Hyperwidgets component list, props, styling options or method-by-method support, so do not assume any of them. Before you scope the work, confirm in the current Hyperswitch docs which widgets exist, how each is mounted and themed, which callbacks report results, and which methods each widget supports on web and mobile. Then confirm, with your processor or a Hyperswitch test environment, that each target method is enabled for your merchant account, your currencies and your countries. Ask whether a widget requires the same self-hosted SDK version and app server version as your other Hyperswitch components, because a mismatch can block a method that works in the hosted sandbox. Also confirm how the widget hands off to redirect-based methods and how a customer returns to your existing confirmation page.

Decide early whether the widget is a stepping stone or the end state. A widget embedded in a checkout you already own still needs a server-side payment flow, status handling and webhook processing, and your team owns the page-level changes around it. Plan a test matrix that covers each method, each supported currency, success, failure and abandoned redirect, and the return path after a browser is closed mid-payment. Record which of these are verified in your own environment, because method coverage is the first thing a reviewer or auditor will ask you to show.

Which checkout situations suit embedding single alternative payment method widgets

Embedding a single widget suits a checkout that already works, converts acceptably and only lacks one or two alternative payment methods. Your existing payment flow, order handling and card acceptance stay in place, and the new method arrives as a contained addition. The trade-off is that every widget you add becomes another client-side integration point with its own events, styling needs and release dependency on the Hyperswitch SDK version you run.

  • Scope of change: Confirm that the methods you need are available as individual widgets for your region and currency, not only inside the full unified checkout.
  • Integration count: Decide how many widgets you will accept before the checkout behaves like two payment systems. Each one needs its own test cases and failure handling.
  • Ownership: Name who owns the widget code, the server-side payment creation call and the webhook handling for that method.
  • Upgrade path: Confirm which SDK and app server versions the widget supports so that routine Hyperswitch releases do not break the embed.
  • Fallback: Decide what the customer sees if the widget fails to load or the method is ineligible for their basket.

Before starting, list the methods you want, the markets they serve and the test evidence you need for each one.

Integration options compared for adding a single payment method

This table compares the three build choices that shape a single alternative payment method: an embedded widget, the unified checkout and the headless SDK. Read each row against your own checkout, then confirm widget behavior against the current Hyperswitch SDK docs for your platform before you commit. The main takeaway is that the widget route keeps your checkout intact but leaves more of the return handling and styling to your team.

DecisionEmbedded widgetUnified checkoutHeadless SDK
When it fitsYour checkout already works and you want one extra method placed in an existing pageYou are willing to let Hyperswitch render the payment step and want most methods handled togetherYou are building or rebuilding the payment UI and own every field and screen
Where the method sitsInside your existing page, at a position you controlInside the Hyperswitch-rendered payment step, ordered by the platformAnywhere you place it, because your code renders every element
Wallet, redirect or bank methodConfirm per method which widget types exist and whether each one needs a redirectHandled by the checkout flow, with method ordering set in configurationYour team implements each flow, including redirects and bank confirmation steps
Return and status handlingYour team wires the return URL, reads the payment status and reconciles pending statesLargely handled by the checkout, with your server still confirming final statusYour team handles every state transition, errors and retries
StylingLimited to what the widget exposes, so confirm the supported styling settings firstSet through the checkout appearance options that the SDK documentsFull control, and full responsibility for accessibility and brand consistency
Card data scopeConfirm with your security team whether the widget keeps card entry out of your pagesConfirm which payment fields are hosted by the SDK in your setupYour pages may touch card fields, which changes your PCI DSS scope
What stays with your teamPlacement, return logic, status checks, styling within limits and test coverage of each methodConfiguration, return confirmation and any custom appearanceAlmost all UI, state handling, error recovery and compliance evidence

How a single method widget moves a payment through Hyperswitch

The diagram starts on your existing checkout page, where the customer picks one alternative payment method and the widget loads. Your backend creates the payment with Hyperswitch, which routes it to the selected processor or wallet provider. The customer completes approval in a redirect or wallet sheet, and the result returns through a webhook or status call that your backend must check before fulfilling the order. The trust boundary separates your page from your server, so confirm the final status on the server, not from the browser return.

Single method widget payment flow between checkout page, your backend, Hyperswitch and the provider.

Setting up an alternative payment method widget in Hyperswitch

This sequence takes one alternative payment method from configuration in the Control Center to a tested widget inside an existing checkout, with each step ending in a check you can verify before moving on.

  1. Confirm the method is enabled for your connector

    The payments or platform owner checks in the Hyperswitch Control Center that the target alternative payment method is switched on for the processor or connector you route through, and that the connector's credentials are valid for the markets you sell in. Confirm the supported currencies and countries for that method with the processor, since availability varies by connector. Done when a test configuration shows the method as active on the intended profile, and nothing in the Control Center flags it as disabled or missing credentials.

  2. Confirm the method exists in your self-hosted version

    Your platform team compares the payment method and connector support in your deployed Hyperswitch release against the current documentation and the release notes for that version. Because Hyperswitch ships regular minor releases, a method added recently may not exist in an older stack, and the Control Center and web client versions must match the release you run. Record the version you tested against. Done when the platform team can point to the documented support for that method in your exact version, or has scheduled an upgrade first.

  3. Create the payment from your backend

    Your backend creates the payment against your self-hosted Hyperswitch API, passing the amount, currency, order reference and the payment method type you want to offer. The server, not the browser, holds the API credentials. Store the returned payment identifier against the order so later webhooks and status checks can be matched. Done when a test order produces a payment record in the Control Center with the expected amount, currency and status, and the order in your database links to that payment identifier.

  4. Mount the widget in the existing checkout

    Frontend engineers add the Hyperswitch widget for that single payment method into your current checkout page, keeping your existing cart, address and card screens in place. Use the widget calls from the current SDK documentation for your platform, since the exact function names and options change between versions. Point the SDK at your self-hosted backend and host the SDK assets as your deployment design requires. Done when the method renders in the correct position on the page in a staging browser, and the widget loads without console errors.

  5. Handle the redirect and result page

    Many alternative methods send the customer to an external page to authorize, then back to your site. Build the return URL handler so it reads the payment status from Hyperswitch rather than trusting query parameters, and show a pending state when the result is not yet final. Test a successful, a failed and an abandoned attempt. Done when each test attempt ends on the correct page, and your order shows the same final status the Control Center shows for that payment.

  6. Process and match webhooks

    Configure the webhook endpoint in your self-hosted stack and your backend's handler so that asynchronous status changes update the order. The handler should verify the signature, process each event once even if it is delivered more than once, and match the event to the order using the stored payment identifier. Done when a test payment that completes after the customer leaves the page is received, verified and matched to the correct order, and a repeated delivery of the same event does not change the order twice.

  7. Test in sandbox and staging before production

    Run the full path in the hosted sandbox or your own staging environment, using the processor's test credentials and test accounts for the method. Cover success, decline, cancellation, timeout, refund and a delayed webhook. Confirm that logs and the Control Center show consistent states across all of them. Done when every test case reaches a final status that matches your order records, and the test results are signed off by both the payments and security owners before the method is enabled in production.

Security and operational considerations for embedded payment widgets

An embedded alternative payment method widget still touches your checkout, your backend and your processor accounts. The cards below cover the controls that decide how much of the payment flow your systems can see, and who on your team has to own each one.

Keep card fields out of the page

Redirect-based alternative payment methods such as bank transfers or wallets usually need no card number at all, so the widget should not render card inputs for them. Check that the checkout only mounts card fields when the selected method requires them, and that no card data passes through your own scripts or analytics tags. This decision sets how much of your PCI DSS scope the widget creates, and it depends on the payment method and the vault model you chose. Confirm with your assessor before you change the layout.

Vault models docs

Validate return and redirect URLs

Alternative payment methods send customers away to a provider and back again, so your return URL is an entry point that anyone can type into a browser. Do not treat a return to the success page as proof of payment. Read the final status from your backend after the redirect, and reject unexpected or altered parameters. Use HTTPS only, and make sure each return URL matches the environment it belongs to.

Verify webhooks and make handlers idempotent

Asynchronous payment methods often confirm payment only through a webhook, which may arrive late, more than once or out of order. Verify each webhook signature with the secret for that connector before you act on it, and store the event identifier so a repeated delivery does not credit an order twice. Ask the team that owns your Hyperswitch deployment how webhook secrets are rotated and where failed deliveries are retried.

Scope publishable keys per environment

Publishable keys identify your merchant account to the client SDK, so a key from a test environment must never reach production pages. Keep separate keys for sandbox, staging and production, and load each one from environment configuration rather than from source code. Pair this with the self-hosted SDK URL, so a page built for one environment cannot quietly call another backend. Review the key list when someone leaves the team.

Keep payment data out of logs

Widget callbacks, redirect parameters and webhook payloads can contain customer names, email addresses, account identifiers and token references. Set your frontend and backend logging to record payment intent identifiers and statuses only, and redact the rest before logs leave the application. Check your log platform's retention settings, because a copy of a payload in a long-lived log store can widen your data handling obligations under GDPR and PCI DSS.

Name an owner for processor credentials

Each alternative payment method connector holds credentials issued by the provider, such as API keys, merchant IDs and webhook secrets. Decide who can create, view, rotate and revoke them, and keep them in a secrets manager that your security team controls, not in the widget configuration. Confirm the owner in writing before go-live, and rehearse a rotation so a compromised key does not stop payments for a whole method.

Which payment methods suit embedding and which need a fuller checkout

Embedding works best for payment methods that take one clear customer action and return the customer to your page with a result. Redirect-based methods and wallets fit this pattern well, because the customer approves the payment once in the widget or in a provider screen and then comes back. Methods that need several form steps, pre-authorization data such as a full billing address or tax ID, or post-purchase flows such as customer-initiated refunds inside the payment screen usually need a fuller checkout where you control the sequence of screens. The research supports naming Apple Pay and Google Pay as wallets that Hyperswitch connects to, but it does not give a complete list of which alternative methods each connector supports, so treat any shortlist as provisional until you have checked it.

For each candidate method, check five things before you add a widget. First, confirm connector support in the Hyperswitch version you run, because connector coverage changes between releases and the release notes and compatibility matrices on the Hyperswitch releases page are the place to verify it. Second, confirm currency and country coverage for the connector you actually use, since a method may be offered in a market but not for every currency you settle in. Third, list the customer data the method requires, such as email, phone, date of birth or address, and decide whether your existing checkout already collects it. Fourth, test refund and dispute behavior end to end in the sandbox, including partial refunds and what the customer sees when a refund is delayed. Fifth, run a sample settlement through your finance process and confirm that the payment reconciles against the processor's settlement file.

Treat the shortlist as a set of tests, not a conclusion. For every method that passes the checks, record the connector, the Hyperswitch version tested, the customer actions required and the open questions for your processor. A method that looks simple at the widget but fails at refunds or reconciliation should move to a fuller checkout, because embedding it will only move the complexity into your finance and support teams. Ask your payment provider and connector documentation to confirm each of these points for your own merchant account, since merchant onboarding, risk settings and local rules can change what is available to you.

Limits to confirm before you commit to widget-based checkout

Widget-based checkout depends on several moving parts: the SDK components, the server version, the release train and the configuration services behind them. Each card below names one limit to confirm against the current Hyperswitch docs and release notes before you commit to this design.

Widget components in your SDK version

Confirm which individual payment method widgets exist in the exact SDK version you plan to run, for each platform you ship. Widget availability is not guaranteed to be identical across web, Android, iOS, React Native and Flutter, so a method that works on web may not have a matching component on mobile. Build a list of required methods per platform and check each one against the SDK documentation before design sign-off.

Hyperswitch docs

SDK and server version matching

Pin SDK and server versions together. Confirm which SDK release works with which self-hosted router version, and whether the widget component you need exists in that pairing. Running a newer SDK against an older server, or the reverse, can break widget rendering or API calls. Record the pairing in your change process so every rollout names both versions.

Hyperswitch releases

Monthly minor release cadence

Hyperswitch ships roughly monthly minor releases, and each release publishes a compatibility matrix for Control Center and web client versions. Plan for a recurring upgrade window that includes widget regression tests, not a one-time integration. Ask who in your team owns reading each release note and matrix before an upgrade is scheduled.

Minor release cadence
Monthly
Release notes

Superposition dependency from v1.124.0

The v1.124.0 release notes state that Superposition became a required configuration dependency. Deployments must run a Superposition service before upgrading to that version or later. If you are on an older release, add this service to your architecture and upgrade plan, and confirm its hosting, backup and high availability needs with your platform team before you touch the router.

Release notes

Styling limits on widgets

Confirm how far widget appearance can be changed to match your existing checkout. Check which fonts, colors, shapes and layout options apply to individual widgets, and whether they differ from the unified checkout. Note any brand requirement that the widget cannot meet, such as custom button behavior or placement inside your own form, and decide whether that gap is acceptable before development starts.

Hyperswitch docs

Beta status of components

Some SDK components and platform features may be marked beta in the docs or release notes. Check the status of every widget you plan to use, and confirm whether the vendor provides support, a deprecation policy or a stability commitment for beta items. Treat any beta widget as a risk in your rollout plan and keep a tested fallback to the standard checkout flow.

Control Center repository

Questions buyers ask about adding payment methods to Hyperswitch checkouts

What does it cost to add alternative payment methods to a Hyperswitch checkout?

Cost depends on the work each payment method adds, and DeployOpen does not publish a price list. A quote follows from the written scope. The main cost components are processor onboarding (the time spent on accounts, contracts and approvals), the number of methods, the SDK platforms the widgets must run on, testing across those methods and platforms, and any compliance review of data flows. Ask the quote to separate one-time work (configuration, integration, testing, documentation) from recurring work (upgrades, monitoring, retainer support), and to list each method and platform as its own line. Also ask what is excluded. Processor fees are paid to the provider, not to the implementer, and they will not appear in the implementation quote.

How long does it take to add a payment method widget?

Duration depends on scope and on how quickly processor accounts are approved, so no single timeline applies to every engagement. The work usually runs in four phases: scope and method selection, processor onboarding, widget integration (server-side payment creation, redirect handling and webhook processing), and then testing and release. Onboarding is often the longest phase and is partly outside your control, because providers approve merchants on their own schedules. One method on one web checkout moves faster than several methods across web, Android and iOS. Ask the implementer for a duration per phase, the dependencies on your team and the provider, and the assumptions behind each figure, then check the timeline against your release calendar.

What must our team provide before an integration starts?

Your team supplies the business and technical inputs that cannot be produced by the implementer. Typically this includes:

  • Processor or provider accounts for each payment method, with the contracts and merchant details the provider requires
  • Product decisions on which methods to offer, in which markets and currencies, and in what order they appear in checkout
  • A staging environment close enough to production to test webhooks, redirects and returns
  • Public HTTPS webhook endpoints, and the access needed to register them with each provider
  • Named owners for approvals, access to your checkout code, and sign-off on test results

Confirm in writing which items DeployOpen will handle and which your team owns. Account holders and contract signatories usually must be your own staff.

Can our internal team add payment method widgets without a partner?

Yes, an experienced internal team can do the work if it has the skills and time for the parts that are easy to underestimate. The job requires engineers who can build server-side payment creation, handle asynchronous webhook events and redirect returns, and test failure paths. It also requires people who can run processor onboarding and keep compliance evidence current. Hyperswitch is open source under Apache 2.0, so the code and documentation carry no license fee, but engineering hours, operations and upkeep still cost money. The usual deciding factor is capacity. If the same engineers also run the self-hosted stack and its upgrades, a partner can take the widget work under a fixed scope. Ask any partner which tasks it would hand back to your team.

How do Hyperswitch upgrades affect embedded payment widgets?

Upgrades can change widget behavior, so each release should be tested against your embedded checkout before it reaches production. Hyperswitch ships roughly monthly minor releases, and each GitHub release lists a compatibility matrix for Control Center and web client versions. Widgets load through your page, so the client version and the app server version must stay in a supported pairing. Dependency changes matter too. For example, v1.124.0 made Superposition a required configuration dependency, and a Superposition service must run before upgrading to that version. Ask the implementer how it tracks the matrix, how it retests each method and platform, and who owns rollback. Review the Hyperswitch releases on GitHub page before each planned upgrade.

Which payment methods suit a widget instead of a full checkout replacement?

Methods that need one focused interaction usually suit widgets best, because they can sit inside an existing payment step without rebuilding the page. Wallets such as Apple Pay and Google Pay are common candidates, and so are other methods available through the processors you already use. Methods that require extensive customer data capture, multi-step flows or complex presentment rules may justify a fuller checkout instead. The answer depends on which methods your processors support, the platforms you sell on, and how your checkout code is structured. Confirm each method's support with your processor and in the Hyperswitch documentation before you scope it.

How DeployOpen scopes and delivers embedded payment method work

DeployOpen plans, builds, tests and documents embedded alternative payment method widgets inside your existing checkout, in infrastructure you control. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • We list which alternative payment methods you need and confirm each one is supported by your Hyperswitch version and connector.
  • We map each widget to a checkout location, decide where it appears and which payment methods it replaces or sits beside.
  • The written scope names the processors, SDK versions, environments and acceptance tests that define done for each widget.

How we build

  • We integrate each widget into your current checkout code, keeping existing card and wallet flows unchanged while the new methods are added.
  • We point the client SDK at your self-hosted backend, matching the web SDK version to the app server version you run.
  • We test redirects, pending states, failed and abandoned payments, webhooks and currency and locale handling for every method in scope.

How we hand over

  • You receive the integration code, configuration for each connector and routing rules, and a record of the test results against the agreed criteria.
  • The documentation covers how each widget is mounted, what data it passes, which events your backend must handle and how to add another method later.
  • We walk your engineering and operations teams through the runbook, including what to check after each Hyperswitch or SDK upgrade.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering new releases of the router and web SDK.
  • When a payment method provider changes its redirect or webhook behavior, we test the affected widget and fix the integration.
  • Before your payment and compliance teams review the setup, we can prepare the evidence they ask for about the checkout flow and data handling.

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.