Who decrypts Apple Pay tokens in Hyperswitch, and why it matters
The team running a self-hosted Hyperswitch stack has to decide who decrypts the Apple Pay payment token: Hyperswitch, the payment service provider (PSP) or the merchant. The choice determines which party holds Apple Pay certificates and keys, how much of the payment data path your environment touches, and therefore how much PCI DSS scope you carry. The Hyperswitch Apple Pay docs describe three decryption paths for in-app and web transactions: Hyperswitch decryption, PSP decryption and merchant decryption. Decide this before any certificate or processor work starts, because each path asks for different setup from you and from your processor.
Hyperswitch decryption means Hyperswitch performs the decryption, so your deployment holds the Apple Pay material and the processing logic that goes with it. PSP decryption moves that step to your processor, which usually simplifies what you run in-house but shifts configuration and approvals into the processor relationship. Merchant decryption leaves the work with your own systems, which gives the most control and the most responsibility. The docs also describe a web-only path, Hyperswitch decryption for web transactions without an Apple merchant ID, which removes the merchant ID requirement for that channel. Confirm in the Apple Pay docs which combinations of channel, decryption path and processor are supported before you commit.
Before you pick an option, ask your processor which decryption paths it accepts, what it requires from you for each, and who must submit Apple Pay certificates. Then check which of your teams would own certificate renewal and key handling for the chosen path. The exact setup steps, prerequisites and any Apple-side requirements are set out in the Apple Pay docs and should be verified there and with your processor, not inferred from this summary.
What you need before choosing a decryption option
Each decryption option depends on a different mix of platform, processor and Apple inputs. Settle these inputs first, because they decide which options are open to you and who signs off on certificates and PCI scope.
A self-hosted Hyperswitch deployment
Confirm which Hyperswitch version and deployment path your team runs, since the decryption options are configured through the Hyperswitch connector and Control Center. Check that the Apple Pay settings you plan to use exist in your release and that the stack is in a state you can change. If you run Hyperswitch Router with Superposition or other required services, include them in the check. Ask your platform team who owns configuration changes and who can roll them back.
Apple Pay docsApple Pay enablement with your processor
Each option depends on whether your processor has enabled Apple Pay for your merchant account and supports the decryption mode you want. Confirm with the processor which modes it supports, whether it needs its own Apple Pay certificates, and what it requires from you. Ask for the approval steps and their expected lead time in writing, because they sit outside your control.
Domain verification for web payments
Web Apple Pay transactions require the payment domain to be verified with Apple before the button can appear. Plan the domain list for each storefront, subdomain and environment, including staging. Confirm with Apple and your processor how verification files are hosted and how they are kept in place across deployments, and who receives the verification alerts.
An Apple merchant ID where required
Decryption options that process in-app or web payments through a merchant-owned decryption path need an Apple merchant ID and its certificates. The web-only option without an Apple merchant ID is a different path with different limits. Confirm with Apple whether your business needs a merchant ID for each channel you plan to support before you commit to an option.
Certificate and key owners
Name one owner for each certificate and private key: the Apple Pay merchant identity certificate, any processor certificate and the keys used to decrypt payment data. Each owner needs a renewal calendar, a secure storage location and a documented rotation step. Without named owners, an expiring certificate can stop Apple Pay checkout in production with no clear escalation path.
PCI DSS scope review
The option you pick changes whether your systems handle decrypted payment data, which affects your PCI DSS scope. Ask your QSA or compliance lead to review the planned data flow before work starts. Confirm with your processor how it describes its responsibilities for decryption, and record that answer as evidence for your assessment.
How the three decryption options differ in the token flow
The diagram starts with an Apple Pay token from the wallet and passes it through checkout to a decision: who decrypts it. Hyperswitch, the PSP or the merchant can own that step, and web transactions without an Apple merchant ID form a separate branch. Each branch then reaches the PSP for authorization. Check which party holds the Apple Pay certificates and keys for each option, and which systems handle decrypted card data, since that determines PCI DSS scope. Confirm these details against the Hyperswitch Apple Pay docs and your PSP's requirements before choosing.
Decision path showing which party decrypts the Apple Pay token and where PCI scope sits.
What each decryption owner means for certificates and PCI scope
With Hyperswitch decryption, your self-hosted Hyperswitch deployment receives the Apple Pay payload and decrypts it. The Apple Pay material, the decryption step and the resulting card data all run inside infrastructure you control, so your team owns the operational side of the wallet.
- Certificates: The merchant obtains the Apple Pay certificate material and supplies it to the Hyperswitch configuration, and the merchant owns renewal and rotation.
- Keys: Private keys sit in your environment, so they belong under the same key custody and encryption controls you apply to the card vault.
- Decrypted data: Card data is decrypted inside your deployment before it goes to the processor, so it is present in your stack in cleartext.
- PCI scope: Your stack handles card data, so it is in scope. The Hyperswitch docs state that in the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling.
Confirm with Hyperswitch which certificate and key formats your release expects, and confirm with your processor that it accepts Hyperswitch-decrypted payloads. See the Hyperswitch Apple Pay docs for the supported flow.
With PSP decryption, your processor decrypts the Apple Pay payload. The processor holds the decryption certificates and keys, and Hyperswitch routes the encrypted payment onward. Your team's work shifts toward processor onboarding and domain setup.
- Certificates: The processor manages the Apple Pay certificates and keys used for decryption, so your team does not maintain that material for this option.
- Setup: You register your Apple merchant identity with the processor and complete domain verification on your checkout domains.
- Decrypted data: The card number is decrypted at the processor, so it does not appear in your Hyperswitch deployment.
- PCI scope: Your exposure to card data is smaller than with the other options, but scope still depends on how the rest of your stack handles payment data. Ask the processor for its PCI DSS documentation and its responsibility matrix.
- Dependency: The option works only with processors that support it for your region and flow. Confirm support for each processor in your routing setup before you commit.
Ask the processor in writing which Apple Pay flows it decrypts and which approvals it requires before go-live.
With merchant decryption, your organization decrypts the Apple Pay payload in its own code or service and then passes the result onward. This option gives you the most control and places the most obligations on your team.
- Certificates: Your team generates, stores, rotates and revokes the payment processing certificate and its private key.
- Build: You build and operate the decryption service, the key storage and the handoff into Hyperswitch or the processor API.
- Decrypted data: Cleartext card data exists in your decryption service and any system that touches it, so every such system enters scope.
- PCI scope: This option carries the widest scope. Under the in-house model described in the Hyperswitch docs, the merchant carries PCI DSS responsibility, so isolate the decryption service, restrict access and document each control.
- Maintenance: Your team keeps the decryption logic current with Apple's requirements and tests each change against known payloads.
Before choosing this option, ask your security and compliance leads whether the added scope is acceptable and whether the team can keep the service patched and monitored over time.
The Hyperswitch docs describe a web-only path in which web transactions are processed using Hyperswitch decryption without an Apple merchant ID. It removes the merchant identity setup from the web flow, but it does not remove your card data obligations. It applies to web transactions only, so in-app payments are a separate decision.
- Scope of use: This path covers web checkout. Confirm whether any in-app flow in your product needs an Apple merchant ID.
- Certificates: Because no Apple merchant ID is registered for this path, your team does not manage the merchant identity certificate for it. Confirm the exact certificate and key arrangement with Hyperswitch for your release.
- Decrypted data: Decryption happens in your Hyperswitch deployment, so decrypted card data is present in your stack in the same way as the Hyperswitch decryption option.
- PCI scope: Scope is comparable to Hyperswitch decryption. Where the in-house PCI model applies, the self-hosted in-house PCI model states that the merchant carries PCI DSS responsibility.
- Coverage: Confirm which processors and Apple Pay web flows your region supports under this path.
Before relying on this path, get Hyperswitch's written confirmation of how it handles the Apple Pay web session and which processors accept the resulting payments.
How to configure the chosen Apple Pay decryption path
This sequence takes a team from the decryption choice to a verified Apple Pay flow in the sandbox, with each step closed by a check that shows which path processed the payment. It keeps certificate work limited to the option you selected.
Record the decryption choice per payment method
Before touching any configuration, write down which decryption path applies to each Apple Pay case you need: in-app, web with a merchant ID, and web without an Apple merchant ID. Confirm the option for each combination in the Hyperswitch Apple Pay documentation, since the docs describe Hyperswitch, PSP and merchant decryption for in-app and web flows, and a Hyperswitch decryption option for web without an Apple merchant ID. Assign an owner for the decision in your payments and security teams. The step is done when a signed-off table lists each payment method, channel and decryption path.
Select the decryption option in Hyperswitch
In the Control Center, open the Apple Pay configuration for the relevant connector and payment method, then set the decryption option that matches your table. Save the change in the sandbox environment first, and keep a record of the configuration version or export so the setting can be reviewed later. Ask your Hyperswitch administrator who has permission to change this setting, because it determines which party handles payment token data. The step is done when the saved setting matches the table from the previous step.
Complete processor-side enablement
Confirm with your processor that Apple Pay is enabled on your merchant account for the decryption path you selected. Processors often need their own approval before they accept decrypted or pass-through Apple Pay data, and the requirement differs by option. Request written confirmation of the enabled payment methods, the supported channels and any credentials the processor expects. The step is done when the processor confirms enablement in writing for each path in your table, and the credentials are stored in your secrets manager rather than in configuration files.
Set up domain verification for web
For each web domain that will show Apple Pay, complete domain verification as Apple requires and make the verification file available at the path your web team serves. Check that the domain used in the checkout matches the verified domain exactly, including subdomains. Confirm the verification with the Hyperswitch Apple Pay documentation and with Apple's current requirements, since these may change. The step is done when each production and sandbox domain shows as verified and a button renders in a test browser on that domain.
Configure certificates only where the option requires them
Work through the table and identify which rows depend on a merchant-held Apple Pay payment processing certificate or merchant identity. Only those paths need certificate creation, storage and renewal tasks, so leave the others untouched. For any merchant-decryption path, store the private key and certificates in a controlled secrets store, record their expiry dates and assign a renewal owner. The step is done when every certificate needed by your chosen paths is installed in the sandbox, its expiry is recorded, and no certificate is present for a path that does not use one.
Run sandbox test transactions for each path
Execute one test payment for each row of your table, covering in-app, web with merchant ID and web without merchant ID where you use it. Use the sandbox test cards and Apple test setup described in the Hyperswitch documentation. For each payment, check the Hyperswitch payment record and the processor dashboard to see which party decrypted the token and whether the authorization succeeded. Record the transaction identifiers. The step is done when each path shows a successful authorization and the decryption party in the logs matches the option you set.
Verify logs, failures and rollback before live traffic
Test at least one declined or failed case per path, such as an expired certificate in a non-production copy or an unverified domain, and confirm that the error reaches your logs and alerting with enough detail to identify the decryption party. Document a rollback step that reverts the decryption option and disables the affected payment method. Ask your processor and Hyperswitch administrators to review the records. The step is done when failure paths produce identifiable errors and the rollback has been tested in the sandbox.
Promote the configuration to live traffic
Repeat the configuration steps in production using the same signed-off table, with production credentials and verified production domains. Run a small set of live test payments under controlled conditions, following your processor's guidance on live testing, and check each one against the decryption path it should use. Keep the sandbox test record with the change ticket. The step is done when live test payments show the expected decryption path for every row, and the configuration matches the reviewed table.
How certificates, keys and token data move between parties
The party that decrypts an Apple Pay token holds the key material needed to turn it into usable payment data, so your choice of decryption option decides where certificates and private keys sit. With Hyperswitch decryption, the certificates and keys must be configured in your self-hosted deployment, so your team stores and protects them in your infrastructure. With PSP decryption, the processor holds that material and your deployment receives the result through the processor's flow. With merchant decryption, you hold the material and the processor receives data it can use only after your side has handled it. The Hyperswitch Apple Pay docs describe these paths, but the certificate names, file formats and expiry handling for each one should be confirmed in writing with your processor.
Under the options where you hold key material, the merchant carries the operational duties. Someone must own the certificates and private keys, record their expiry dates, and run a rotation before they lapse, because an expired certificate stops decryption for every Apple Pay transaction routed through it. Store private keys in an encrypted secret store with restricted access and a named custodian, and keep backups under the same controls. Ask the processor which certificate types it requires for each option, who issues and renews them, how long a rotation takes, and whether it can run a test transaction after rotation. Record these answers in your runbook before go-live so that a renewal does not depend on one engineer's memory.
Decrypted token data is the sensitive part of the flow, so decide early which components may see it and which fields may appear in logs, traces, error reports and webhooks. Application logs, reverse proxy logs and observability tooling should never capture decrypted card values, and your webhook consumers should receive only the fields they need. Check the Hyperswitch log configuration and the webhook payloads for each option in a sandbox, then trigger a declined and a failed decryption to see what each one writes. Confirm with the processor which fields its webhooks return and whether any of them carry data that belongs in your cardholder data environment. Redaction rules at the log shipper are a useful second layer, but they do not replace keeping the data out of the logs at the source.
Which party holds each Apple Pay responsibility
This table maps who owns each Apple Pay task under Hyperswitch decryption, PSP decryption, merchant decryption and the web-only option without an Apple merchant ID. Read each row as a question you need answered before choosing, then check the column that matches your planned option. The main takeaway is that the decryption choice moves certificate work and PCI DSS scope to a different party, so confirm each cell with your PSP and Juspay before you commit.
| Responsibility | Hyperswitch decryption | PSP decryption | Merchant decryption |
|---|---|---|---|
| Apple merchant ID and payment processing certificate | Confirm whether your setup needs an Apple merchant ID for in-app transactions | Usually held by the PSP, confirm with them | Held by you, created and renewed by your team |
| Decrypting the Apple Pay payment token | Hyperswitch decrypts the token in your self-hosted stack | The PSP decrypts the token on its side | Your own service decrypts the token |
| Domain verification for web Apple Pay | Confirm the domain file and verification steps in the Apple Pay docs | Confirm with the PSP which domain steps they require | You host and maintain the verification file |
| Processor approval for decryption | Your processor must approve decryption at Hyperswitch, confirm this first | Usually covered by the PSP relationship, confirm scope | Confirm what your acquirer requires for raw token handling |
| PCI DSS scope from decrypted data | Decrypted card data passes through your Hyperswitch deployment | Smaller scope if the PSP handles decrypted data, confirm with your QSA | Largest scope, because your systems see decrypted card data |
| Key rotation and certificate expiry | Your team monitors certificates in the Hyperswitch deployment | PSP manages rotation, confirm notice periods | Your team tracks rotation and expiry dates |
| Web-only option without an Apple merchant ID | Available for web transactions without an Apple merchant ID, confirm limits | Not applicable in the same way, confirm with PSP | Not the typical path, confirm before planning |
| First-line support escalation | Hyperswitch community or your integrator, then Apple as needed | PSP support first, then Apple as needed | Your internal team first, then PSP and Apple |
Security controls for Apple Pay decryption in your environment
Whichever party decrypts Apple Pay tokens, the decryption keys, certificates and token payloads become sensitive assets that someone must protect. The cards below cover where those assets sit under each option, how to separate wallet setup from payment operations, and how to keep token data out of logs and out of people's hands.
Restrict access to keys and certificates
Under Hyperswitch or merchant decryption, your team holds or controls the Apple Pay payment processing certificate and private key material, so access to the secrets store, the Kubernetes secrets and the deployment pipeline becomes part of your decryption control. Under PSP decryption, the same material sits with the processor, and your job shifts to confirming who on the processor side can rotate it. Ask who can read, export and rotate each secret, and record the answer per option.
Separate wallet setup from payments
Configuring Apple Pay merchant identifiers, domains and processor credentials in the Control Center is a different job from refunding payments or reviewing transactions. Where the Control Center allows it, give wallet configuration to a small group and keep daily payment operations with separate roles. This limits the damage a compromised operator account can do to the decryption setup itself.
Control Center SSO docsLimit admin roles and sign-in paths
The Control Center supports single sign-on through OpenID Connect only, and roles are managed inside Hyperswitch rather than mapped from your identity provider. That means every change to a wallet or certificate setting must be traced to a named invited user. Keep the number of admin accounts small, review them on a schedule you define, and confirm how an offboarded user's access is removed, since there is no SCIM provisioning to do it for you.
Log access to decryption configuration
Record who viewed, changed or rotated Apple Pay settings and who triggered a decryption-related operation, and send those records to a store your security team controls. Confirm which events the Hyperswitch deployment logs natively, which your infrastructure logs capture, and which you must add. Logs are only useful if someone reviews them against the change process, so name the reviewer.
Keep token data out of application logs
Encrypted Apple Pay payloads and decrypted token values should never appear in router logs, scheduler logs, error traces or observability backends. Test this with a sample transaction in each decryption option, then search the log pipeline for payload fields. Check log level settings in production, because debug output is where sensitive values most often leak, and confirm that retention and access rules for logs match the sensitivity of the data they might contain.
Verify controls before go-live
Turn the chosen option's controls into a checklist: key access list, role inventory, log events, log scrubbing tests and certificate rotation owner. Walk through it with the security and compliance teams before the first live transaction, and repeat it after each Hyperswitch upgrade or change to wallet configuration. Keep the signed checklist with your PCI DSS scope documentation so the decision and its controls can be reviewed together.
Why Apple Pay transactions fail after go-live
This table lists the failures most often seen after Apple Pay goes live in a self-hosted Hyperswitch setup, with the likely cause, the check to run and the fix for each. Read it as a triage list: start with the row that matches the symptom, confirm the cause in your own configuration, then apply the fix before retesting the affected flow.
| Failure | Likely cause | Check and fix |
|---|---|---|
| Web payments fail at the Apple Pay sheet | Domain verification was not completed for the production domain, or the verified domain differs from the checkout domain. | Confirm the domain file is served at the exact checkout host over HTTPS, then rerun verification for each domain that loads the Apple Pay button. |
| Web payments fail without an Apple merchant ID | The chosen option needs an Apple merchant ID, or the ID is missing or entered for a different merchant account than the one in the connector. | Compare the merchant ID in Apple's developer account with the value in the Hyperswitch or PSP configuration, then correct the mismatch and retest. |
| Hyperswitch decryption declined by the processor | Processor approval for Hyperswitch decryption was never granted, or it was granted for a different processor account or environment. | Ask the processor to confirm in writing that Hyperswitch decryption is enabled for the live merchant account, then repeat a live test transaction. |
| Decryption errors after a period of normal operation | The Apple Pay payment processing certificate or merchant identity certificate has expired, or a renewed certificate was uploaded to the wrong place. | Check expiry dates for every certificate in use, renew any that are close to expiry, and confirm the active certificate matches the one tied to the merchant ID. |
| Only some transactions decrypt | Mixed setup: some flows use Hyperswitch decryption, others use PSP or merchant decryption, and one of them lacks the required keys or certificates. | Map each payment method and channel (in-app, web) to its decryption option, then verify the credentials each option needs for that channel. |
| Apple Pay works in test but not in production | Sandbox and production use different merchant IDs, certificates or processor credentials, and one set was not promoted. | Review the environment settings side by side, confirm every production credential is set, and run a live transaction after each change. |
| Transactions decline after a configuration change | A certificate, merchant ID or connector setting was changed without retesting the other decryption paths that share it. | Keep a change log for Apple Pay credentials and run a smoke test on web and in-app flows after every change, including the upgrade window. |
Questions buyers ask before choosing an Apple Pay decryption option
Which Apple Pay decryption option should we choose?
Choose based on who already holds Apple Pay certificates and processing agreements, and how much card-adjacent data your team is willing to handle. Hyperswitch documents three options for in-app and web transactions: Hyperswitch decryption, PSP decryption and merchant decryption, plus a web-only option using Hyperswitch decryption without an Apple merchant ID. If your processor already decrypts Apple Pay tokens well and supports your flows, PSP decryption is usually the simplest starting point. Merchant decryption gives you the most control but moves the most work onto your team. Confirm the exact prerequisites for each option in the Hyperswitch Apple Pay docs before you commit.
Does the web-only option need an Apple merchant ID?
No. The Hyperswitch Apple Pay docs describe a web transaction option that uses Hyperswitch decryption without an Apple merchant ID. That makes it the lighter path when you only need Apple Pay on the web and do not want to register merchant identity with Apple yourself. It does not cover in-app transactions, which the docs list under the other options. Confirm with Hyperswitch and your processor which flows, regions and payment methods this option supports for your business before you rely on it.
How does each option change our PCI DSS scope?
The option determines which party handles decrypted payment data, and that party's systems fall into your scope analysis. With PSP decryption, the processor performs decryption and your environment should receive only tokens. With merchant decryption, your systems receive and decrypt the payment token, which generally expands the environment you must assess. Hyperswitch decryption sits between these, depending on where your Hyperswitch deployment runs. Ask your QSA to review the data flow for each option, and check how your Hyperswitch deployment and card vault model affect the result.
What drives the effort of setting up Apple Pay decryption?
Effort depends mainly on the option you pick and how many channels you run. The main drivers are the Apple certificate and merchant identity work, domain verification for each web domain, processor approvals that decryption at Hyperswitch requires, and the connector configuration in the Control Center. Each additional flow (in-app, web, multiple regions) adds testing and sign-off. Cost is driven by who performs each step, so ask a partner to split the quote into certificate work, configuration, testing and handover. Any duration estimate should come from your written scope, not from a general figure.
What must our team provide for an Apple Pay decryption setup?
Your team typically supplies access to the Apple Developer account, decision-makers who can approve certificate and merchant identity steps, control over the domains that will host web payments, and the credentials for your processor account. You also need access to the self-hosted Hyperswitch environment, the Control Center, and the team that owns your security and compliance review. Name a single owner for Apple-side tasks, because certificates and domain verification often block the schedule more than the code does.
Can our own engineers configure Apple Pay decryption without a partner?
Yes, if your team has access to the Apple Developer account, your processor account and the self-hosted Hyperswitch Control Center, and has someone who can handle certificate lifecycle and domain verification. The work is mostly configuration and coordination rather than custom code. The risks are certificate expiry, misconfigured domains and missing processor approvals, which show up as declined or failed wallet payments. A partner is useful when you need a documented runbook, a tested rollback and a review of your PCI scope decision. Confirm your team's skills against the written steps in the Hyperswitch docs before you start.
What goes wrong most often with Apple Pay decryption?
The most common failures come from certificate and domain issues rather than the payment logic. Expired or mismatched certificates, unverified domains, and processors that have not approved decryption at Hyperswitch stop transactions before they reach authorization. Scope surprises are also common when a team picks merchant decryption without planning who operates the systems that handle decrypted data. Plan certificate renewal dates, test each web domain and each channel in a sandbox, and record which party owns each failure mode before go-live.
How DeployOpen works on this
DeployOpen starts by deciding who decrypts Apple Pay tokens in your Hyperswitch setup, because that choice sets the certificates, processor approvals and PCI DSS scope you inherit. We then build, test and document the chosen option inside infrastructure you control, and we support it after go-live through an optional retainer.
How we scope
- We confirm which Apple Pay flows you need: in-app, web, or web without an Apple merchant ID.
- We compare Hyperswitch, PSP and merchant decryption against your processor contracts and certificate ownership.
- The written, fixed scope lists the decryption option, the processor approvals required and the evidence you will receive.
How we build
- We deploy and configure the Apple Pay settings in your self-hosted Hyperswitch stack for the chosen decryption path.
- We set up domain verification and the certificate and key handling that the selected option requires.
- We test in-app and web payment flows end to end, including decline, refund and webhook paths, before any live traffic.
How we hand over
- You receive configuration records, a decryption option decision note and a summary of which systems hold certificates and keys.
- We document the PCI DSS scope impact of the chosen option so your compliance team can review it with its assessor.
- Runbooks cover certificate renewal, processor credential rotation and the steps to change decryption option later.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, Hyperswitch upgrades and continuous testing are available as a retainer.
- Before each Hyperswitch upgrade, we can retest Apple Pay flows so wallet payments keep working after the change.

