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.
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
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 |
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