Back to Blog Security · Payments · US

You Tap Your iPhone and Money Moves — Here's Every Millisecond of the Journey

Jul 22, 2026 10 min read Srikanth Badavath

Reading…
Person holding an iPhone near a payment terminal
Between the double-click and the terminal beep, your phone, a hardware chip, two financial networks, and your bank all coordinate — in under half a second.
  Apple Pay — Deep Dive
Your card number
never leaves your phone.
The merchant receives a one-time cryptographic token. Your real card stays locked inside a tamper-resistant chip. Here's how every piece works.
•••• 4821
Face ID ✓
500M+
Users
0.4 s
End-to-end
70+
Countries

I pay with Apple Pay probably a dozen times a week without really thinking about it. Double-click the side button, glance at the screen, hold the phone near the terminal — beep. Done. Genuinely faster than pulling a card out of my wallet.

But I started wondering: what just happened? In that half-second, my phone, some hardware chip I've never laid eyes on, a payment network, and my bank all coordinated a money transfer. And my actual card number was never part of the conversation.

That's strange when you sit with it. Here's the whole thing, broken down. (Note: Apple Pay is available in the US and 70+ other countries — this post uses the US credit card and payment network context throughout.)

How a Physical Credit Card Actually Works

A physical credit card is basically a master key to your bank account. That key is your Primary Account Number (PAN) — the 16-digit number printed on the front. (Unrelated to the Indian tax ID by the same name — in the card industry, PAN is standard ISO/IEC terminology for your card number.) Every time you tap, dip, or swipe at a US merchant, you're handing a copy of that key to a stranger: the cashier, the POS terminal, the payment processor, whoever ends up handling the receipt data downstream.

Physical Card
4532 •••• •••• 4821
SRIKANTH BADAVATH  ·  09/28
Apple Pay
Merchant receives:
4784 1209 8823 6641
+ one-time cryptogram: 9F26 4AC3
Device Account Number (DAN)

The EMV chip (that gold square) was supposed to fix the worst of this. Instead of blasting your raw PAN to a magnetic reader, it generates a one-time cryptogram proving the card is physically present — much harder to clone. But here's what nobody puts in the brochure: the PAN itself still travels to the terminal. The merchant's processor receives it. Their database often stores it. And if their systems get hit — Target in 2013, Home Depot in 2014, dozens of smaller retailers every year — your actual card number ends up in the wild.

Live: Physical Card at a POS Terminal
Watch what happens when you insert a chip card — your real PAN travels through the network
4532 •••• •••• 4821
SRIKANTH BADAVATH  ·  09/28
CHIP SLOT
READY
Press "Insert Card" to begin

Apple Pay takes the PAN out of the picture completely. The merchant's terminal never sees it. Not the processor, not the acquirer, not anyone on the other side of the counter. That's not a marketing claim — it's a technical fact enforced by hardware. Here's how it works.

The Target breach (2013) — 40 million cards in 20 days: Attackers loaded RAM-scraping malware onto POS terminals and harvested card numbers as they moved through memory in plaintext. The malware hid inside legitimate payment software — invisible to antivirus. With Apple Pay, there's no PAN in that memory at all. The only thing to scrape is a single-use cryptogram that was already spent before anyone could do anything with it.

Part 1 — NFC: How the Token Reaches the Terminal

Near Field Communication
13.56 MHz · ISO/IEC 14443 · ≤ 4 cm range · no internet needed on your phone
4532 Face ID ✓ SE iPhone NFC 13.56 MHz ≤ 4 cm READY POS Terminal

NFC sounds exotic but the physics are surprisingly simple. The terminal generates a small alternating magnetic field at 13.56 MHz — the same frequency used by building access cards and London's Oyster card. When your iPhone comes within 4 cm, that field induces a tiny current in the phone's NFC antenna, which powers the NFC controller and kicks off the data exchange. Your phone needs zero internet for this step. It's literally harvesting energy from the terminal's own field to complete the handshake — which is why Apple Pay works fine in airplane mode. The terminal's connection handles the network round-trip, not yours.

13.56 MHzSame frequency as building access cards and London Oyster
≤ 4 cm rangePhysical proximity is itself a security property
No cellular neededTerminal's connection does the network lookup

Part 2 — The Secure Element: A Vault on Your Chip

Most people don't know this chip exists. Inside your iPhone, physically separate from the main A-series processor, sits a dedicated chip called the Secure Element. It has its own CPU, its own encrypted storage, and its own operating system (JavaCard). iOS cannot access it. Apps definitely can't. Apple's servers can't either.

And here's the part I think is genuinely impressive: if someone physically disassembled your phone and probed the chip's pins directly, it would detect the intrusion and erase its own keys before giving anything up. The hardware self-destructs rather than talk.

Inside the Secure Element
A tamper-resistant chip that iOS itself cannot read
SE
JavaCard OS
AES-128/256
Secure Element
inside your iPhone
Device Account Number (DAN) — a 16-digit proxy card number provisioned by your bank during card setup. Your real PAN is never stored here.
Issuer cryptogram keys — AES keys provisioned by your bank. Used to generate transaction-specific codes. Only your bank can verify them.
Transaction counter — increments with every payment. Ensures each cryptogram is unique and prevents replay attacks.
Tamper detection — any physical attempt to read the SE causes it to erase its own keys. The hardware self-destructs before revealing secrets.

When you add a card to Wallet, here's what actually happens: Apple sends your card details to your bank. Your bank generates the Device Account Number and writes it directly into the Secure Element over an encrypted channel. Apple's servers never receive the DAN. Apple never sees the mapping. The only places that know "DAN 4784 1209 8823 6641 = your Visa card" are your bank and Visa's Token Service Provider — and that mapping never leaves those two systems.

Apple sees four digits of your card number. That's it. The same four shown in your Wallet app. The Secure Element provisioning happens over a direct encrypted channel between the SE and your bank — Apple is essentially a courier who delivers an envelope and never finds out what's inside.

Part 3 — Tokenization: What the Merchant Actually Receives

When you pay, the Secure Element doesn't just fire the DAN over NFC raw. It assembles a payment token from three ingredients:

That transaction counter is the clever part. It increments every single time you pay. The cryptogram is mathematically bound to DAN + this specific counter value + this exact dollar amount. If someone intercepted it and tried to replay it five seconds later at a different terminal, the bank would reject it instantly — the counter has already moved forward and the cryptogram no longer validates. You can't reuse an Apple Pay token. Architecturally impossible.

Card Flip: Real Card vs What the Merchant Sees
Click the button to see what the terminal actually receives
Your Physical Card
4532 •••• •••• 4821
SRIKANTH BADAVATH  ·  09/28
Merchant Receives
Secure Element · Token
4784 1209 8823 6641
cryptogram: 9F26 4AC3 B21E 7F44 D09A
valid for this transaction only
The 16-digit DAN looks like a card number but maps to your device, not your account.

The Apple Card — and Why Tapping Is Always Better Than Inserting

The physical Apple Card is a nice piece of titanium with no number on the front — intentionally. It's designed to be used through Apple Pay on your iPhone, not handed to someone. But here's the catch: if you do insert it into a terminal (the reader doesn't support NFC, or you hand it to a waiter at a restaurant), you're right back to the traditional credit card model. Your PAN travels. The security advantage evaporates completely. The titanium is just aesthetic at that point.

The protection lives in the phone — not the card.

Live: Apple Card at a Terminal — Tap vs Insert
The physical card sends your PAN. Your iPhone sends a token. Same terminal. Completely different security.
No number on front
Srikanth Badavath
Goldman Sachs
Apple Pay
Apple Card
Face ID ✓
Your iPhone
NFC
13.56 MHz
CHIP SLOT (not used)
READY
POS Terminal
Press "Tap to Pay" to simulate Apple Pay at the terminal

Part 4 — The Complete Transaction Flow

Now that the three layers are clear — NFC (how data moves), Secure Element (where keys live), tokenization (what actually gets sent) — here's the full chain from double-click to terminal beep.

Live: Apple Pay Transaction — Step by Step
Press Play to trace each hop in sequence
1
Double-click + Face ID / Touch ID
You double-click the side button. The TrueDepth camera maps 30,000+ infrared dots on your face and matches them to a mathematical model stored inside the Secure Enclave. This runs entirely on-device — no Apple server is contacted, no biometric data is transmitted.
0 – 30 ms
2
Secure Element generates the payment token
Biometric success signals the Secure Element via the Secure Enclave. The SE takes your DAN, increments the transaction counter, incorporates the payment amount, and signs everything with your bank's AES key — producing a dynamic cryptogram. This is the one-time payment token.
30 – 55 ms
3
Token transmitted via NFC
The SE passes the token to the NFC controller. The controller transmits it over the 13.56 MHz field to the terminal in roughly 10–20 ms. Your phone's checkmark animation fires immediately — the network round-trip hasn't started yet.
55 – 80 ms
4
Terminal → Acquirer → Card Network
The merchant's terminal wraps the token in a standard EMV authorisation request and sends it to the acquirer bank (the merchant's bank). The acquirer routes it to Visa, Mastercard, or Amex based on the DAN's BIN range — the same way a physical card tap would be routed.
80 – 180 ms
5
Token Service Provider detokenizes
The card network's Token Service Provider (Visa Token Service, Mastercard MDES, or Amex) validates the cryptogram and looks up DAN → real PAN in its secure vault. Only now does your actual card number exist anywhere in the transaction chain — and only at the TSP and your bank.
180 – 280 ms
6
Your bank authorises
Your issuing bank receives an authorisation request with your real PAN. It runs its checks: sufficient balance, fraud signals, velocity limits, card status. It sends back an authorisation code if everything passes. This bank-side check typically takes 80–150 ms.
280 – 380 ms
7
Approval returned — terminal beeps
The authorisation code travels back: bank → network → acquirer → terminal. The terminal displays ✓ and prints the receipt. Total elapsed: roughly 350–420 ms. The merchant's systems receive only the DAN and the approval code — your real card number is never in their database.
380 – 420 ms total
Press Play to trace the payment

The 420 Milliseconds, Broken Down

Where the Time Goes
Scroll into view to animate
0 – 30 ms
Face ID (on-device)
30 – 55 ms
SE generates token
55 – 80 ms
NFC transfer
80 – 180 ms
Terminal → Network routing
180 – 280 ms
TSP detokenizes DAN → PAN
280 – 380 ms
Bank fraud checks + auth
380 – 420 ms
Response back · terminal ✓

Credit Card vs Apple Pay — Security Comparison

Attack scenario Physical credit card Apple Pay
Merchant database breach Real PAN exposed and usable Only DAN exposed — device-bound, useless without cryptogram
Terminal malware (RAM scraping) PAN captured in plaintext during processing Only a spent cryptogram is in RAM — already invalid
NFC/contactless skimming PAN readable via NFC on most contactless cards DAN + single-use cryptogram — replay attack is impossible
Phone stolen (locked) N/A — card is separate Requires Face ID / Touch ID — attacker cannot pay
Phishing for card number PAN + CVV obtained → card can be used online DAN alone is useless online without a live SE-generated cryptogram
Merchant sees real PAN Yes, in every transaction No — merchant only sees DAN and approval code
Key Takeaways
  • A physical credit card sends your real card number (PAN) to the merchant's terminal in every transaction. If that terminal or its database is compromised, your card is at risk.
  • Apple Pay replaces the PAN with a Device Account Number (DAN) — a 16-digit proxy number stored in the Secure Element and mapped back to your real card only at the bank.
  • Every Apple Pay transaction generates a dynamic cryptogram tied to the DAN + a counter + the payment amount. It is valid for exactly one transaction. Replay attacks are architecturally impossible.
  • NFC transfers the token over electromagnetic induction at 13.56 MHz. No internet required on your phone — the lookup happens on the terminal's network.
  • The Secure Element is a physically separate tamper-resistant chip. iOS cannot read it. Apple cannot read it. Attempted physical extraction triggers self-erasure.
  • Face ID / Touch ID authentication runs entirely inside the Secure Enclave — a different isolated processor. No biometric data is transmitted or accessible to any app or server.
  • The entire journey — biometric auth, SE token generation, NFC transfer, card network routing, TSP detokenization, bank fraud checks, and approval — takes under 420 milliseconds.