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:

  1. Sign in to App Store Connect.
  2. Go to Users and Access.
  3. Select the Sandbox tab.
  4. Click Testers.
  5. Click the (+) button to add a new tester.
  6. Fill in the required fields: first name, last name, email address, and password.
  7. Select the country/region.
  8. 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.

  1. Go to Settings → [your name] (at the top).
  2. Scroll down and tap Sign Out.
  3. Confirm the full iCloud sign out.

Step 2 — Sign in with your sandbox tester account

  1. Go to Settings → Sign in to your [device].
  2. Enter the email and password of your sandbox tester account (created in App Store Connect).
  3. Complete verification if prompted.

Step 3 — Open the Wallet app

  1. From the home screen, open the Wallet app.
  2. Tap the + (Add) button in the upper-right corner.

Step 4 — Select the entry method

  1. Select Debit or Credit Card.
  2. 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

  1. Enter the card number, expiration date, and CVV.
  2. Tap Next.

Step 7 — Accept the terms and conditions

  1. Review and accept the terms.
  2. 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 NumberExpirationCID
37420 05569 9500312/281111
37420 05590 8100912/281111
37420 05605 8200312/281111
37420 07381 3800112/287777

American Express — United States

Card NumberExpirationCID
37273 57230 3200012/287777
37272 79248 5100712/287777
37272 67850 1100812/287777
37677 17299 2400312/281111
37677 47309 5200512/281111

Discover

Card NumberExpirationCID
6011 0009 9013 942401/30111
6011 0009 9013 944001/30111
6011 0009 9013 945701/30111
6011 0009 9013 946501/30111
6011 0009 9013 947301/30111
6011 0009 9013 948101/30111
6011 0009 9013 949901/30111
6011 0009 9013 950701/30111
6011 0009 9013 951501/30111
6011 0009 9013 952301/30111

JCB

Card NumberExpirationCVV
3540 5019 4979 480001/30111
3540 5019 4979 481801/30111
3540 5019 4979 482601/30111
3540 5019 4979 483401/30111
3540 5019 4979 484201/30111
3540 5019 4979 485901/30111
3540 5019 4979 486701/30111
3540 5019 4979 487501/30111
3540 5019 4979 488301/30111
3540 5019 4979 489101/30111

Mastercard

Card NumberExpirationCVC
5204 2452 4000 148801/30111
5204 2452 4000 149601/30111
5204 2452 4000 150401/30111
5204 2452 4000 151201/30111
5204 2452 4000 152001/30111

Visa

Card NumberExpirationCVV
4622 9431 2318 001112/2028111
4622 9431 2318 002912/2028222
4622 9431 2318 003712/2028333
4622 9431 2318 004512/2028444
4622 9431 2318 005212/2028555
4622 9431 2318 006012/2028666
4622 9431 2318 007812/2028777
4622 9431 2318 008612/2028888
4622 9431 2318 009412/2028999
4622 9431 2318 010212/2028000

China UnionPay — Credit

Card NumberCVVExpirationOTPPIN
6222 0000 1000 000310212/2032123456939393
6222 0000 1000 001110212/2032123456939393
6222 0000 1000 002910212/2032123456939393
6222 0000 1000 003710212/2032123456939393
6222 0000 1000 004510212/2032123456939393

China UnionPay — Debit

Card NumberNotes
6221 0000 1000 0009No CVV or expiration date required
6221 0000 1000 0017No CVV or expiration date required
6221 0000 1000 0025No CVV or expiration date required
6221 0000 1000 0033No CVV or expiration date required
6221 0000 1000 0041No 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 NumberExpirationCVC
5204 2452 4000 100901/30111
5204 2452 4000 101701/30111

Visa POS:

Card NumberExpirationCVV
4622 9431 2318 000312/2028111
4622 9431 2318 011012/2028111

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.