Apple Pay Sandbox testing
This section describes how to configure the Apple Pay sandbox environment to test your integration before going to production. The Apple Pay sandbox is a testing environment that uses test credit and debit cards to simulate real transactions without actual charges.
Supported Countries in Sandbox
The Apple Pay sandbox environment is available in the following countries:
- Australia
- Canada
- China mainland
- France
- Ireland
- Italy
- Japan
- New Zealand
- Russia
- Singapore
- Spain
- United Kingdom
- United States
Prerequisites
To test in the Apple Pay sandbox environment you need:
- An iPhone 6 or later (or a device compatible with Apple Pay).
- A sandbox account in App Store Connect (see section: Create a Sandbox Account).
- The test credentials listed in the sections below.
Create a Sandbox Account in App Store Connect
Follow these steps to create your sandbox tester account:
- Sign in to App Store Connect.
- Go to Users and Access.
- Select the Sandbox tab.
- Click Testers.
- Click the (+) button to add a new tester.
- Fill in the required fields: first name, last name, email address, and password.
- Select the country/region.
- Click Create.
Adding a Test Card to the Apple Pay Wallet
Step 1 — Sign out of iCloud on the device
Apple Pay sandbox requires the device to be signed in with a sandbox tester account, not your production Apple ID.
- Go to Settings → [your name] (at the top).
- Scroll down and tap Sign Out.
- Confirm the full iCloud sign out.
Step 2 — Sign in with your sandbox tester account
- Go to Settings → Sign in to your [device].
- Enter the email and password of your sandbox tester account (created in App Store Connect).
- Complete verification if prompted.
Step 3 — Open the Wallet app
- From the home screen, open the Wallet app.
- Tap the + (Add) button in the upper-right corner.
Step 4 — Select the entry method
- Select Debit or Credit Card.
- Choose Enter Card Number Manually (instead of using the camera).
Step 5 — Enter the test card details
Use one of Apple’s official test card numbers listed in the Test Cards section.
Step 6 — Complete the card registration
- Enter the card number, expiration date, and CVV.
- Tap Next.
Step 7 — Accept the terms and conditions
- Review and accept the terms.
- Tap Agree or Continue.
Step 8 — Verify the card was added
The card will appear in your Wallet. You can now use it for sandbox test payments.
Apple Pay Test Cards
American Express — United Kingdom
| Card Number | Expiration | CID |
|---|---|---|
| 37420 05569 95003 | 12/28 | 1111 |
| 37420 05590 81009 | 12/28 | 1111 |
| 37420 05605 82003 | 12/28 | 1111 |
| 37420 07381 38001 | 12/28 | 7777 |
American Express — United States
| Card Number | Expiration | CID |
|---|---|---|
| 37273 57230 32000 | 12/28 | 7777 |
| 37272 79248 51007 | 12/28 | 7777 |
| 37272 67850 11008 | 12/28 | 7777 |
| 37677 17299 24003 | 12/28 | 1111 |
| 37677 47309 52005 | 12/28 | 1111 |
Discover
| Card Number | Expiration | CID |
|---|---|---|
| 6011 0009 9013 9424 | 01/30 | 111 |
| 6011 0009 9013 9440 | 01/30 | 111 |
| 6011 0009 9013 9457 | 01/30 | 111 |
| 6011 0009 9013 9465 | 01/30 | 111 |
| 6011 0009 9013 9473 | 01/30 | 111 |
| 6011 0009 9013 9481 | 01/30 | 111 |
| 6011 0009 9013 9499 | 01/30 | 111 |
| 6011 0009 9013 9507 | 01/30 | 111 |
| 6011 0009 9013 9515 | 01/30 | 111 |
| 6011 0009 9013 9523 | 01/30 | 111 |
JCB
| Card Number | Expiration | CVV |
|---|---|---|
| 3540 5019 4979 4800 | 01/30 | 111 |
| 3540 5019 4979 4818 | 01/30 | 111 |
| 3540 5019 4979 4826 | 01/30 | 111 |
| 3540 5019 4979 4834 | 01/30 | 111 |
| 3540 5019 4979 4842 | 01/30 | 111 |
| 3540 5019 4979 4859 | 01/30 | 111 |
| 3540 5019 4979 4867 | 01/30 | 111 |
| 3540 5019 4979 4875 | 01/30 | 111 |
| 3540 5019 4979 4883 | 01/30 | 111 |
| 3540 5019 4979 4891 | 01/30 | 111 |
Mastercard
| Card Number | Expiration | CVC |
|---|---|---|
| 5204 2452 4000 1488 | 01/30 | 111 |
| 5204 2452 4000 1496 | 01/30 | 111 |
| 5204 2452 4000 1504 | 01/30 | 111 |
| 5204 2452 4000 1512 | 01/30 | 111 |
| 5204 2452 4000 1520 | 01/30 | 111 |
Visa
| Card Number | Expiration | CVV |
|---|---|---|
| 4622 9431 2318 0011 | 12/2028 | 111 |
| 4622 9431 2318 0029 | 12/2028 | 222 |
| 4622 9431 2318 0037 | 12/2028 | 333 |
| 4622 9431 2318 0045 | 12/2028 | 444 |
| 4622 9431 2318 0052 | 12/2028 | 555 |
| 4622 9431 2318 0060 | 12/2028 | 666 |
| 4622 9431 2318 0078 | 12/2028 | 777 |
| 4622 9431 2318 0086 | 12/2028 | 888 |
| 4622 9431 2318 0094 | 12/2028 | 999 |
| 4622 9431 2318 0102 | 12/2028 | 000 |
China UnionPay — Credit
| Card Number | CVV | Expiration | OTP | PIN |
|---|---|---|---|---|
| 6222 0000 1000 0003 | 102 | 12/2032 | 123456 | 939393 |
| 6222 0000 1000 0011 | 102 | 12/2032 | 123456 | 939393 |
| 6222 0000 1000 0029 | 102 | 12/2032 | 123456 | 939393 |
| 6222 0000 1000 0037 | 102 | 12/2032 | 123456 | 939393 |
| 6222 0000 1000 0045 | 102 | 12/2032 | 123456 | 939393 |
China UnionPay — Debit
| Card Number | Notes |
|---|---|
| 6221 0000 1000 0009 | No CVV or expiration date required |
| 6221 0000 1000 0017 | No CVV or expiration date required |
| 6221 0000 1000 0025 | No CVV or expiration date required |
| 6221 0000 1000 0033 | No CVV or expiration date required |
| 6221 0000 1000 0041 | No CVV or expiration date required |
Point of Sale (POS) Test Cards
These cards are used to test behavior on physical terminals (offline rejection beep):
Mastercard POS:
| Card Number | Expiration | CVC |
|---|---|---|
| 5204 2452 4000 1009 | 01/30 | 111 |
| 5204 2452 4000 1017 | 01/30 | 111 |
Visa POS:
| Card Number | Expiration | CVV |
|---|---|---|
| 4622 9431 2318 0003 | 12/2028 | 111 |
| 4622 9431 2318 0110 | 12/2028 | 111 |
Frequently Asked Questions (FAQ)
Are there special decline codes for Apple Pay transactions? No, because the transaction travels to the card networks through the same card flow, and the same existing decline codes apply.
Are there maximum or minimum transaction amounts? No, there are no specific amount limits imposed by Apple Pay.
Does it work from mobile applications? No. Currently, the functionality is only available for purchases using web browsers.
Does domain registration need to be done in UAT (testing) and Production? Yes, Apple requires the domain to be validated in both environments in order to process payments correctly.
Does 3DS authentication apply to Apple Pay transactions? Apple Pay transactions do not require 3DS because when the card is registered in the wallet, the process is authorized by the Issuer.
Can I use sandbox cards in production? No. Sandbox cards are exclusively for the Apple Pay test environment. Real cards must be used in production.
Chile
Colombia
Ecuador
Peru