When you enrolled in Apple Pay, your card was assigned a unique device account number (DAN). When you make a purchase, Apple transmits the DAN for your card, along with a unique transaction-specific code, to the retailer.