Hyperswitch 3DS decision manager rules

Hyperswitch 3DS decision rules decide when a payment requests authentication, based on parameters such as amount, country and card type. This page covers how to write them, what each option trades off, and how to set them up and test them in infrastructure you control.

On this page

Hyperswitch 3DS decision manager rules: when to request authentication

If you run a self-hosted Hyperswitch stack, you decide when 3D Secure is requested, and the rules you write for that decision set your fraud liability and your checkout friction at the same time. Too few triggers and you accept chargebacks you could have shifted to the issuer. Too many and good customers abandon at a challenge they did not need. 3DS rules are conditions evaluated on each payment that tell the router whether to start authentication, skip it, or request an exemption where one applies. This section frames the decision; the sections that follow cover the individual 3DS setups and exemptions.

The parameters a rule can test are set by your configuration and by the version you run, so confirm the exact list in the Hyperswitch docs before you design anything. The main levers are typically payment amount, billing and shipping country, card type and network, and whether the customer is a returning or first-time buyer. Confirm which fields are available as rule inputs, whether they are evaluated before or after a processor is chosen, and how a rule behaves when a field is missing. Start from the Hyperswitch docs for your release, because rule and routing behavior changes between minor versions, and an upgrade can alter how an existing rule evaluates.

Write the rules from your own data. Pull a sample of recent payments with their issuer outcomes, chargeback rates and abandonment at challenge, then draft a small set of rules by segment, such as higher amounts, cross-border cards or a country with elevated fraud. Test each rule against that sample in a staging environment and record which payments it would have challenged. Set one owner for the rule set and a review cadence, because the balance between liability and friction shifts as fraud patterns change.

Rule parameters and when each fits

This table compares the common parameters an operator can write 3DS rules on, the situations where each fits, what it protects against, and the friction or false-positive cost it carries. Use it to shortlist parameters, then confirm the exact list the deployed Hyperswitch release exposes in the docs before you write rules. The main takeaway is that every parameter trades fraud coverage against checkout friction, so pick the fewest that match your loss pattern.

ParameterWhen it fitsWhat it protects againstMain friction or false-positive cost
Amount thresholdBasket values where a single loss is large relative to typical ordersHigh-value card testing and single large fraudulent purchasesLegitimate high-ticket buyers challenged, lowering conversion on big orders
Billing countryMerchants whose fraud concentrates in countries where they have few genuine customersCross-border fraud from unexpected billing regionsTraveling customers and expats with foreign billing addresses get challenged
Issuing country (card BIN country)When the card's issuing country differs from the shipping or billing countryMismatch patterns common in account takeover and stolen card useLegitimate cross-border shoppers with foreign-issued cards
Card type (debit or credit)When one card class carries materially higher chargeback or fraud rates for your businessFraud concentrated in prepaid or certain consumer card categoriesCustomers who use the affected class are challenged regardless of their risk
Card networkWhen a network shows distinct fraud behavior or different 3DS support in your trafficNetwork-specific fraud patterns in your dataCoarse filtering can challenge large groups of normal customers
Payment methodWhen wallets, saved cards or bank-based methods have different risk profilesAbuse of specific flows such as first-time saved cardsSplits the flow in ways that complicate reporting and support
Customer history or first transactionWhen repeat buyers should pass with less friction than new accountsNew-account fraud while protecting returning customersNew legitimate customers face more challenges at first purchase

Balancing fraud liability against checkout friction

Every 3DS rule trades authentication strength against abandoned checkouts. The cards below cover the decisions that move that balance in a self-hosted Hyperswitch setup, and what to measure before and after each change.

Forcing 3DS on high-risk segments

Requiring a challenge for segments such as high-value baskets, new cards or specific countries moves fraud liability toward the issuer for those payments, but it adds friction for the same customers. Define segments from data your team can explain to fraud and compliance reviewers. Check whether the rule is applied per processor, because authentication behavior varies between connectors. Expect the challenge rate to rise in the segments you force, so measure it per segment from the first day.

Routing docs

Relying on frictionless flows

A frictionless result means the issuer authenticated the cardholder without a challenge. Rules that rely on frictionless outcomes keep conversion high, but the liability position depends on the authentication data the issuer returns. Confirm with each processor which authentication results it accepts for authorization, and how it reports them back. Treat any unexpected drop in frictionless outcomes as a signal to review the rule, not only the issuer.

Accepting liability shift versus declines

When a payment is authenticated, liability for certain fraud chargebacks shifts from the merchant to the issuer. When a rule blocks or declines a payment instead, you lose the sale but avoid the chargeback. Decide which loss you prefer for each segment and write that choice into the rule. Ask your fraud and finance teams to agree on the cost of a declined good customer, because it is usually harder to see than a chargeback.

Using exemptions where they apply

For EEA card payments, a valid exemption can let a payment skip a challenge when the transaction risk is low. Exemption eligibility depends on region, amount, acquirer approval and the fraud rate your acquirer observes, so a rule that depends on exemptions must be reviewed with the acquirer. Confirm which exemptions your processors support through Hyperswitch before you write a rule that assumes one. Keep a fallback challenge path for payments that the exemption does not cover.

Measuring conversion and fraud together

A 3DS rule should be judged by two numbers at once: authorization conversion and fraud or dispute rate for each segment. Track challenge rate, challenge completion, frictionless rate, decline rate and chargebacks, split by card type, country and processor. Run changes as staged rollouts so you can compare segments with and without the new rule. Agree on the review cadence with your fraud, payments and finance owners before the first change goes live.

How to set up and test 3DS rules in a self-hosted stack

This sequence takes 3DS decision rules from a written risk policy to a staged production rollout, with a check at each step so you can see which rule triggered which authentication request before real customers are affected.

  1. Confirm processors and the 3DS path

    Your team lists every connector that will carry card traffic in the self-hosted Hyperswitch stack, then records whether each processor runs 3DS itself, whether you use a standalone 3DS server, or whether authentication data is imported from an external run. The owner is the payments lead with input from the security team. Done means a signed table that maps each connector to its 3DS path, so rules are written against paths you actually operate and not assumptions about defaults.

  2. Draft rules from a written risk policy

    Risk, fraud and product owners turn the policy into rule conditions such as amount bands, billing or card-issuing country, card type and merchant category, and they state for each rule whether 3DS is requested, skipped or left to the processor. They also record who accepts the liability trade-off for each band. Done means a reviewed rule document where every condition traces back to a policy statement and every rule has a named owner.

  3. Configure rules in the Control Center or API

    An engineer enters the approved rules in the Control Center or through the API, following the Hyperswitch docs for the version you run, and records the rule identifiers, ordering and default behavior when no rule matches. Confirm the exact configuration fields for your release, since the docs and dashboard can change between versions. Done means a configuration export or API read-back that matches the signed rule document line for line.

  4. Test rules in a sandbox with test cards

    The team runs a scripted set of test payments in a sandbox environment, using the test cards and processor test credentials the connector documentation supplies, and covers each rule boundary, including amounts just above and below each threshold and each country and card type in scope. Confirm which test cards trigger a challenge in your processor's sandbox. Done means a test matrix where each payment has an expected and an observed 3DS outcome, with mismatches logged for correction.

  5. Check authentication requests per rule

    The engineer reviews the payment records and logs to confirm which rule matched each test payment and whether the authentication request was sent, skipped or delegated, using the rule identifiers recorded in step three. Check the ordering too, because an earlier broad rule can hide a narrower one. Done means every test payment is attributed to exactly one rule and the attribution matches the expected outcome in the matrix.

  6. Roll out gradually and watch outcomes

    The team enables the rules for a small share of live traffic, then widens exposure in steps while tracking challenge rates, authorization rates, abandoned checkouts and chargeback or fraud reports per rule. Set the thresholds for pausing a rollout with the risk owner before starting, and confirm the traffic-splitting method available in your release. Done means a documented rollout record showing each exposure step, the metrics reviewed, and the decision to continue, adjust or roll back.

  7. Review results and schedule re-testing

    Risk and payments leads review the per-rule results at a fixed interval, compare them with the written policy, and adjust thresholds through the same change record used for the original rules. Each rule change is retested in sandbox before production. Done means a dated review record and a re-run of the test matrix after any change, so the live rule set always matches what was tested and approved.

Rule design by business model and region

A merchant selling into one country or one regulatory zone usually needs a small rule set. The main question is how 3DS applies to the local card base and whether the processor the merchant uses supports the authentication behavior the rules will request. In the EEA, rules often separate low-risk and high-risk payments, while outside it the decision may rest more on amount, card type and fraud signals. Keep the rule count low so that each rule can be tested and explained to the fraud and compliance teams.

  • Start with one default path: Define whether 3DS is requested by default and add exceptions only where the data supports them.
  • Map rules to the processor: Confirm which 3DS flows the processor supports for the card types you accept.
  • Set a review cadence: Compare chargebacks and abandonment by rule at a fixed interval.
  • Keep the rule log: Record each rule change with its owner and reason.
  • Test the common path: Run test cards that trigger challenge and frictionless outcomes before go-live.

Confirm with your processor which 3DS versions and exemption requests it accepts from Hyperswitch, and whether the rule engine's decisions appear in the payment records you will use for disputes.

Security and operational considerations for 3DS rules

3DS rules decide who pays liability and how much friction customers face, so they carry the same change risk as code. The cards below cover who edits rules, how changes are versioned and logged, how card and authentication data stays out of logs, and how to catch drift after upgrades.

Restrict who can edit rules

Rule edits change authentication behavior for live traffic, so treat rule editing as a privileged action. Limit the Control Center roles that can publish rules, and keep rule authors separate from the people who approve them. Because Hyperswitch manages roles itself rather than mapping them from your identity provider, review the role list on a schedule and remove access when people change teams. Confirm in your environment whether role changes made in the dashboard are logged in a form your audit team can export.

SSO and roles docs

Approve changes before publishing

Require a second person to review each rule change before it reaches production traffic. The reviewer should check the rule's conditions, the action it takes (request 3DS, skip it, or fall back), and the expected effect on liability and checkout friction. Record the approver, the reason and the ticket reference alongside each change. Confirm with your vendor whether the Control Center supports an approval step natively or whether you need to enforce it through a change process outside the tool.

Version and roll back rules

Keep every published version of the rule set in source control or an equivalent store, so you can see what changed and when. Test a candidate version against a copy of recent payment traffic or in the sandbox before promoting it. Keep the previous version ready to restore, and document the steps to revert, including who can perform them outside business hours. Confirm how the Control Center exposes rule history and whether a prior version can be re-activated without rebuilding it by hand.

Keep card and authentication data out of logs

Rule evaluation touches fields that can carry sensitive values, such as card numbers, cryptograms and 3DS authentication data. Configure your logging and observability stack to drop or mask these fields before they leave the Router service. Restrict who can read application logs and traces, and check that error messages from rule evaluation do not echo request bodies. Ask your vendor which fields the Router logs at each log level and what the default retention is for your deployment.

Protect the vault and encryption keys

Rules should reference tokens and non-sensitive attributes, not raw card data. If your design keeps card data in the Hyperswitch card vault, confirm that rule conditions never require the decrypted PAN. Restrict access to the vault service and the key management backend to a small operator group, and log every key or vault administration action. Review these controls with your PCI DSS assessor, since the scope of your environment depends on them.

Watch for rule drift after upgrades

Minor releases can change defaults, rule evaluation, or how connectors interpret 3DS fields. After each upgrade, compare the active rules with the last approved version and replay a sample of transactions through the decision logic. Track the 3DS request rate, approval rate and liability outcomes by rule, and alert on sudden shifts. Read the release notes and compatibility matrix before upgrading, and confirm which dependencies, such as Superposition in v1.124.0 and later, must be running before the change.

Hyperswitch releases

Decision path for a payment with 3DS rules

The diagram starts when a shopper submits a payment to the Hyperswitch router, which evaluates the merchant's 3DS rules against the payment attributes. A rule match sends the payment down an authentication branch, where the processor or an external 3DS server runs the challenge or frictionless check. The other branch authorizes without 3DS. Check which branch each rule type sends traffic to, and confirm the liability outcome that each branch produces in your own configuration.

Payment path through 3DS rule evaluation, authentication and authorization.

Limits to confirm before writing rules

Does my deployed Hyperswitch version support every rule parameter I want to use?

Confirm this against your exact deployed version before you write rules, because the set of parameters a rule can read is not something to assume from documentation alone. Start with the parameters your rules need, such as amount, billing or shipping country, card type, card network, and currency, and test each one in a non-production environment. Record the version number and the Control Center and API behavior you observed, since rule parameters can change between releases. Check the GitHub releases page for the release notes that apply to your upgrade path, and treat any parameter you cannot reproduce in testing as unsupported until your engineers confirm it.

How do 3DS rules interact with routing strategies and fallback routing?

The key question is which step runs first when a payment matches both a 3DS rule and a routing strategy, and what happens when no rule applies. Hyperswitch documents six routing strategies, including rule-based, volume-based, auth-rate, multi-objective, least cost for debit networks, and default fallback routing for when no rule applies or a processor is ineligible. Confirm in a test environment whether a 3DS decision changes the processor selected, whether a processor that cannot perform the requested 3DS flow is skipped, and whether fallback routing re-runs the 3DS decision. Document the result as a truth table covering each routing strategy and each 3DS outcome, because gaps there usually surface as unexpected challenges or missing liability shifts in production.

Do processors behave differently when 3DS is requested through Hyperswitch?

Yes, and the differences decide whether a rule does what you intend. Each processor connector may support different 3DS flows, may run authentication itself, may accept an external authentication result, or may ignore a requested flow. Confirm for each connector in your plan which 3DS mode it uses, whether it supports both frictionless and challenge flows, and how it reports the outcome back to Hyperswitch. Ask each processor for its written position on liability and on exemption handling for your markets. Keep a per-connector matrix in your design record, since a rule that works through one acquirer may produce a different challenge rate through another.

How do imported 3DS results change the decision logic?

When authentication ran outside Hyperswitch, the rules engine may need to skip its own 3DS request, and you must confirm that it does. Check whether a payment carrying imported authentication data is treated as already authenticated, whether a rule can still request a new challenge, and whether the liability shift flag is passed to the processor correctly. Also confirm which processors accept imported results at all, because a rule that assumes they do will silently send transactions into a path without the expected protection. Test one approved, one challenged and one failed imported result on each connector before relying on the decision.

Can I write 3DS rules in the Control Center, through the API, or both?

Confirm this separately for each surface, because the Control Center and the API may not expose the same parameters, actions or rule types for your version. Ask your engineers to create the same rule through each path and compare the stored configuration, the evaluation output and any version differences. Decide in advance which surface is the source of truth, and whether changes made through the dashboard will be overwritten by configuration managed in code. Control Center access also depends on your identity setup: the documented SSO for the Control Center uses OpenID Connect only, with no SAML, JIT or SCIM provisioning, and roles managed in Hyperswitch, so confirm who can publish rule changes before you grant access.

What should I confirm about rule evaluation order and conflicting rules?

Confirm the evaluation order, precedence and conflict behavior on your deployed version before you write a second rule. Test whether the first matching rule wins, whether rules are merged, and what happens when a payment matches two rules that request different 3DS outcomes. Also confirm whether a rule can be disabled without deletion, how changes take effect for in-flight payments, and whether there is a dry-run or simulation mode. Write a small set of test payments for each boundary, such as an amount exactly at a threshold, and keep the expected outcome next to the rule so reviewers can verify it.

How much effort does it take to confirm these limits and who pays for it?

The effort depends on how many parameters, connectors and routing strategies your plan includes, and on whether your team can run controlled test payments against each processor sandbox. Your own engineers can run this verification, and it is a one-time exercise per version, repeated after each upgrade that touches routing or 3DS. Ask any implementation partner for a written scope that lists the parameters, connectors and surfaces tested, the test cases and the deliverable, such as a rule matrix and test evidence. Fixed-scope engagements are agreed in writing before work starts, and DeployOpen provides a quote that follows from that written scope.

How DeployOpen scopes and delivers 3DS rule work

DeployOpen plans, implements, tests and documents Hyperswitch 3DS decision manager rules inside your own infrastructure, so your fraud, payments and compliance teams can review every threshold before it reaches live traffic. Engagements are fixed-scope, with the rule set, test evidence and handover agreed in writing before work starts.

How we scope

  • We inventory the payment methods, currencies, countries and connectors that the 3DS rules will govern.
  • We agree in writing which decision parameters are in scope, such as amount, country, card type and transaction history.
  • We confirm with your team which fraud liability and checkout friction targets the rules must meet before any build starts.

How we build

  • We write the rule set in Hyperswitch, with each rule's condition, action and fallback documented in a reviewable form.
  • We check the rule order and default behavior so that payments with no matching rule still follow a defined path.
  • We test each rule against sandbox transactions and record which flows request 3DS, skip it or follow the default.

How we hand over

  • We deliver a rule catalog that explains the purpose, owner and change history of every 3DS rule.
  • We provide test evidence, a rollback plan and a short guide for your team to change thresholds safely.
  • We walk your fraud, payments and compliance reviewers through the rules so they can sign off on the design.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • We can retest the rules after Hyperswitch upgrades or connector changes that could alter 3DS behavior.
  • Ask any provider to confirm how rule changes are approved, logged and reversed in your own environment.

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.