How Hyperswitch split payments let a gift card and a card share one order
Hyperswitch split payments let one transaction use more than one payment method. Today the limit is at most one gift card combined with at most one non-3DS credit or debit card in the same order. A checkout team on a self-hosted Hyperswitch stack that wants customers to apply a gift card balance and pay the remainder by card needs to design around that pairing, not around an open-ended list of tenders. Teams usually need this when gift card balances are common in their customer base, when promotional or stored-value instruments must reduce the charge before a card is taken, or when a single order can legitimately exceed one instrument's balance.
The combination limits shape the checkout design in concrete ways. Only one gift card and only one non-3DS card can participate, so a customer holding two gift cards, or whose remaining balance must go to a card that requires 3DS authentication, cannot complete the order through this path. Your checkout flow should detect those cases before submission and offer a clear alternative, such as a single gift card covering the full amount or a different card. Confirm with your Hyperswitch contact or the split payments documentation how 3DS-required cards are handled in a split, because that boundary decides whether your customer journey works for a large share of card holders.
This feature does not cover every stored-value or wallet product your business may accept, and it does not replace a gift card program's own ledger. Balance checks, the order in which instruments are charged, and what happens when one leg succeeds and the other fails all need explicit decisions and tests on your side before launch. Ask your Hyperswitch team to confirm the current behavior for partial failures and refunds on each leg, and write those answers into your operations runbook and your customer support scripts. Teams that skip this step often discover the gap only when a customer is charged on the card but not credited on the gift card.
The gift card balance is checked before the card is charged
The flow starts at customer checkout, which sends the payment to the Hyperswitch router. The router asks the merchant's own gift card ledger for the balance first, and that answer sets how much remains for the card. The router then uses a card token from the Hyperswitch card vault to authorize only the remainder with a connected processor. Check how the gift card amount is reserved or deducted when the card authorization fails, because the ledger and the processor do not share one transaction.
Gift card balance check runs first, then the card authorizes the remainder.
Which payment combinations Hyperswitch supports today
Hyperswitch split payments let one transaction use more than one payment method, but the supported combination is narrow. Each card below marks one part of that boundary, followed by the limits that fall outside it and the design choices a merchant has to make around them.
One gift card plus one card
This is the supported pattern: at most one gift card combined with at most one non-3DS credit or debit card in a single transaction. The gift card covers part of the order and the card covers the remainder. Before you build the checkout flow, confirm with your Hyperswitch version and connector that the gift card balance and the card charge both run through the split flow you plan to use.
Split payments docsTwo or more gift cards
A transaction with more than one gift card is outside the supported combination. A customer with two balances cannot apply both in one charge through Hyperswitch split payments. Design the checkout so the second balance is either left for a later order or handled by a separate flow you have tested, and state this limit in your customer terms and support scripts.
Two or more cards
Splitting the remainder across two credit or debit cards is also outside the supported limit of one card per transaction. If a customer's gift card balance does not cover the order and their first card declines, the checkout must ask for a single replacement card for the full remainder, not two. Plan the decline message and the retry path with that constraint in mind.
3DS-required cards
The supported card must be non-3DS. A card that requires a 3DS challenge falls outside the split combination, so the checkout has to recognize it before attempting the split. Ask your team which of your cards and regions trigger 3DS, and confirm how your chosen authentication setup behaves when a split attempt meets a challenge.
Other wallet and bank combinations
Pairing a gift card with a wallet such as Apple Pay or Google Pay, or with a bank debit or transfer, is not part of the documented split combination. Hyperswitch supports those payment methods on their own, but a mixed split with them is not in the supported pattern. If your customers expect these pairings, treat them as a scope question to confirm with Hyperswitch before design, not an assumption.
Design rules for the checkout
Because the combination is narrow, the checkout must enforce it: check the gift card balance first, offer a single card only for the remainder, and block any third instrument before submission. Record which combination each order used so reconciliation and support can trace a split charge back to its two payment methods.
How to set up a gift card and card split flow
This sequence takes a team from confirming that Hyperswitch can split a payment across a gift card and a card, through to a tested checkout with a traceable reconciliation trail. Each step ends with a check so the team knows whether to move on.
Confirm split payment support for your version
Before any build work, confirm with your Hyperswitch version and the connector you use that split payments are available for your combination of payment methods. Hyperswitch documents split payments as allowing at most one gift card combined with at most one non-3DS credit or debit card in a single transaction, so a gift card plus a 3DS-required card is outside what is documented. Read the split payments documentation for your release and ask your connector provider which card types and authorization flows they accept in a split. The step is done when you have a written note listing the supported combinations and the release you tested against.
Build or connect the gift card ledger
Decide whether gift card balances live in your existing system or a new service. Hyperswitch does not hold your gift card balances, so the ledger that issues cards, records redemptions and returns balance must be owned by your team or a vendor you contract with. Define how the ledger reserves funds during checkout so two simultaneous orders cannot spend the same balance. The step is done when the ledger exposes a balance lookup and a hold operation that you can call from the checkout backend and that you can reverse if the card payment fails.
Add the balance check to the checkout flow
Place the gift card balance check before the card authorization in your checkout backend. The check should return the available balance, compute the amount the gift card covers, and calculate the remainder for the card. Confirm with your processor and Hyperswitch configuration which payment method runs first, because the order determines what happens when the second leg declines. The step is done when a test order with a balance lower than the total produces the expected split amounts in your logs before any charge is attempted.
Configure the sequential payment flow
Set up the payment in Hyperswitch so the gift card leg and the card leg run in the order you chose, and so the card leg uses the remainder amount. Keep the order intent, the split amounts and the gift card hold reference on the same payment record so support staff can trace them. Document what your frontend shows the customer while the first leg is pending. The step is done when a sandbox payment completes both legs and the payment record shows two linked components with their amounts.
Test partial balances and declines
Build a test matrix covering full gift card coverage, partial coverage, zero balance, a card decline on the second leg, a timeout on the first leg, and a concurrent redemption against the same balance. For each case, confirm that the gift card hold is released when the card leg fails and that the customer sees a clear message. Use the Hyperswitch sandbox or a test environment on your own infrastructure. The step is done when every case in the matrix has a recorded expected result and a matching observed result.
Verify the reconciliation trail
Confirm that each split order can be followed from the customer order to the gift card ledger entry, the Hyperswitch payment attempts and the processor settlement for the card leg. Check that refunds and partial captures update both the ledger and the payment record, and that failed legs leave no orphaned holds. Agree with finance which record is the source of truth for the gift card liability. The step is done when a sample of test orders reconciles end to end without manual adjustments, and the open exceptions are written down with an owner.
Configuration choices and when each fits
This table compares the main configuration choices for a gift card plus card payment: when the balance is checked, which leg runs first, how a partial balance is handled and what happens when the card leg declines. Read each row against your own gift card ledger and customer journey, then confirm with Hyperswitch which combinations your version supports before you commit to a design.
| Choice | Option and when it fits | Trade-off for customer experience and refunds |
|---|---|---|
| Balance check timing | Check the gift card balance before authorizing either leg, when your gift card ledger is reliable and you want the customer to see the exact split at checkout | Customers see the final amount before paying, but a balance that changes between check and capture can leave a gap that needs a retry or a card top-up |
| Balance check timing | Check and authorize in the same flow, when balances are held in a system Hyperswitch can call during the payment | Fewer steps for the customer, but failed authorizations on either leg must be unwound cleanly, and the refund path becomes harder to explain |
| Processing order | Gift card first, when the gift card is your own stored value and you want the card amount fixed only after the balance is known | The card amount is calculated last, so the customer sees the exact card charge late in the flow; refunds return the card leg first in most designs |
| Processing order | Card first, when the card leg must be approved before you commit any gift card value | A declined card avoids touching the gift card balance, but if the gift card leg then fails, the card authorization must be voided or reversed |
| Partial gift card balance | Apply the full available balance and charge the remainder to the card, the usual pattern when a balance is smaller than the order | Customers receive the most value from the gift card, but the card amount is unpredictable until the balance is known, which affects displayed totals |
| Partial gift card balance | Decline the split and ask for a different method, when you want one payment method per order or your policies bar partial redemption | Simpler reconciliation and refunds, but customers with small balances may abandon checkout |
| Card leg declines | Cancel the whole payment and release any gift card hold, when the order must settle in full or not at all | Clean for finance, but the customer must restart, and the gift card hold must be released promptly |
| Card leg declines | Keep the gift card portion and ask for another card, when the customer can retry without re-entering the gift card | Better conversion, but a partial amount stays reserved, so timeouts and expiry rules must be defined clearly |
| Refund destination | Refund to the gift card first, when your policy restores store value before cash | Customers keep store credit, but the refund split must match the original split and be tested on each processor |
Why balance checks and processing order decide the customer experience
The order in which a split payment runs decides what the customer sees when something fails. Hyperswitch split payments combine at most one gift card with at most one non-3DS credit or debit card in a single transaction. Whether the gift card balance is checked before the card is authorized, or the card is authorized first and the gift card debited afterward, changes how often a customer ends up with a partial charge, a held amount or a confusing error. Before you commit to a design, confirm with Hyperswitch how the gift card leg is validated, whether a balance check is a separate call or part of the debit, and which leg Hyperswitch treats as the one that must succeed first.
When the gift card leg succeeds and the card leg fails, the customer has already paid part of the order. Your plan has to answer three questions: whether Hyperswitch reverses the gift card debit automatically, whether it only voids or releases a pending authorization, and how long the balance stays unavailable while that happens. Ask Hyperswitch to document the exact reversal or release behavior for each gift card connector you plan to use, including what the API returns during the window before the reversal completes. Do not assume a refund and a void behave the same way on a stored-value balance.
Write the reversal plan before the checkout flow is built. Define who sees the partial state (the shopper, your support team and your finance ledger), how a stuck reversal is detected, and what your reconciliation process does with a gift card debit that has no matching order. Test the failure path deliberately in the sandbox by forcing the card leg to decline after the gift card leg has completed, then confirm the balance, the order status and the webhook events all agree. These tests are where most of the customer experience is decided.
Security and PCI scope considerations for split payments
A split payment puts two kinds of sensitive data in one transaction: a gift card balance and a full card number. Where each is held, what gets logged, and which vault model you choose together decide how much of your environment falls under PCI DSS.
Where card data is held
The card number for the card leg should be captured and stored in the Hyperswitch card vault (locker), a separate Rust service, rather than in your order database or application logs. Confirm which component receives the raw PAN in your checkout flow and whether any of your services see it before it reaches the vault. Map every system that touches the card leg, including the browser, your API gateway and your data warehouse.
Architecture docsGift card ledger access
Stored value is a balance you control, so the ledger that decrements it needs its own access model. Restrict which services can debit a gift card, require the balance check and the debit to run in one authorized step, and record who changed a balance and why. Gift card codes should be treated as credentials and kept out of plain-text logs.
Customer data in logs and webhooks
Split payments generate more events than single payments: a balance check, a gift card debit, a card authorization and possibly a reversal. Each event can carry customer identifiers, partial amounts or masked card details into logs, webhook payloads and monitoring tools. Review what your webhook consumers store, set log redaction rules, and confirm which fields Hyperswitch sends in each webhook before you enable the feature.
Scope effect of the vault model
Hyperswitch documents three self-hosted vault models: the native Hyperswitch Vault run in-house, orchestration with an external PCI vault provider, and orchestration with the SaaS Hyperswitch Vault. In the in-house model the merchant is fully responsible for PCI DSS certification and data handling. With an external vault, confirm with your assessor which systems remain in scope and which only handle tokens.
In-house PCI modelScope confirmation before go-live
Before the feature is released, document the data flows for both legs, the systems that hold cards or gift card codes, and the controls that separate them. Ask your QSA or internal assessor to confirm the scope boundary in writing. DeployOpen can prepare the system diagrams and control evidence for that review, but the assessment and any attestation come from your assessor and the card brands, not from DeployOpen.
Questions buyers ask before building split payments
How much effort does a gift card and card split payment flow take to build?
Effort depends mostly on how many payment methods the flow must combine, how much of the gift card logic already exists, and how many processors and checkout surfaces the change touches. Hyperswitch split payments currently allow one transaction to combine at most one gift card with at most one non-3DS credit or debit card, according to the Hyperswitch split payments docs, so a flow inside that limit is a bounded configuration and integration task. The larger cost usually sits in your own gift card ledger, refund rules, and checkout changes. Ask any partner to break the quote into Hyperswitch configuration, your gift card system integration, checkout work, and testing.
Can our team build split payments in Hyperswitch without outside help?
A team that already runs Hyperswitch and owns a gift card system can usually build the flow in house, provided it has engineers comfortable with the Hyperswitch API and payment state handling. The points that most often need experienced review are sequential processing when the first payment succeeds and the second fails, partial refunds, and how the gift card balance is reserved and released. Confirm these behaviors against the current Hyperswitch documentation for your version before you commit to a design. Outside help is most useful for a design review, a failure-path test plan, or a fixed-scope build with written acceptance criteria.
What does our team need to provide before a split payment project starts?
Most projects need four inputs ready before work begins:
- A gift card ledger with a reliable balance lookup and a way to hold or release funds
- Processor or connector access in a test environment, with credentials and webhook endpoints you control
- Test data covering full gift card coverage, partial coverage, zero balance, expired cards and declined card payments
- A named owner for refund, dispute and reconciliation rules, since split outcomes affect all three
The more of these that exist at kickoff, the shorter the discovery phase. Ask a partner to list each input in the written scope so gaps are visible early.
How long does testing take for a split payment flow?
Testing time scales with the number of outcome paths, not with the number of lines of code. A narrow flow with one gift card, one card, and one processor needs a fixed set of success and failure cases. Each additional processor, currency, checkout surface, or refund path multiplies the cases you must cover. Failure paths take the most time: the gift card succeeds and the card is declined, the card succeeds and the gift card release fails, or a webhook arrives late. Ask for the test matrix in the quote and confirm which environments are used, since sandbox behavior can differ from live processors.
Does split payment support require a self-hosted Hyperswitch deployment?
Not necessarily, but the choice changes who operates what. The Hyperswitch docs describe self-hosting with Helm charts on Kubernetes and a hosted sandbox for testing, so you can prototype against a hosted environment before deciding. If you self-host, your team owns uptime, upgrades, database and Redis operations, and the security of the stack, including any card data your deployment stores. Card handling also determines PCI DSS scope, so confirm the vault model with your compliance team before you choose the deployment. Self-hosting is a decision about operations and data control, not a requirement of the split payment feature itself.
What should we ask a partner to include in a split payment quote?
A useful quote states the scope in writing and lists what is excluded. Ask for:
- The exact payment combinations covered, including the one gift card and one non-3DS card limit and any cases handled as out of scope
- Hyperswitch configuration, gift card ledger integration, checkout changes, and refund and reconciliation touchpoints as separate line items
- The test matrix, environments used, and who supplies test data and connector access
- Handover documentation, support terms after go-live, and the process for scope changes
- Assumptions about your Hyperswitch version and any upgrade work needed to reach it
DeployOpen agrees scope, deliverables and timelines in writing before work starts, so you can compare quotes on the same written basis.
What happens to our PCI DSS scope when gift cards and cards are combined?
Scope depends on how card data is captured, stored and transmitted, not on the gift card itself. A gift card balance check generally does not add card data to your environment, but the card leg of the split payment does. If you self-host an in-house PCI vault, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling. Confirm with your qualified assessor how the chosen vault model and checkout design affect scope before development starts. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.
How DeployOpen scopes and delivers split payment work
DeployOpen plans, implements and documents split payment flows on a self-hosted Hyperswitch stack in infrastructure you control. Each engagement starts with a written scope that fixes which payment combinations, connectors and balance checks are included before any build work begins.
How we scope
- Confirm which gift card issuers, processors and card types are in the split payment flow, and whether each is supported by your Hyperswitch version.
- Map the allowed combination of one gift card and one non-3DS card against your checkout journeys and any cases that fall outside it.
- Agree the written scope, deliverables and timeline before work starts, with ongoing support available as a retainer after handover.
How we build
- Configure the sequential payment flow, including balance checks, partial authorization handling and the fallback when the card leg fails after the gift card is applied.
- Test declines, timeouts, partial balances and refunds in a non-production environment, recording each result against the agreed scope.
- Confirm that card data stays in the card vault model you chose, so the gift card leg does not widen your PCI DSS scope by accident.
How we hand over
- Document the payment sequence, supported and unsupported combinations, error codes and the operational steps for each.
- Deliver a runbook covering balance check failures, reversal handling and what your support team should tell customers in each case.
- Walk your engineering, finance and compliance teams through the configuration and evidence so they can review it independently.
How we support
- Review each Hyperswitch upgrade against the split payment flow before it reaches production, since release notes can change dependencies.
- Retest split payment paths after connector changes, Control Center updates or changes to your gift card provider's API.
- Offer ongoing support and continuous testing through a retainer agreed in writing, sized to your release cadence.

