Cards
Add to Apple Pay or Google Pay
Get the encrypted data Apple Pay or Google Pay takes to add a card to your user’s phone.
POST
Ask from your server when your user taps “Add to Apple Wallet” or “Add to Google Pay” in your app, and pass the answer to your app. The answer holds the card encrypted for the wallet, never the card number, and works for one add only. Add a card to Apple Pay or Google Pay walks through both phones.
The answer carries
Cache-Control: no-store. Apple’s nonce expires within a few minutes, so ask as soon as your app sends it.
Agentcard refuses a card that cannot go in a wallet before anything reaches the phone. A single-use card answers 409: