Hyperswitch webhooks setup: what flows in, what flows out
A payments team that self-hosts Hyperswitch needs webhook work in two directions: receiving callbacks from processors so payment state in Hyperswitch stays current, and sending event notifications from Hyperswitch to its own order, ledger and fulfillment systems. The Router is the service that receives processor callbacks and drives payment state, and the Scheduler handles background work such as retries and scheduled tasks. Both run as app services backed by PostgreSQL, with a master and replica setup, and Redis for caching and the scheduler queue, according to the Hyperswitch architecture documentation. Your team needs this work as soon as a processor is connected to a self-hosted instance, because a payment that completes at the processor but never reaches Hyperswitch leaves your records wrong.
Start by confirming which public endpoints your deployment exposes for inbound processor callbacks, and whether they reach the Router through your ingress, load balancer and any API gateway in front of it. Processor connection itself is handled in the Control Center, but the exact webhook configuration screens, required endpoint paths and signature settings differ by version and by connector, so check them against the Hyperswitch documentation for the release you run before you write any firewall or gateway rule. Treat inbound signature verification and outbound endpoint ownership as separate decisions and assign an owner to each.
Outbound notifications to your own servers should be planned with the same care. Decide which payment events your systems must act on, how your endpoint verifies the sender, how it handles duplicate or out-of-order deliveries, and what it does when your endpoint is down for longer than the retry window. Plan a fallback that polls payment status through the API for any payment whose final state your system has not confirmed. Confirm the retry behavior, signing method and event list in the documentation for your version, and test each path in a non-production environment before go-live.
How connector and merchant webhooks move through Hyperswitch
The flow starts when a payment processor sends a callback to the Hyperswitch Router, which updates payment state in PostgreSQL and queues an event in Redis. The Scheduler then delivers the outbound merchant webhook to your endpoint. Each subgraph marks a trust boundary: the processor is external, Hyperswitch runs in your infrastructure, and your merchant servers receive events. If a merchant webhook is missed, the merchant server can call the payment sync path on the Router, which is the fallback to check. Confirm the signature check on each inbound and outbound hop in your own environment.
Inbound connector callbacks and outbound merchant webhooks, with the sync fallback path.
Webhook configuration options and when each fits
This table compares the four webhook-related settings you may configure: connector callbacks into Hyperswitch, outbound merchant webhook endpoints, event subscriptions and signature verification. Read each row as a question to answer before go-live, and confirm the exact field names and menu locations in the Control Center or configuration files for the Hyperswitch version you run.
| Setting | What it does | When it fits | What to confirm for your version |
|---|---|---|---|
| Inbound connector callbacks | Processor sends payment status updates into Hyperswitch at an endpoint your deployment exposes | Every connector that pushes asynchronous status changes, such as captures, refunds and disputes | Which events each connector sends, the public URL it must reach, and that your ingress allows the request path through |
| Outbound merchant webhook endpoint | Hyperswitch sends events from your merchant account to a URL on your own server | Your order, ledger or fulfilment systems need to react to payment state without polling | The endpoint URL per merchant or profile, the secret used to sign deliveries, and where your team sets this in the Control Center |
| Event subscriptions | Limits which event types are delivered to each outbound endpoint | Your consumers need only a subset, such as successful payments and refunds, to keep payloads and load small | Which event categories are selectable in your release and whether subscriptions can differ per profile |
| Signature verification | Lets your server confirm that an outbound delivery came from Hyperswitch and was not altered | Any outbound endpoint that changes orders, balances or account state | The signing algorithm, the header name carrying the signature, and how the shared secret is rotated |
| Connector signature and authentication checks | Verifies inbound connector callbacks using credentials the processor provides | Connectors that sign callbacks or require a verification key or basic credentials | Which checks each connector connector page requires, and whether a failed check is logged or silently dropped |
| Retry and delivery behaviour | Governs how often a failed outbound delivery is retried and how long it is kept | Endpoints that may be briefly unavailable during deploys or maintenance windows | The retry schedule, the maximum retry count and where failed deliveries appear for manual replay |
| Fallback to payment sync | Your server pulls the current payment status through the API when a webhook is missing or late | Reconciliation jobs, stuck payments and endpoints that could not receive a delivery during an outage | Whether your reconciliation job can call the payment retrieve endpoint at the volume you expect, and how often it runs |
How connector callbacks reach Hyperswitch
Processors send asynchronous status callbacks to Hyperswitch after a payment, refund or dispute changes state, often minutes or days after the original API call. Those callbacks only work if a Hyperswitch webhook endpoint is reachable from the processor's network, so the first job is to provision a public route to the Router service. That means a DNS name that resolves outside your network, a load balancer or ingress that forwards the request path to Router, and a TLS certificate that the processor's client will accept. Keep the endpoint on HTTPS with a certificate chain issued by a public authority, and confirm the exact path format the Helm chart and your ingress expose before you give it to any processor.
Your network controls need to match the processor's delivery model. If a processor publishes the IP ranges it sends callbacks from, allow-list those ranges at the firewall, WAF or cloud security group instead of opening the endpoint to all addresses, and plan a process for updating the list when the processor changes it. If a processor does not publish ranges, rely on the signature verification described in the next section and do not invent a list. Each connector has its own credentials, webhook secret, event types and retry behavior, so confirm per-connector details in the connector's own documentation and in the Hyperswitch connector guide before you configure the callback URL in the processor's dashboard. Record which URL, secret and event set each connector uses, because that record is what your team checks when callbacks stop arriving.
Setting up webhooks on a self-hosted Hyperswitch stack
This sequence takes a self-hosted Hyperswitch deployment from an exposed webhook path to verified inbound connector callbacks and signed outbound merchant events, with retry behavior confirmed before go-live. Each step ends with a check you can record as evidence for your change review.
Confirm the webhook path is reachable through ingress
Your platform or network team confirms that the Router service's webhook endpoints are exposed through the ingress controller, load balancer or API gateway that fronts your Kubernetes deployment, using the hostname you plan to give processors. Check the ingress rules, TLS certificate, and any web application firewall or allowlist that could block inbound POST requests from processor IP ranges. Confirm the public hostname resolves correctly and that the path returns a response from the Router service rather than a gateway error. Ask your processors for their published source IP ranges, if they provide them, before you add any allowlist. Done when an external request to the endpoint reaches the Router logs.
Register connector webhook URLs and secrets
For each processor connector, your payments engineers enter the Hyperswitch webhook URL in the processor's dashboard or API and record the webhook signing secret the processor issues. Store those secrets in your secrets manager and configure them on the Hyperswitch connector account, never in front-end code or shared chat channels. Keep a register listing each processor, environment, endpoint URL and the date the secret was last rotated. Confirm each processor's documentation for which events it sends to webhooks and whether it supports test event delivery. Done when each connector shows its webhook configuration and the processor's dashboard reports the endpoint as active.
Configure outbound merchant endpoints and secrets
Your team configures the merchant endpoints that receive events from Hyperswitch, which the Control Center exposes under the merchant's webhook settings. Enter the HTTPS URL of your order, ledger or fulfillment service and generate or assign the signing secret that Hyperswitch will use to sign outbound events. Limit the subscribed event types to those your services process, and assign the configuration to the correct merchant account and business profile. Check that your endpoint runs on TLS and that the secret is stored in your secrets manager. Done when the configuration saves at the intended merchant or profile level and your staging service is listed as the destination.
Send test events from a sandbox
Using a sandbox connector and a test payment, your QA engineers trigger a payment that produces the events you expect, such as an authorization or capture, and confirm the inbound connector callback reaches your Router endpoint. Send the outbound merchant event to your staging receiver and log the request headers and body. Use a hosted sandbox or a local Docker setup to avoid affecting production processors. Record which events arrived, their payload identifiers and the response codes your receiver returned. Done when a test payment produces a logged inbound callback in the Router and a matching outbound event at your staging endpoint.
Verify signatures and reject unsigned requests
Your security or platform engineers check the signature validation logic in your receiving service before it processes any event. Recompute the signature from the raw request body and the stored secret, compare it using a constant-time comparison, and reject requests with missing, stale or mismatched signatures. Test the rejection path deliberately by sending a payload with an altered body or wrong secret and confirming your service returns an error without changing order or ledger state. Confirm that your service reads the raw body before any JSON parsing alters it. Done when valid events are accepted, tampered events are rejected and both outcomes appear in your logs.
Build idempotent event handling
Your application engineers make the receiving service safe to process the same event more than once. Store each event identifier in a table with a unique constraint, return a success response for duplicates without repeating side effects, and wrap state changes and identifier writes in one database transaction. Replay the same test event twice and confirm that the order or ledger record changes only once. Confirm how your service handles out-of-order events, such as a capture arriving before an authorization is recorded. Done when a replayed event produces no second state change and the duplicate is logged.
Confirm retry and fallback behavior
Your platform team checks how Scheduler handles failed deliveries before go-live. Temporarily return an error from your staging receiver and watch the Scheduler queue, which is backed by Redis, to confirm that the delivery is retried and that the retry count and timing match your configured settings. Restore the receiver and confirm the event is delivered and removed from the queue. Document the point at which a delivery is marked as failed and who receives an alert. Set a written rule for when your team calls the payment sync API to reconcile missing events, and confirm with Hyperswitch documentation which retry settings apply to your version. Done when a forced failure is retried as expected and the fallback runbook is approved.
What your merchant endpoint must do to receive events
Hyperswitch sends events to your server and expects your server to handle them safely. The cards below cover the endpoint behaviors that protect your payment state when deliveries arrive late, twice, out of order or from an unexpected sender. Confirm the exact retry and ordering rules in the Hyperswitch docs before you write your handler.
Respond quickly with a success status
Return a success status as soon as the delivery is accepted and recorded, before any database update or call to a downstream system. A slow response can cause the sender to treat the delivery as failed and send it again. Check the documented timeout and which status codes count as success, and test a slow handler in a staging environment so you know where the limit sits.
Hyperswitch docsVerify the signature before trusting the body
Check the signature header against the raw request body using the secret for that endpoint before you parse or act on any field. Reject deliveries that fail the check and log the rejection. Confirm the signature scheme, header names and secret rotation steps in the Hyperswitch docs, since a handler that parses JSON before verifying can alter the bytes the check depends on.
Deduplicate by event ID
Treat every delivery as at-least-once. Store each event ID with a unique constraint and skip any event you have already applied, so a retried delivery cannot capture a payment twice or send a second refund notice. Ask Hyperswitch whether event IDs stay stable across retries, because your deduplication key depends on that answer.
Process asynchronously
Write the verified event to a queue or a durable table, acknowledge the request, and let a worker update order and payment state. This keeps the HTTP response short and lets you retry your own processing without asking Hyperswitch to resend. Make the worker idempotent, because the same event may reach it more than once after a restart.
Keep endpoints on TLS
Expose the receiving URL only over HTTPS with a certificate issued and renewed by your certificate process, such as an ingress controller with automated renewal. An expired certificate stops delivery and can look like a Hyperswitch fault. Confirm which TLS versions and certificate chains the sender accepts before you set the final endpoint configuration.
Log raw deliveries for investigation
Store the raw body, headers, receipt time and your verification result for each delivery, under your retention and access rules. When a payment status looks wrong, these records show whether the event arrived, failed verification or was skipped as a duplicate. Confirm the event retention period in the Hyperswitch docs, and make sure the logs do not hold card data or other sensitive fields.
When to fall back to payment sync instead of waiting for webhooks
Webhooks are the fast path for payment state, but they are not a guarantee. Deliveries can be delayed, duplicated, dropped during an endpoint outage or arrive out of order, so your team should plan a reconciliation job that polls payment status for any payment stuck in a pending state longer than an agreed threshold. Set that threshold per payment method and connector with your payments and operations owners, because a bank transfer or 3DS challenge legitimately stays pending far longer than a card authorization. Keep the list of pending states that trigger a sync explicit and version-controlled, for example authorization in progress, requires action, processing, or a refund still pending. Confirm the exact status names and the retry counts and intervals for webhook delivery in the Hyperswitch docs for the version you deploy, since these change between releases.
Polling creates a second writer for the same payment, so the sync job must never trigger a capture or refund on its own. Treat the sync as a read that updates local state, and make any money-moving action pass through an idempotency check keyed on the payment ID and the intended operation, so that a webhook and a sync arriving for the same event produce one capture. Before acting on a status from either source, re-read the current status from Hyperswitch and compare it with your stored record. Record the source of every state change (webhook delivery ID, sync job run, or manual operator action) alongside the old status, new status and timestamp. That log is what lets your team explain a discrepancy during reconciliation or a dispute review, and it shows which path is failing when sync keeps correcting webhook gaps.
Decide in advance what happens when the sync also cannot resolve a payment, for example after repeated attempts or a connector timeout. Route those payments to a manual review queue with an owner and a deadline rather than retrying indefinitely, and alert when the count of stale pending payments rises above a level you set during testing. Test both paths before go-live: stop your endpoint, replay deliveries out of order, and confirm that the sync closes the gap without double-processing. Document the threshold, the state list and the log schema so auditors and on-call engineers can see how the control works.
Limits to confirm before go-live
Webhook delivery depends on settings that change with the platform version, the connector and the health of the services behind it. The cards below list the limits your team should confirm in writing and in a test environment before routing live payment events to production.
Retry schedule and attempt limits
Outbound webhooks to your servers are retried when your endpoint fails to acknowledge them. Confirm the retry interval, the maximum number of attempts and whether retries stop after a final failure. Your on-call runbook needs these numbers, because a missed event after the last attempt will not arrive again on its own. Test a deliberately failing endpoint and record exactly when the final attempt happens and what state the payment is left in.
Hyperswitch docsEvent types per connector
Not every processor sends the same callbacks, and Hyperswitch maps each connector's events onto its own event model. Confirm, connector by connector, which payment, refund and dispute events arrive and which are missing. A missing event type means a payment state change can only be learned through a sync call, so list the gaps and assign a sync fallback for each one before go-live.
Payload size and ordering
Plan for webhook payloads that may be large, and for events that arrive out of order or more than once. Ask the vendor for the maximum payload size and whether delivery order is guaranteed across payments. Your handler should be idempotent, keyed on the event identifier and the payment's current status, so a late event cannot overwrite a newer state in your ledger.
Scheduler and Redis outage behavior
Hyperswitch runs a Scheduler with Producer and Consumer components, and Redis backs caching and the scheduler queue. If either is degraded, outbound deliveries and queued work can stall or be delayed. Ask how queued webhook events survive a Redis restart, whether they resume without manual replay, and what monitoring signals show a stalled queue. Write down the sync-based reconciliation job you will run to catch any gap.
Architecture docsWebhook settings across releases
Webhook behavior and configuration can change between minor releases, and each release publishes a compatibility matrix for the Control Center and web client versions. Before every upgrade, read the release notes for webhook, event and dependency changes, and retest signature verification and delivery against the new version. Pin the versions you have validated and record the test evidence in your change record.
Hyperswitch releasesWebhook setup questions buyers ask before hiring help
What drives the cost of setting up Hyperswitch webhooks?
The main drivers are the number of connectors sending callbacks, the number of event types you need to act on, how many endpoints your systems expose, and how much reconciliation logic already exists. Each connector has its own callback format and signature method, so every additional processor adds verification and test work. Endpoint count matters because each receiver needs ingress, TLS, secret handling and monitoring. A team with a mature reconciliation process will spend less time on mapping events to ledger entries than a team starting from spreadsheets. Ask any provider for a quote built from a written list of connectors, event types and endpoints, with one-time build work listed separately from recurring monitoring and upgrade work.
How long does Hyperswitch webhook setup take?
Duration depends on your environment and the agreed scope, so there is no fixed figure that applies to every team. The timeline usually depends on whether a Kubernetes cluster, ingress, certificates and a secrets store already exist, how many connectors need callback testing in the sandbox, and whether your internal approvals for new endpoints are quick or slow. Ask for a schedule in the written scope that names the environments, the connectors covered and the test evidence each milestone will produce. If a provider cannot tie the timeline to those inputs, treat the estimate as unverified.
Can our own team set up Hyperswitch webhooks without outside help?
Yes, a team can do this internally if it has working skills in Kubernetes, TLS certificate management and secrets handling, plus engineers who can read the Hyperswitch docs and the connector documentation for each processor. The harder parts are usually not the endpoint itself but signature verification for each connector, idempotent handling of repeated deliveries, and testing failure cases such as timeouts and out-of-order events. If those skills are thin, or if the same engineers are also responsible for the upgrade cycle, outside help can cover the gaps. Decide this by listing the skills and the named people behind each one.
What does the engagement need from our team?
The work needs several things from your side before it starts:
- Sandbox access to Hyperswitch and to each connector you plan to use, with test credentials that can trigger callbacks.
- Processor credentials and webhook secrets, handled through your approved secrets process rather than shared in tickets.
- A named owner for each public endpoint, who approves the hostname, path and certificate.
- Ingress and network access, including firewall rules and load balancer configuration in the cluster or cloud accounts you control.
Without these, the team cannot verify callbacks end to end, so ask for this list in writing during scoping.
How do Hyperswitch upgrades affect webhooks?
Upgrades can change the Router, the Control Center and the connector configuration that feeds your webhook flows, so each upgrade needs regression testing of callbacks. Hyperswitch publishes releases with a compatibility matrix for the Control Center and web client versions, and the release notes call out required dependencies. The v1.124.0 release notes, for example, made Superposition a required configuration dependency that must be running before that upgrade. Plan a test pass for inbound callbacks and outbound event delivery in a non-production environment before each production change, and check the release notes for dependency changes. Ask any provider how upgrade testing is scoped and whether it is part of the build fee or a recurring retainer.
What does DeployOpen not certify for webhook setup?
DeployOpen plans, implements, tests and documents the webhook setup in infrastructure you control, and prepares evidence for compliance assessments. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors and certification bodies perform those assessments. A webhook design that handles card-related data may affect your PCI DSS scope, which is a question for your assessor and your qualified security assessor where applicable. Ask your assessor which webhook records and logs they will request as evidence before the build starts.
When should a Hyperswitch team fall back to payment sync?
Fall back to polling or payment sync when a webhook has not arrived within the window your reconciliation process expects, when an endpoint has been unavailable, or when a connector reports delivery problems. Webhooks are a notification path, so your system should not depend on them as the only source of payment state. Build a scheduled sync job that queries the status of pending payments, deduplicates against events already processed, and raises an alert when the gap grows. Confirm the sync behavior per connector in the documentation for each processor, since query endpoints and rate limits differ.
How DeployOpen works on this
DeployOpen plans, builds, tests and documents Hyperswitch webhook handling inside your own infrastructure, so your team keeps control of endpoints, signing secrets and event processing. Work starts from a written scope that names the connectors, event types and downstream systems involved.
How we scope
- The written scope lists which connector callbacks and Hyperswitch outbound events are in scope.
- We confirm the Hyperswitch version and deployment model, since webhook behavior depends on your running stack.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- We build inbound endpoints that verify connector signatures and reject unauthenticated or replayed requests.
- We configure outbound event delivery to your servers, including endpoint security and idempotent handlers.
- We test retry behavior and define when reconciliation falls back to payment sync for missed events.
How we hand over
- You receive configuration, endpoint code and runbooks documenting each webhook path and its owner.
- Test evidence covers normal delivery, duplicate events, failed deliveries and signature rejection cases.
- Your engineers walk through alert thresholds and how to replay or reconcile events after an outage.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainer work can cover retesting webhook paths when connectors or Hyperswitch releases change.
- Ask any provider to confirm which webhook events and retry behavior apply to your installed version.

