/1 How do Apple Pay and Google Pay handle sensitive card info? The diagram below shows the differences. Both approaches are very secure, but the implementations are different. To understand the difference, we break down the process into two flows.
506
9,558
617
39,522
/2 1. Registering your credit card flow 2. Basic payment flow
6
18
390
/3 1️⃣ The registration flow is represented by steps 1~3 for both cases. 𝐀𝐩𝐩𝐥𝐞 𝐏𝐚𝐲: It doesn’t store any card info. It passes the card info to the bank. Bank returns a token called DAN (device account number). iPhone then stores DAN into a special hardware chip.
6
65
5
633
/4 𝐆𝐨𝐨𝐠𝐥𝐞 𝐏𝐚𝐲: When you register the credit card with Google Pay, the card info is stored in the Google server. Google returns a payment token to the phone.
8
40
3
432
/5 2️⃣ When you click the “Pay” button on your phone, the basic payment flow starts. Here are the differences: 𝐀𝐩𝐩𝐥𝐞 𝐏𝐚𝐲: For iPhone, the e-commerce server passes the DAN to the bank.
4
27
375
/6 𝐆𝐨𝐨𝐠𝐥𝐞 𝐏𝐚𝐲: The e-commerce server passes the payment token to the Google server. Google server looks up the card info and passes it to the bank. In the diagram, the red arrow means the credit card info is available on the public network, although it is encrypted.

Sep 21, 2022 · 3:53 PM UTC

7
45
3
419
/7 👉 Over to you: Apple needs to discuss the DAN details with banks. It takes time and effort, but the benefit is that the credit card info is on the public network only once. If you are an architect and have to choose between security and cost, which solution do you prefer?
39
52
6
764
/8 I hope you've found this thread helpful. Follow me @alexxubyte for more. Like/Retweet the first tweet below if you can:
/1 How do Apple Pay and Google Pay handle sensitive card info? The diagram below shows the differences. Both approaches are very secure, but the implementations are different. To understand the difference, we break down the process into two flows.
Show this thread
50
73
510
Replying to @alexxubyte
Yes, it’s interesting. Local Storage is better than storage cloud information about credit card.
Replying to @alexxubyte
I believe there are more securities risks, for example Google knows all of your movements (who, where, how much) this information shouldn’t be saved. In Cost/benefits Apple wins.
Replying to @alexxubyte
Replying to @alexxubyte
This is not true. The app obtains an Opaque Payment Card value from the card issuer, which is an encrypted payload. Google stores the *token*, not the card information. On payment, the issuer matches the token on its backend.
Replying to @alexxubyte
What do you mean whit" is available in public network"? Unencrypted in plain text?
Replying to @alexxubyte
Apple is more safty. Google is more convenient. Apple users have to register Apple Pay again on different iOS devices. I prefer Google's solution, although I am an apple fan and only use iOS mobile devices.