Apple Pay Sandbox Testing
The sandbox environment is a great way to test offline implementation of Apple Pay for apps, websites, and point of sale systems. This document provides an overview of the sandbox environment, details on how to get started, and general support to test your Apple Pay transactions.
Sandbox
The Apple Pay sandbox environment allows merchants and developers to test their implementation of Apple Pay with test credit and debit cards. Currently the sandbox supports Apple Pay testing for:
- Australia
- Canada
- France
- Hong Kong
- Ireland
- Italy
- Japan
- New Zealand
- Russia
- Singapore
- Spain
- Switzerland
- Taiwan
- United Kingdom
- United States
Note: It is also important to test Apple Pay in your production environment. Real cards must be used in the production environment. Test cards will not work.
Getting Started
You'll need the following to test Apple Pay in the sandbox:
- iPhone 6 or later, iPad mini 3 or later, iPad Air 2, iPad Pro, or Apple Watch
- iTunes Connect sandbox tester account
- Supported test credentials
Create a Sandbox Tester Account
To create a sandbox tester account, follow these steps:
- Sign in to iTunes Connect.
- On the homepage, click Users and Roles.
- Click Sandbox Testers.
- Select “+” to set up your tester accounts.
- Complete the Tester Information form and click Save.
- Sign out of your Apple ID on all testing devices and sign back in with your new sandbox tester account.
For more information on how to create a sandbox tester account, see Setting Up User Accounts.
Important: If you mistakenly use a sandbox tester account to sign in to a production environment, like iTunes, on your test device instead of your test environment, the sandbox account becomes invalid and can’t be used again. If this happens, create a new sandbox tester account with a new email address.
Adding a Test Card Number
To get started, add a test card to Wallet:
- Make sure to sign out of iCloud and sign into your test device with your sandbox tester account.
- Go to Wallet and tap Add Credit or Debit Card.
- Using your test credential, follow the steps to add a new card using manual entry.
- After your card has been added, you may begin testing.
Note: To provision test cards on your device and use the sandbox, you will need to make sure that your device’s region is set to a country that supports Apple Pay.
Sandbox Testing
With your iPhone, iPad, or Apple Watch, you can use the Apple Pay sandbox to pay within your app and website. The Apple Pay sandbox environment allows merchants and developers to test Apple Pay before or after implementation. Developers don’t have to use their personal production cards for testing. Merchants or your PSP can test whether they’re able to decrypt the transaction-specific payment load.
Note: Your sandbox test transaction will decline pre-fulfillment as the test key will not match your production key.
Apple Pay Supported Apps and Websites
- Click or tap the "Buy with Apple Pay” or “Apple Pay” buttons.
- Check your billing, shipping, and contact information to make sure they’re correct. If you want to test paying with a different test card, tap > Next to your card.
- If you need to, enter your billing, shipping, and contact information so you won’t need to enter it again.
- Place your finger on Touch ID or enter passcode, or for web you can confirm the transaction on your Apple Watch. After your payment information passes successfully, you’ll see a checkmark on the screen.
Test Cards for Apps and the Web
Test card numbers (FPAN, CVV, CVC, Expiration Date) from the payment networks are listed below and can be used on supported devices to test within the Apple Pay sandbox environment.
Note:
- FPAN and DPAN expiration dates do not need to match.
- American Express test cards can only support device regions that are set to the United States.
- FPAN: 3499 569590 41362
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 561538 91398
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 563102 56071
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 562866 52212
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 561547 79576
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 565797 73972
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 564139 77177
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 567268 99159
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 560648 23746
Expiration Date: 12/2022
CID: 1111 - FPAN: 3499 568649 80175
Expiration Date: 12/2022
CID: 1111
- FPAN: 6011 0009 9446 2780
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9458 9319
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9475 4889
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9502 9935
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9548 9295
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9551 2914
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9556 1499
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9557 7610
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9606 5037
Expiration Date: 11/2022
CID: 111 - FPAN: 6011 0009 9631 8741
Expiration Date: 11/2022
CID: 111
- FPAN: 5204 2477 5000 1471
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2477 5000 1505
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2477 5000 1497
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2477 5000 1489
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2477 5000 1463
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2452 5000 1496
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2452 5000 1512
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2452 5000 1504
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2452 5000 1488
Expiration Date: 11/2022
CVC: 111 - FPAN: 5204 2452 5000 1470
Expiration Date: 11/2022
CVC: 111
- FPAN: 4761 1200 1000 0492
Expiration Date: 11/2022
CVV: 533 - FPAN: 4761 3497 5001 0326
Expiration Date: 11/2022
CVV: 851 - FPAN: 4761 2099 8001 1439
Expiration Date: 11/2022
CVV: 569 - FPAN: 4761 2622 6000 4228
Expiration Date: 11/2022
CVV: 940 - FPAN: 4051 0693 0220 0121
Expiration Date: 11/2022
CVV: 693 - FPAN: 4761 3699 8032 0253
Expiration Date: 11/2022
CVV: 002 - FPAN: 4622 9431 2005 4839
Expiration Date: 11/2022
CVV: 322 - FPAN: 4761 2297 0015 0465
Expiration Date: 11/2022
CVV: 854 - FPAN: 4180 6200 7023 0189
Expiration Date: 11/2022
CVV: 112 - FPAN: 4123 4000 7332 0224
Expiration Date: 11/2022
CVV: 989
Test Cards for Point of Sale Systems
Retailers can use the sandbox to do simple terminal offline tests to make sure Apple Pay transactions are working in their PoS terminals before they enable NFC functionality.
Test card numbers (FPAN, CVV, CVC, Expiration Date) from the payment networks are listed below so you can test within the Apple Pay sandbox environment.
Note: This does not replace Payment Network contactless certification. These FPANs can only be used for terminal offline beep tests using Apple Pay after completing Payment Network certification.
| Network | FPANs | MagStripe Contactless | EMV Contactless |
|---|---|---|---|
| Amex | 3499 562866 52212 Exp Date: 11/2022 CID: 1111 |
● | |
| 3499 567268 99159 Exp Date: 11/2022 CID: 1111 |
● | ||
| Discover | 6011 0009 9606 5037 Exp Date: 11/2022 CID: 111 |
● | ● |
| 6011 0009 9631 8741 Exp Date: 11/2022 CID: 111 |
● | ● | |
| MasterCard | 5204 2477 5000 1471 Exp Date: 11/2022 CVC: 111 |
● | ● |
| 5204 2452 5000 1488 Exp Date: 11/2022 CVC: 111 |
● | ● |
Feedback and Questions
Have feedback? Send it to Apple Pay Support. Have additional questions? Join the conversation. Post questions and search for answers at Apple Developer Forums.