Import saved cards from your current processor into Hyperswitch

The documented Hyperswitch card import runs through an AoC exchange and an encrypted CSV over SFTP. This page covers the required fields, what does not move cleanly, and the work a self-hosted vault adds.

On this page

Moving saved cards to Hyperswitch without re-collecting them

Saved cards can move from your current processor into Hyperswitch through the documented import path: the processor encrypts an export with a Hyperswitch public PGP key, the CSV travels over SFTP, and Hyperswitch returns updated customer and payment method reference IDs after import. The effort depends on your current processor's willingness to run the exchange, the quality of your stored data, and the vault model you choose for Hyperswitch. Start by asking your current processor whether it will produce an export in the required format and what it charges for that work, since that cost sits outside Hyperswitch. Then confirm the Hyperswitch data migration documentation against your processor's export capabilities before you commit to a date.

Plan the data check before the transfer. Each card record needs a card number, expiry month, expiry year and a payment_instrument_id that holds the processor token. Records for merchant-initiated transactions also need an original_network_transaction_id, so audit which saved cards back recurring billing and whether those network transaction IDs exist for them. The file must be UTF-8, comma-delimited, free of multi-line values, and must include billing details if AVS checks are enabled. Records that fail these rules will need correction at source or will be left out, so count them early.

Non-card payment methods such as SEPA, ACH, PayPal and Klarna are not covered by this self-service import. The Hyperswitch docs direct merchants to contact support for those, so open that conversation in parallel with the card work and do not assume the same file format will carry them. Confirm with your vault model owner where the imported card data will be stored and who holds the PCI DSS obligations for it, because a self-hosted in-house vault makes your organization responsible for that scope.

Which saved card data maps cleanly and which does not

This table compares the data your current processor holds for saved cards with the fields the documented Hyperswitch import expects. Read each row as a go or no-go check: rows marked as required must be present in your export, while conditional and non-card rows need a decision or a support request before you start.

Source dataHyperswitch import fieldMapping status
Card number (PAN)Card number, requiredMaps directly if the processor exports the full PAN in the encrypted CSV
Expiry month and yearExpiry month and expiry year, both requiredMaps directly; confirm the export uses separate month and year values
Processor token for the stored cardpayment_instrument_id (the PSP token), requiredMaps only if the token is exported; confirm it is the reference the new vault will accept
Customer and payment method referencesReturned by Hyperswitch as updated reference IDs after importDoes not map as input; plan to update your own records with the new IDs
Billing detailsMandatory when AVS checks are enabledConditional; missing billing fields can block cards if AVS is on, so confirm AVS settings first
Network transaction ID of the original paymentoriginal_network_transaction_id, required only for connector-agnostic merchant-initiated transactionsConditional; needed if you run recurring or stored-credential charges that must be routed without the original processor
SEPA, ACH, PayPal, Klarna and other non-card methodsNo self-service import documented; the docs direct merchants to contact supportNot mapped by this CSV; request a support path before migrating these methods

Documented import path and the parts it needs

The documented import is a chain of parts: an agreement between the two processors, a PGP key exchange, a CSV transfer over SFTP and reference IDs returned at the end. Each part has an owner and a failure mode, so the team should map them before scheduling any export.

AoC exchange between processors

The Attestation of Compliance (AoC) is the document each party uses to show its PCI DSS validation status. Before any export, confirm with the current processor that it is willing to release card data for import and that both sides hold a current AoC covering the transfer. Ask each party to name the person who signs off, and keep the AoC copies with the migration record. If either side cannot produce one, stop before the key exchange.

Hyperswitch import docs

Hyperswitch public PGP key

The current processor encrypts the entire export file with the Hyperswitch public PGP key before it leaves its environment, so the CSV is unreadable in transit. Your team needs to obtain the key from the Hyperswitch documentation or support, verify its fingerprint through a second channel, and confirm which key version the processor will use. Plan a key rotation check, because an export encrypted to a retired key will fail at import.

SFTP transfer of the encrypted file

The encrypted CSV moves from the processor to Hyperswitch over SFTP. Agree on the host, directory, account and file naming with both parties, and confirm who owns the transfer credentials and how they are rotated. Check that the transfer is logged on both sides and that the encrypted file is removed from any staging location once Hyperswitch confirms receipt. Test the path with a small dummy file first.

CSV format rules

The import file must be UTF-8, use commas as delimiters, end each record with a single newline, and contain no multi-line values. Empty fields stay empty rather than holding placeholders. Required card fields are the card number, expiry month, expiry year and payment_instrument_id (the processor token). If AVS checks are enabled, billing details become mandatory, so confirm that setting before export. Validate a sample file against these rules before the full run.

Network transaction IDs for merchant-initiated payments

The original_network_transaction_id field is required only for connector-agnostic merchant-initiated transactions, such as subscriptions or stored-credential charges that run without the customer present. Identify which saved cards back recurring billing before the export, and confirm with the processor that it can supply those IDs. Cards without this value can still be imported for customer-initiated use, but their recurring charges may fail, so decide how to handle them before go-live.

Updated reference IDs after import

After the import, Hyperswitch returns updated customer and payment method reference IDs. Your application, order records and reconciliation jobs must map the old processor references to these new IDs, or saved-card lookups will break after cutover. Store the mapping in a table you control, check that every imported card has a new ID, and reconcile counts between the source export and the returned file before switching checkout traffic.

Sequence from inventory to cutover for saved cards

This sequence moves saved cards from your current processor into a self-hosted Hyperswitch instance in controlled stages, so each import is tested, reconciled and cut over only after the reference IDs and authorization results check out.

  1. Inventory saved cards and tokens

    Your payments and security team lists every stored payment method by type, processor, network and whether it is used for merchant-initiated transactions. Card tokens, customer references and any network transaction IDs are recorded against each card. Cards that are not card payment methods, such as SEPA, ACH, PayPal or Klarna, are flagged separately, because the Hyperswitch docs direct those to contact support rather than a self-service import. The step is done when you have a count per payment method type and a list of which fields your current processor can export for each one. Confirm with your current processor which fields its export contains, and whether it will encrypt to a Hyperswitch public PGP key and deliver over SFTP.

  2. Map export fields to the import template

    The engineering team maps each column in the processor export to the Hyperswitch import fields: card number, expiry month, expiry year and payment_instrument_id (the PSP token). The original_network_transaction_id field is mapped only for connector-agnostic merchant-initiated transactions. The team also confirms the file format rules: UTF-8, comma-delimited, single newline line endings, empty fields left empty, no multi-line values, and billing details present if AVS checks are enabled. The output is a mapping document signed off by the payments lead. Confirm the current template and column names with the Hyperswitch docs and your support contact before the mapping is final.

  3. Run a test import in a non-production instance

    The team sets up the AoC exchange and PGP key exchange for the test environment, then sends a small batch of records from the processor over SFTP. The batch should include cards from each payment method type in scope and at least one merchant-initiated card with its network transaction ID. The import returns updated customer and payment method reference IDs. The step is done when the test batch imports without rejected rows and the returned IDs are stored in a test log. Confirm the non-production setup steps with Hyperswitch, since the self-hosted deployment guides on the self-hosting page cover the environment itself.

  4. Validate mapped fields and reference IDs

    Each test record is checked against the source. Card data is confirmed to match the expiry and token values, the returned customer and payment method reference IDs are matched back to the original customer records, and merchant-initiated records are checked for the presence of the network transaction ID. Rejected or mismatched rows are fixed in the mapping and reimported. Access to the card data during validation is restricted to the people who are approved for it under your PCI DSS scope decisions. The step is complete when the validation log shows zero unexplained mismatches for the test batch and the reference ID map is approved by the payments lead.

  5. Run the parallel period with imported cards

    New payments are routed through Hyperswitch while the imported cards are checked against authorizations. For each merchant-initiated and returning-customer payment, the team compares the outcome on the Hyperswitch side with the expected result from the original processor records. Failed authorizations are reviewed to decide whether the cause is the imported data, the connector configuration or the card itself. The output is a dated authorization comparison report with each exception and its root cause. Confirm with your processor and acquirer how long the parallel period should run, because no timing is documented in the facts for this import.

  6. Cut over and monitor the first live period

    After the parallel comparison shows no unresolved exceptions, the team moves stored-card traffic to Hyperswitch in a planned change window with a rollback path back to the original processor configuration. Monitoring covers authorization rates, declines by reason code, webhook delivery and reference ID lookups during the first live period. The step is complete when the sign-off record names the approvers, the change ticket is closed and the monitoring baseline is saved for the next review. Confirm the rollback steps with your Hyperswitch deployment team and check the vendor's current guidance for the version you run.

  7. Decommission the old export path

    Once the cutover is stable, the team removes the SFTP account, the PGP key pair used for the old export and any scheduled export jobs at the processor. Access to the export files is revoked, and any copies held in storage or on engineers' machines are securely deleted under your retention policy. The team records each removal with a date and an owner in the change log. The step is done when the export path is closed in writing and the card data inventory reflects the new location of every stored card. Confirm with your processor which export artifacts it retains and how it deletes them on its side.

How the card export flows from processor to Hyperswitch

The flow starts at your current processor, which encrypts the card export with the Hyperswitch public PGP key before sending it over SFTP. The encrypted CSV crosses the trust boundary into your self-hosted Hyperswitch environment, where the card data is stored in the card vault. Hyperswitch then returns updated customer and payment method reference IDs, which you must map back into your records. Check that the file was encrypted to the correct key and that the reference IDs reconcile before you treat the import as complete.

Card data moves encrypted from the processor into the self-hosted vault, which returns reference IDs.

What changes when you self-host the vault

In the self-hosted model with the native Hyperswitch Vault, the cards you import are stored in the Hyperswitch card vault (locker) that you run in your own infrastructure. The Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling in this model. The import therefore becomes part of your cardholder data environment from the first row, and the encrypted CSV, the SFTP landing point, the import host and the vault database all fall inside the scope your assessor will review.

  • Import host scope: The server that decrypts the PGP file and calls the import process handles clear card numbers, so it needs the same controls as the vault itself.
  • Key handling: You must define who holds the PGP private key used to decrypt the export, how it is rotated and where it is stored, and who can read the vault encryption keys.
  • Assessment evidence: Keep records of the import date, row counts, the reconciliation of imported references, and who ran each step, since these become evidence in your PCI DSS assessment.
  • Retention and deletion: Decide how long the source CSV and any staging copies remain on disk, and delete them through a documented procedure once the import is verified.
  • Assessment type: Confirm with your acquirer or the brands which validation applies to you, such as a Report on Compliance or a Self-Assessment Questionnaire with an Attestation of Compliance.

Before the import, confirm with your QSA how the import path is scoped and which requirements your evidence must cover.

How PCI DSS v4.0.1 applies to the import

PCI DSS v4.0.1 is the only active version of the standard, so any import plan should be checked against it. The PCI Security Standards Council (PCI SSC) maintains PCI DSS, and v4.0.1 was published on 11 June 2024 as a limited revision of v4.0. v4.0 was retired on 31 December 2024. The import moves full card numbers and expiry dates, so the team should treat the cardholder data environment as in scope from the first export until the data is confirmed in Hyperswitch and the source copies are destroyed under the processor's procedures. Before any file leaves the current processor, confirm with your acquirer or Qualified Security Assessor (QSA) which assessment type you fall under: a Report on Compliance (ROC) completed by a QSA, or a Self-Assessment Questionnaire (SAQ). Either one ends in an Attestation of Compliance (AOC). A certificate does not count as validation.

The PCI SSC publishes the standard and the assessment templates, but it does not enforce compliance. The individual payment brands decide which entities must validate and run any enforcement programs, so your acquirer is the party to ask about your obligations and deadlines. Ask them also how the SAQ or ROC scope changes once Hyperswitch self-hosting is in place, because the Hyperswitch docs state that under the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling. That shifts the assessment work to your team rather than to a vault provider.

Also decide how each requirement will be met. PCI DSS v4.x lets an entity use the defined approach, which follows the stated control as written, or the customized approach, which meets the stated objective in a different way. The customized approach is open only to entities with robust security and risk management, and it requires documented evidence that the alternative meets the objective. For the import, the controls most likely to need that evidence are the PGP key handling, the SFTP transfer path and the access to the decrypted CSV on the Hyperswitch side. Record the chosen approach for each before the first test file is sent, so the assessor sees the decision made in advance.

What drives the effort and the cost of the import

The import is mostly a data-quality and evidence exercise, not a code change. Card count, network transaction IDs, processor count, the vault model and the evidence your assessors expect each move the work up or down, so settle them in writing before a quote is compared.

Card count and data quality

Effort grows with the number of saved cards and with how clean the export is. Check that every row has a card number, expiry month, expiry year and a payment_instrument_id, that the file is UTF-8 with comma delimiters and single newlines, and that no field spans multiple lines. Failed rows usually come back as a rework loop with the outgoing processor, so ask for a sample file and a reject count before the full run.

Import format docs

Network transaction IDs

Original network transaction IDs are required only for connector-agnostic merchant-initiated transactions. If your subscriptions or recurring billing depend on them, the export must carry them, and cards without them need a different path for future charges. Ask the current processor whether it can supply these fields before the scope is fixed, because a missing field changes what the import can support.

Number of processors

Each source processor has its own export format, PGP key exchange, SFTP access and token semantics. Two processors roughly double the reconciliation and testing work compared with one. Confirm how many source processors hold saved cards, whether any tokens are not portable, and whether each one will run its own export.

AVS and billing details

Billing details become mandatory when address verification checks are enabled. If your current setup relies on AVS, confirm which billing fields the export contains and whether they are complete for every card. Gaps here can cause declines after go-live that look like processor problems but come from the data.

Vault model and PCI evidence

The vault model decides how much of the cardholder data environment you own. In the self-hosted in-house model, the merchant carries full PCI DSS responsibility, which means a Report on Compliance or Self-Assessment Questionnaire with an Attestation of Compliance, plus evidence for every requirement. An external or SaaS vault shifts part of that work. Ask a QSA or your acquirer to confirm the scope before the import plan is written.

In-house PCI model

Non-card methods and Control Center SSO

SEPA, ACH, PayPal, Klarna and other non-card methods are not covered by a self-service import, so they need a support request each. Separately, the Control Center accepts OIDC only, with no SAML, JIT or SCIM provisioning, and users must be invited first. Plan identity setup and the operator invitation list as their own work items, and ask any partner to quote them separately.

SSO setup docs

Questions buyers ask before importing saved cards

What drives the cost of importing saved cards into Hyperswitch?

The cost depends mostly on how much of the import you run yourself and how much work sits with your processor, your compliance team and any partner you hire. The main components are the export and encryption work on the processor side, the preparation and validation of the CSV against the required fields, the SFTP transfer and key exchange, reconciliation of the returned customer and payment method reference IDs, and the Hyperswitch deployment that receives the data. Ask any quote to separate these items, state who is paid for each, and say whether the work is one-time or recurs. Volume of saved cards, data quality, and the number of processors involved are the factors that most often move the effort up or down.

How long does a saved card import take?

The documented process does not give a duration, so no reliable timeline can be quoted from it. The elapsed time is set by the processor's export schedule, the readiness of your Hyperswitch environment, the number of test imports you run, and how long your team needs to validate the returned reference IDs before you switch traffic. Ask your processor how long it needs to produce an encrypted export, and ask any partner to tie its timeline to a written scope with named milestones. Plan a test import on a non-production environment before the real run.

What does the import need from our team?

Your team needs people who can own four areas: the Hyperswitch environment that receives the data, the processor relationship that produces the export, key handling for the PGP exchange, and the data checks that confirm each record is usable. The CSV must be UTF-8, comma-delimited, use single newline characters, leave empty fields empty, and contain no multi-line values. Billing details are mandatory when AVS checks are enabled. Your engineers will also need to map each saved card to its reference IDs and decide how those IDs flow into your checkout and customer records afterward.

Can we run the saved card import ourselves?

Yes, the documented process is written for merchants to run, provided they have a working Hyperswitch deployment, a processor willing to produce the export, and staff who can handle PGP keys and SFTP transfers securely. Teams that have not handled card data exports before often find the file format checks and the encryption steps the hardest parts. An outside partner can take on planning, scripting, validation and documentation under a written scope, and DeployOpen implements and hardens self-hosted platforms inside your own infrastructure. Whichever path you choose, confirm who signs off on the scope of cardholder data that moves.

What happens to SEPA, ACH, PayPal and other non-card payment methods?

The card import process does not cover non-card payment methods. For SEPA, ACH, PayPal, Klarna and other non-card methods, the Hyperswitch docs direct merchants to contact Hyperswitch support rather than documenting a self-service import. Plan these methods as a separate workstream. Ask Hyperswitch support which methods it can move, what data it needs, and whether any customer action is required, and record the answer in your migration plan before you retire the old integration.

Does our current processor have to cooperate with the import?

Yes. The documented process depends on your current processor encrypting the export with the Hyperswitch public PGP key and sending the CSV over SFTP, so the import cannot proceed without its participation. Confirm early whether your processor will produce this export, in what format, on what schedule, and whether it charges for the export. Ask for the processor's written confirmation of the payment_instrument_id values, since these PSP tokens are required fields. If the processor will not cooperate, your options narrow and the plan needs to change before work begins.

Which fields are required, and when do network transaction IDs matter?

Every card record needs the card number, expiry month, expiry year and payment_instrument_id, which is the PSP token. The original_network_transaction_id field is required only for connector-agnostic merchant-initiated transactions, such as recurring or subscription charges that you start without the customer present. If you run merchant-initiated payments and want them to stay connector-agnostic, make sure your processor exports these IDs. Without them, those cards may not be usable for those transactions, so test them before go-live.

How does PCI DSS responsibility change with the vault model?

The vault model you choose sets how much of your environment falls under PCI DSS. In the self-hosted, in-house PCI model, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling, which includes the card vault, its keys and the systems around it. With self-hosted orchestration and an external PCI vault provider, such as VGS or Tokenex, the vault sits with that provider, which narrows your scope but adds a third party to your assessment. PCI DSS is maintained by the PCI Security Standards Council, which does not enforce compliance; the payment brands decide who must validate. Assessments are documented on a Report on Compliance or a Self-Assessment Questionnaire with an Attestation of Compliance, and certificates are not recognized as validation. Confirm your scope with your acquirer and a Qualified Security Assessor before the import.

How DeployOpen scopes and delivers the card migration

The work starts with a fixed-scope written agreement that names the source processor, the card inventory, the target Hyperswitch deployment and the vault model before any export is requested. DeployOpen plans and implements self-hosted open-source platforms inside the client's own infrastructure, so the agreement should state which cloud accounts, clusters and networks are in scope, who holds the Hyperswitch public PGP key and SFTP endpoint, and who controls the processor side of the AoC exchange. Scope, deliverables and timelines are agreed in writing before work begins, and a quote follows from that written scope. Ask for the agreement to list the card count, the presence or absence of merchant-initiated transactions that need original_network_transaction_id, and any non-card methods such as SEPA or ACH, since the Hyperswitch docs direct those to support rather than self-service import.

Scoping comes before any file moves. DeployOpen's first working session maps the inventory and the vault model. Hyperswitch documents three self-hosted vault models, and the choice decides whether your team carries full PCI DSS responsibility for stored card data, which the Hyperswitch docs state for the in-house model. Confirm with the client's compliance lead which model applies, then check the CSV fields against the source export: card number, expiry month, expiry year and payment_instrument_id. Validate the file format as well, meaning UTF-8, comma delimiters, single newlines, empty fields left empty and no multi-line values. Billing details must be present if AVS checks are enabled, so that dependency is reviewed before the first import rather than discovered in production.

Test imports run in a non-production stack first. DeployOpen runs sample imports against a separate Hyperswitch environment, reconciles the returned customer and payment method reference IDs against the source records, and records every rejected row with its reason. Test results and rejected-row handling become part of the delivered evidence. For assessors, DeployOpen prepares that evidence, including configuration records, import logs and data-flow descriptions, but it does not issue audit reports, attestations or certifications. Those come from the client's Qualified Security Assessor or internal assessment process under the PCI SSC templates. Optional retainers can cover the ongoing support and upgrades that follow a go-live, if the client wants continuing help with the stack.

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.