bankingwith.

Mobile wallet app architecture: why your card data stays hidden

A contactless payment can be authorised in seconds without the merchant receiving the card’s primary account number, or PAN. That is the relevant security change in a modern mobile wallet app. It is not that card data has ceased to exist.

Spencer Merrick·Updated: July 27, 2026·11 min read

Mobile wallet app architecture: why your card data stays hidden

It has been displaced from the merchant-facing transaction and replaced with a constrained credential.

This distinction is routinely flattened into marketing language about “encrypted cards” or “virtual card encryption.” Neither phrase explains the architecture. The meaningful controls are EMV payment tokenisation, device binding, transaction cryptograms, user authentication, network-side token mapping, and a payment backend that does not turn a token into a reusable liability.

Digital wallet security is therefore not a property of the phone alone. It is an arrangement across the device, wallet provider, token service provider, card network, acquirer, issuer, and merchant processor. Any weak point in that chain remains operationally relevant.

EMV payment tokenisation is not encryption

The underlying card number is the PAN: the account identifier printed on a physical card and used across legacy card-payment flows. In a conventional card-not-present transaction, the PAN may move through a merchant’s checkout, payment gateway, processor, acquirer, and network. That architecture creates a broad handling surface.

EMV Payment Tokenisation replaces that PAN with an EMV Payment Token. The token is a surrogate credential. It can be provisioned for a particular device, merchant, channel, or payment scenario. It is not simply a PAN encoded in a different format.

Encryption and tokenisation solve different problems:

ParameterEncryptionEMV payment tokenisation
What happens to the dataThe original value is transformed into ciphertextThe PAN is substituted with a separate payment credential
Can the original value be recovered?Yes, with the appropriate cryptographic keyNot from the token alone; network-side systems map it to the funding account
Typical controlKey management and decryption accessToken-domain controls, lifecycle management, cryptograms, issuer authorisation
Merchant-facing resultA merchant may still be handling encrypted card dataMerchant and acquirer do not receive the PAN corresponding to the token in an EMV token transaction
Main failure modeKey compromise or improper decryption accessWeak provisioning, token misuse, inadequate domain restriction, or backend exposure

A token may look like a card number to systems built around card rails. That compatibility is deliberate. It allows issuers, acquirers, and merchant acquiring platforms to process a transaction without rebuilding every interface in the chain. But the apparent similarity should not be mistaken for equivalence.

For an eligible mobile wallet payment, the merchant receives a tokenised credential rather than the physical card number. The payment network validates the token, identifies the associated funding account, and routes the transaction for issuer authorisation. The PAN remains within the controlled parts of the card ecosystem.

The card number is not made invisible. It is removed from the part of the payment flow where merchants have historically accumulated it.

This is why tokenization in mobile apps has consequences beyond the handset. A merchant breach involving a properly tokenised mobile-wallet flow does not necessarily expose the PANs that would be useful in a different card-payment context. It may still expose names, order histories, delivery records, device identifiers, transaction metadata, or tokens. The scope of the breach changes. It does not disappear.

The device credential is deliberately narrower than the card account

Apple Pay illustrates the normal model. A supported iPhone uses a Secure Element, a hardware component intended to isolate sensitive payment operations from the general operating environment. After a card is provisioned, the wallet uses a device-specific account number rather than the physical card number for payments.

For app and web transactions, the Secure Element can create an encrypted payment object containing the device-specific account number, the transaction amount, and a one-time cryptogram. The payment network validates the token and maps it to the underlying card account for issuer authorisation.

The architecture is significant for three reasons.

First, the credential can be bound to a device. A payment token provisioned to one phone is not automatically transferable to another phone. Replacing a handset, resetting it, or removing a card from the wallet can trigger token lifecycle events that do not require cancellation of the underlying physical card.

Second, token usage can be restricted by domain. EMV specifications permit constraints to a merchant, device, or defined payment scenario. A credential intended for contactless use at a point of sale should not be assumed to function identically in a remote e-commerce environment.

Third, wallet payment flows add local authentication. Biometric verification, device passcodes, or other approved device controls are used before the payment credential is released for a transaction. This does not create an infallible identity system. It creates an additional authorisation gate before a network request is constructed.

The Secure Element is not the only possible design. The recurrent comparison is secure element vs HCE, or host card emulation. In a Secure Element model, payment credentials and cryptographic operations are handled in dedicated hardware. In an HCE model, some card-emulation functions may be performed through the device operating system and software, often with cloud-backed credential controls. The security model, provisioning process, and risk allocation can differ materially.

No universal claim should be made that every mobile wallet app uses one model. Wallet architecture varies by operating system, market, issuer support, card network, and local regulation. Some cards are not eligible for every tokenisation feature, virtual-number scheme, or contactless channel.

Google Wallet’s virtual-card model demonstrates another form of substitution. For eligible cards, a randomly generated virtual card number can replace the actual card number. The user may see only the last four digits in the wallet interface. This is not evidence that the original account has vanished. It is evidence that the wallet is presenting a different credential for a defined use case.

A payment token without a cryptogram would be an incomplete control

A token limits what is disclosed. It does not, by itself, establish that a specific payment request is fresh, approved by the device holder, or unchanged in transit. That job is performed by transaction cryptography and issuer-side validation.

For Apple Pay, the payment object includes a unique, one-time-use cryptogram. The cryptogram is generated for the transaction and is not meant to be replayed. A previously processed Apple Pay payment token cannot simply be submitted again for a second authorisation.

The mechanics are usually obscured because a tap looks simple. The underlying sequence is not:

1. The wallet selects the relevant device-specific payment credential and checks that the user has passed the required device authentication.

2. Transaction inputs, including the amount and merchant context where applicable, are used to create payment data and a unique cryptogram.

3. The terminal, app, or website passes the encrypted payment object through the merchant’s payment gateway and acquirer.

4. The card network validates the token and cryptographic data, resolves the token to the underlying funding account, and sends the authorisation request to the issuer.

5. The issuer applies its own fraud controls, account-status checks, velocity rules, and approval logic. Tokenisation does not override issuer risk policy.

6. The response returns through the same payment rails. Settlement and ledger reconciliation occur later under the ordinary card-network process.

A cryptogram should not be confused with a universal anti-fraud guarantee. Its practical value depends on the token domain, the quality of device authentication, network validation, merchant integration, issuer controls, and the exact attack being considered.

A compromised device, an account-takeover event during card provisioning, malware affecting merchant systems, or a fraudulent authorised purchase are not eliminated by the existence of a token. They are addressed by different layers, with varying effectiveness.

Tokenisation reduces the value of exposed credentials. It does not eliminate the value of the transaction data surrounding them.

This is also where a mobile payment backend becomes consequential. The wallet may generate protected payment data correctly, yet a merchant’s backend can still mishandle the encrypted token, log sensitive payloads, retain excessive metadata, or expose order and identity information. Security is lost less often at the near-field communication layer than in the ordinary systems attached to it.

PCI DSS scope is reduced, not erased

The claim that tokenisation makes a merchant “PCI compliant” is structurally wrong. PCI DSS compliance is not a label applied to a payment method. It is a continuing obligation tied to systems, processes, data flows, access controls, and validation requirements.

PCI Security Standards Council guidance is explicit on the central point: tokenisation can reduce the number of systems that handle PAN and may reduce assessment effort. It does not automatically remove an organisation from PCI DSS obligations.

In an EMV payment-token transaction, the merchant and acquirer do not receive the PAN corresponding to the token. That can substantially change the cardholder-data environment. It does not mean the merchant is free to ignore its payment integration, its payment gateway configuration, scripts running on checkout pages, access permissions, incident response procedures, or vendor relationships.

The distinction matters most in online and in-app payment flows. A merchant can receive encrypted payment data from a wallet and pass it to a processor. Depending on its integration, the merchant or payment service provider may also be able to decrypt the payment token for processing. The operational question is not whether a wallet button is displayed. It is which system can access which data, at which stage, and under whose keys.

Several compliance boundaries remain non-negotiable:

  • Sensitive authentication data must not be retained after authorisation, even if it is encrypted. This includes card verification codes and PIN or PIN-block data.
  • A tokenisation service must itself be assessed according to its role. A service that maps tokens to PANs occupies a far more sensitive position than a merchant that only receives the token.
  • If PAN is rendered unreadable through hashing, PCI DSS v4.x has specific cryptographic expectations. Ordinary or unsalted hashing is not a substitute for a compliant protection design.
  • Third-party scripts on payment pages can create exposure before tokenised data reaches the gateway. Payment-page integrity is not solved by the wallet protocol.
  • Logs, analytics tools, customer-support systems, and fraud platforms often become the unplanned destinations for payment-adjacent data. Those systems need separate scrutiny.

The practical benefit of a mobile wallet app is therefore not a blanket reduction in responsibility. It is a narrower and more manageable set of responsibilities, assuming the merchant has not recreated the risk elsewhere.

Where card data can still surface

The phrase “your card data stays hidden” is useful only if its boundary is stated. The full PAN is generally withheld from the merchant in a properly tokenised mobile wallet transaction. But payment-related data still moves through the system.

Merchants can receive a device-specific account number or token, transaction amount, authorisation result, time, order reference, and other payment metadata. Issuers and networks still need enough information to decide whether to authorise the transaction. Wallet providers must manage device enrolment and credential lifecycle. Acquirers and processors must reconcile authorisations, reversals, refunds, chargebacks, and settlement files.

That data can be commercially revealing even where it is not directly reusable as a card credential. A transaction record connected to an email address, shipping location, purchase history, and device identifier can be more useful for account takeover or social engineering than a single static payment token.

The token itself also should not be described as universally useless when stolen. Its usefulness is constrained by its domain and the need for valid cryptographic data, but the degree of constraint depends on implementation. A token tied to a specific device and a one-time cryptogram has a different risk profile from a stored network token used in recurring billing. Both may be called “tokens.” The control environment is not the same.

The same caution applies to virtual cards. A virtual card number may reduce exposure of the physical PAN in a particular channel. It is not automatically a single-use number, a disposable number, or a credential that cannot be charged again. Those properties depend on the issuer’s product design.

The hidden liability is architectural, not visual

Mobile wallets have improved card-payment containment. In the strongest implementation, the merchant-facing flow contains a device-specific token rather than the underlying PAN, a fresh cryptogram rather than a reusable payment instruction, and a locally authenticated action rather than a bare card number typed into a form.

That is a meaningful change to the risk model. It is not an exemption from risk.

The underlying card account remains active. The issuer still authorises the payment. The network still maps credentials. The merchant still processes an order. The acquirer still settles funds. Each party retains data, runs infrastructure, and can fail in ways unrelated to the physical card number.

The appropriate conclusion is narrower than the industry’s preferred version: a mobile wallet app can keep the PAN out of the merchant-facing transaction and materially reduce the damage from certain forms of credential exposure. It cannot make payment data disappear, make every token non-replayable in every context, or convert a weak payment backend into a secure one.

The residual liability is found in provisioning, key custody, processor integration, checkout scripts, data retention, and ledger reconciliation. That is less marketable than “your card stays hidden.” It is also the architecture that determines whether the claim holds.

FAQ

Does using a mobile wallet make a merchant automatically PCI compliant?
No. Tokenization can reduce the number of systems handling card data and simplify assessment, but merchants still have ongoing obligations regarding their payment integration, data retention, and security controls.
What is the difference between encryption and EMV payment tokenization?
Encryption transforms data into ciphertext that can be recovered with a key, whereas tokenization replaces the card number with a surrogate credential that cannot be reversed from the token alone.
Can a stolen mobile payment token be used to make fraudulent purchases?
The utility of a stolen token is constrained by its domain, device binding, and the requirement for a unique, one-time-use cryptogram, making it significantly less valuable than a static card number.
Why does a mobile wallet app need a cryptogram for payments?
A cryptogram ensures that a specific payment request is fresh and approved by the device holder, preventing a previously processed payment token from being resubmitted for a second authorization.
What happens to my card data if a merchant is breached while I use a mobile wallet?
The merchant will not have your physical card number, but they may still hold other sensitive information such as your name, order history, device identifiers, and transaction metadata.