Hyperswitch network tokenisation

Enabling network tokens in a self-hosted Hyperswitch takes a per-profile flag, a configured tokenisation service, and allow lists for networks and connectors. This page explains each piece and the vault fallback you must keep.

On this page

Hyperswitch network tokenisation: what it does and when to turn it on

Turn network tokenisation on when your self-hosted Hyperswitch stack already runs cleanly and you want card network tokens to improve authorization for saved cards. A network token is issued by the card network and replaces the card number for a given merchant and payment context, so a card that has been reissued or replaced can still be charged without the customer re-entering details. In Hyperswitch, the feature is off by default: is_network_tokenization_enabled defaults to false on each profile, so each business profile you want to use it must be switched on deliberately. It also depends on a configured network tokenisation service. Without one, calls fail with NetworkTokenizationServiceNotConfigured, so the service and its credentials are the first thing to confirm before anyone changes a profile flag.

The effort is worth it when declines after card changes, expired cards or account updates are a material share of your recurring or card-on-file volume, and when your connectors support network tokens in the flows you run. Ask your team and your processors which of these they can confirm for your merchant accounts. The repository's example configuration lists Visa, American Express and Mastercard as card networks and Adyen, Cybersource, Peach Payments and TrustPay as network-token connectors, but the docs note that operators can change these lists, so treat the example as a starting point and confirm the lists against your own environment. Plan the work as a profile-by-profile rollout, with one profile enabled and measured before the next.

Keep the card in the Hyperswitch vault after you enable network tokens. The docs say the saved-card path can still charge the card when a token cannot be fetched or when the connector is not enabled for network tokens, so the vault is your fallback and removing stored cards would remove that fallback. Decide in advance how a failed token fetch is logged, how it shows up in your payment metrics, and whether the fallback is acceptable for each connector. Before go-live, test both paths: a successful token request and a forced failure where the card must be used from the vault.

Configuration options and when each fits

This table compares the five configuration points that control network tokenisation in a self-hosted Hyperswitch deployment. Read each row as a lever: what it switches on or limits, and the signal that tells you to narrow or widen it. The main takeaway is that the vault stays in place as the fallback, so tokenisation can be narrowed without losing the ability to charge a card.

Configuration pointWhat it controlsWhen to narrow or widen it
Profile flag (is_network_tokenization_enabled)Turns network tokenisation on or off for each business profile. The default is false, so no profile uses network tokens until you enable it.Enable it per profile, starting with the profiles and markets where you have confirmed network token support. Leave it off for profiles that have not been tested end to end.
Network tokenisation serviceThe service Hyperswitch calls to request and manage network tokens. Without it configured, calls are rejected with NetworkTokenizationServiceNotConfigured.This is a prerequisite, not a tuning choice. Confirm its configuration, credentials and availability in your environment before enabling any profile flag.
Card network allow listWhich card networks are eligible for network tokenisation. The repository example lists Visa, American Express and Mastercard. Operators can change this list.Narrow it if a network's token behavior is not yet validated for your acquiring setup or your regions. Widen it only after you have confirmed that network's token lifecycle and connector support.
Network-token connector allow listWhich connectors may request or use network tokens. The repository example lists Adyen, Cybersource, Peach Payments and TrustPay. Operators can change this list.Narrow it to connectors you have tested for token provisioning and payment with tokens. Add a connector only after confirming it is enabled for network tokens with your processor agreement.
Card retained in the vaultThe stored card that the saved-card path can use when a network token cannot be fetched or the connector is not enabled for network tokens.Keep this in place for every tokenised card. Removing the stored card removes your fallback, so a token failure becomes a failed payment instead of a retry on the card.
Combined effect on scope and failuresEach network or connector you exclude sends those payments down the vault path. Each one you include adds a token lifecycle you must monitor.Confirm with your processors which lists they support, then review decline and fallback rates by network and connector after each change. Ask your processors to confirm these details in writing.

How to enable network tokens in a self-hosted stack

This sequence takes a self-hosted Hyperswitch stack from confirming connector support to a verified network token path, with a fallback test that proves saved cards still work when a token cannot be fetched. Each step closes with a check you can record before moving on.

  1. Confirm connector and network support

    Before touching configuration, confirm with each processor that it accepts network tokens for the card networks you plan to enable. The example configuration in the Hyperswitch repository lists Adyen, Cybersource, Peach Payments and TrustPay as network-token connectors and Visa, American Express and Mastercard as card networks, but operators can change these lists, so check your own connector agreements and your deployed configuration rather than assuming the example matches your setup. Your sign-off is done when you have a written list of connector and network pairs that are confirmed to work, owned by the person who manages processor relationships.

  2. Deploy the network tokenisation service

    Your platform team deploys and configures the network tokenisation service that Hyperswitch calls to fetch tokens. Hyperswitch requires this service for the feature, and calls made without it are rejected with NetworkTokenizationServiceNotConfigured. Confirm the service endpoint and credentials with your Hyperswitch deployment team and record where the connection settings live in your environment. The step is done when the service runs in the same environment as the router and is reachable from it.

  3. Set the network and connector allow lists

    Update the configuration that defines which card networks and which connectors may use network tokens, using only the pairs confirmed in the first step. Keep changes in version control so reviewers can see exactly which networks and connectors were added. Confirm the setting names against the Hyperswitch network tokenisation documentation for your release, since configuration keys can change between versions. The step is done when the deployed configuration matches the reviewed file and the router has restarted or reloaded with the new values.

  4. Enable the flag on target profiles

    Network tokenisation is switched on per profile through the is_network_tokenization_enabled setting, which defaults to false. Enable it first on a single non-production profile, not across all profiles at once. Record the profile ID, the change author and the time of the change so you can reverse it cleanly. The step is done when a read of that profile returns the flag as enabled and profiles you did not target still return it as disabled.

  5. Run a test call without the configuration error

    Send a test payment through the enabled profile, using a card on a network and connector from your allow lists. Inspect the response and router logs for NetworkTokenizationServiceNotConfigured. Its absence alone does not prove a token was issued, so also check that the payment record shows the network token path was attempted. The step is done when the test completes without that error and the logs show the expected token request, which you should keep as evidence for your change record.

  6. Test fallback to the saved card

    Force a case where the token cannot be fetched, for example by using a card or connector pair you have deliberately left off the allow list, or by pointing a non-production environment at an unavailable token service. Confirm the payment proceeds through the saved-card path in the vault rather than failing outright. Hyperswitch documentation says the saved card should stay in the vault so this fallback can work, so verify that the card remains stored and usable afterwards. The step is done when the fallback payment succeeds and the card record is still present.

  7. Document the rollout and rollback path

    Write down the enabled profiles, allow lists, service version and the rollback steps, which are to disable the flag per profile and revert the configuration change. Ask your Hyperswitch deployment team to confirm which settings take effect without a restart in your release. Have an owner from payments operations sign off the test evidence from the previous steps. The step is done when the runbook is stored with the configuration and the sign-off is recorded.

How the vault fallback handles a token that cannot be used

When the business profile has network tokenisation enabled, a network tokenisation service is configured, and the card's network and connector pass the allow lists, Hyperswitch requests a network token for the saved card and uses it for the payment. The Hyperswitch network tokenisation docs describe this as the path used when the token is available. The vault record is kept alongside the token and remains the source for later attempts, so the card data is not discarded once a token exists.

  • Profile flag: confirm that is_network_tokenization_enabled is set to true on the profile that processes the payment, because the default is false.
  • Allow lists: check the card network and the network-token connector against your own lists. The example configuration allows Visa, American Express and Mastercard, and Adyen, Cybersource, Peach Payments and TrustPay as network-token connectors, but operators can change both lists.
  • Attempt records: in a sandbox, confirm which identifier appears on the payment attempt and in your logs when a token was used, so support can tell the token path from the vault path.
  • Decline handling: test how a token-based decline is returned and whether the attempt falls back to the vault path under your version's retry settings.

Check that the vault record stays valid after a token-based payment and that reconciliation output shows which path each payment used.

How a payment request moves through network tokenisation and the vault

The flow starts when the merchant's payment request reaches the Hyperswitch Router, which first checks that network tokenisation is enabled on the profile and that a network tokenisation service is configured. The Router then checks the card network and the connector against the allow lists before it asks the token service for a network token. If the token can be fetched and the connector accepts it, authorization goes ahead with the token. If either check fails, the Router falls back to the saved card in the vault, which is why the card should stay stored. Confirm each allow list entry in your own configuration before go-live.

Request path with the saved-card fallback branch to the vault.

Security and PCI scope considerations for network tokens

Network tokens add a second credential path next to the card vault, so every change to them touches data handling, access and audit. The cards below cover where sensitive values sit, who can change behavior, and how logs and keys are protected. Confirm the final scope with your QSA or assessor before enabling the feature in production.

Where card data and tokens live

Network token credentials and the stored card are held in different places, and both must be mapped in your data flow diagram. Confirm which component holds the PAN, which holds the network token and its cryptogram material, and whether either leaves your environment through the tokenisation provider. Map each store before the first live call, because the answer decides which systems fall in PCI DSS scope.

Network tokenisation docs

Who can change profile flags

The per-profile network tokenisation flag and the network and connector allow lists change which payments use network tokens. Limit write access to a small named group, and treat a change to these settings as a change to payment behavior. Check whether your Control Center roles separate people who can view configuration from people who can edit it.

Auditing configuration changes

Record who changed a profile flag or allow list, when, and what the previous value was. Route these events to a log store that the application team cannot edit. Confirm with your platform team whether Hyperswitch audit events cover these settings or whether you need to capture configuration changes at the deployment layer, such as in Git history for infrastructure code.

Keys and secrets for the token service

Credentials for the network tokenisation service and connector keys should come from a secrets manager, never from values committed to Helm charts or environment files. Plan rotation and restrict who can read them. Confirm where the encryption keys used by the card vault are held and whether the same custodians control both, since shared custody widens the set of people who can reach sensitive material.

PCI DSS scope by vault model

Your PCI DSS scope depends on the vault model you choose. With the native in-house vault, the merchant carries full responsibility for PCI DSS certification and data handling. With an external PCI vault provider or the SaaS vault, the scope of your own systems may shrink, but the integration still needs review. Ask your QSA to confirm which systems, networks and personnel fall in scope for each model you consider.

In-house PCI model docs

Logs that must not expose PANs or tokens

Application logs, request traces, error reports and analytics exports can all carry card numbers or token identifiers by accident. Test with a sandbox card and a test token, then search your log store for those values. Mask or drop card and token fields at the collector, and restrict who can read raw request bodies during incident work.

Questions teams ask before enabling network tokens

What does enabling network tokens cost and what drives the effort?

Enabling network tokens costs whatever the engagement is scoped at, and the effort is driven by the number of profiles, the card networks and connectors you enable, and the state of your existing vault and connector setup. Hyperswitch itself is open source under Apache 2.0, so the spend is on people and infrastructure, not licenses. Enablement is per profile, so a multi-profile or multi-tenant setup adds configuration and testing work for each one. Ask for a quote that lists profiles, networks, connectors, fallback tests and change approval as separate line items so you can see what is one-time and what recurs with upgrades and retesting.

How long does it take to scope a network token rollout?

Scope depends on what you are enabling and how much is already in place, so ask for a timeline tied to a written scope rather than a generic figure. The main drivers are whether a network tokenisation service is already configured for the profile, how many card networks and network-token connectors you plan to allow, whether the connectors you use are on the allowed list, and how long your change approval process takes. Each profile needs its own test pass, so the count of profiles often matters more than the count of networks.

What must our team supply before network tokens can be enabled?

Your team needs to supply connector credentials for each network-token connector you intend to use, confirmed network access from your environment to the token service, test cards that the networks and connectors accept in a sandbox, and a documented change approval for production. Also confirm which profiles will be enabled and who owns each one. Without these, enablement stalls at the first failed call, which Hyperswitch rejects with NetworkTokenizationServiceNotConfigured when the service is missing. Check the exact configuration keys and allowed lists with your Hyperswitch version in the Hyperswitch network tokenisation docs.

Can an in-house team enable network tokens without outside help?

An in-house team with experience running Hyperswitch in Kubernetes, managing secrets and configuring payment connectors can usually do it alone, provided it has the test cards, connector access and change approval in hand. The work is configuration and verification more than new code, but mistakes show up in live authorization paths. Outside help is most useful for the fallback test plan, for reviewing how the allow lists interact with your connectors, and for a second pair of eyes on the change record. Your decision should rest on who has time to run retests after each upgrade.

Do network tokens remove the need for the card vault?

No. Network tokens do not replace the card vault, and the Hyperswitch docs say a card should stay in the vault for fallback. The saved-card path can still charge the card when the token cannot be fetched or when the connector is not enabled for network tokens. Keeping the card vault in place also means you keep the PCI DSS obligations that come with stored card data, so the vault deployment model you choose still determines your compliance scope. Treat network tokens as an addition to the vault rather than a way to shrink it.

How do we test the vault fallback when a network token fails?

Test fallback by forcing each failure path on purpose: a token that cannot be fetched, a connector that is not enabled for network tokens, a network that is not on the allow list, and a profile where the flag is off. For each case, confirm that the payment proceeds through the saved-card path with the vault, that the attempt is logged correctly, and that no data is sent where it should not be. Run these tests in a sandbox with test cards before production, and repeat them after every configuration change. Keep the results as evidence for your change record and your compliance team.

How can a Hyperswitch upgrade affect network tokenisation?

An upgrade can change configuration defaults, allowed lists, or dependencies that network tokenisation relies on, so each upgrade needs a retest of the feature. Hyperswitch ships roughly monthly minor releases, and the GitHub releases page lists compatibility matrices for the Control Center and web client, so check those before moving versions. Earlier, v1.124.0 made Superposition a required dependency, which shows how a platform change can affect a working setup. Confirm the release notes for each version, re-run the fallback tests, and record the outcome before you promote the upgrade to production.

How the enablement work is scoped and tested

A scoped network tokenisation engagement starts by fixing the profile list. Network tokenisation is switched on per profile through the is_network_tokenization_enabled setting, which defaults to false, so the first decision is which business profiles should request network tokens and which should keep the current card path. Next comes the allow list work. The repository example allows Visa, American Express and Mastercard as card networks and Adyen, Cybersource, Peach Payments and TrustPay as network-token connectors. Those lists are examples, not your answer. We record which networks your acquirers actually issue tokens for and which connectors your contracts cover, and confirm each entry with the provider before it goes into configuration. The engagement also covers the network tokenisation service configuration inside your infrastructure, including the NetworkTokenizationServiceNotConfigured error that appears when a profile asks for tokens without a working service behind it.

Fallback testing is where most of the verification effort sits. Hyperswitch documentation says a card should stay in the vault so the saved-card path can take over when a token cannot be fetched or when a connector is not enabled for network tokens. We design test cases for each branch: token issued, token unavailable, connector not enabled, network not on the allow list and service unreachable. Each case is run in a non-production environment and the observed payment path is recorded. Your team should confirm that the vault retains the card for every profile where tokens are enabled, and that payment failures from these branches reach your support and on-call runbooks.

The output is documentation for your security and compliance reviewers. DeployOpen delivers the configuration baseline, the allow list decisions with their rationale, the test matrix with results, and the change record for each profile. This evidence helps your internal reviewers and any external assessor understand how the setting behaves, but DeployOpen does not issue audit reports, attestations or certifications. Ask in the written scope how retests are handled after Hyperswitch upgrades, since release notes for new versions can change dependencies that affect the tokenisation service.

How DeployOpen scopes and supports Hyperswitch network tokenisation

DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Hyperswitch network tokenisation setup. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts, and ongoing support is available as a retainer.

How we scope

  • Confirm which card networks and network-token connectors your Hyperswitch profiles need before any configuration changes.
  • Map the network tokenisation service you will run or connect, and who owns its configuration and credentials.
  • Document the vault fallback path so saved cards remain usable when a token cannot be fetched or a connector is not enabled.

How we build

  • Enable the profile flag in a non-production environment and confirm the service is configured before any test traffic.
  • Set the network and connector allow lists to match the agreed scope, and record each change in version control.
  • Test declined, unavailable and not-enabled token responses to confirm the vault fallback behaves as designed.

How we hand over

  • Deliver written configuration records covering flags, allow lists, service settings and the fallback logic.
  • Provide runbooks for enabling a new network or connector and for rolling back the change safely.
  • Walk your payments, security and compliance teams through the scope boundaries and the evidence they can review.

How we support

  • Review network tokenisation settings again whenever you upgrade Hyperswitch or change connectors.
  • Retest the fallback path after upgrades, since allow lists and connector behavior can change over time.
  • Offer ongoing support and continuous testing as a retainer, sized to your release and change cadence.

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.