Sandbox Testing - Apple Pay (2024)

Sandbox

The ApplePay sandbox environment allows merchants and developers to test their implementation of ApplePay with test credit and debit cards. Currently the sandbox supports ApplePay testing for:

Note: It is also important to test ApplePay 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 ApplePay in the sandbox:

  • iPhone 6 or later, iPadmini3 or later, iPadAir2, iPadPro, or AppleWatch
  • AppStoreConnect sandbox tester account
  • Supported test credentials

Developer Account and Website

To successfully establish an ApplePay session with ApplePay servers, your AppleDeveloper account needs to be configured for ApplePay. This includes registering a merchant ID, creating certificates, and verifying your website domain if you plan to implement ApplePay for the web. Make sure to complete the steps below before testing your ApplePay implementation with ApplePay servers.
Learn more about configuring your environment

  • Register a Merchant ID in your developer account.
  • Create your Payment Processing Certificate or obtained a CSR from your PSP.
  • Create your Merchant Identity Certificate (ApplePay for web only).
  • Register and verify a Merchant Domain (ApplePay for web only).
  • Verify that all webpages hosting an ApplePay button are HTTPS and your web server supports TLS1.2.

Create a Sandbox Tester Account

To create a sandbox tester account, follow these steps:

  1. Sign in to App Store Connect.
  2. On the homepage, click UsersandAccess.
  3. Under Sandbox, click Testers.
  4. Click “+” to set up your tester accounts.
  5. Complete the tester information form and click Invite.
  6. Sign out of your AppleID 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 AppStoreConnect Help: Create a sandbox tester account.

Adding a Test Card Number

To get started, add a test card to Wallet:

  1. Make sure to sign out of iCloud and sign into your test device with your sandbox tester account.
  2. Go to Wallet and tap Add Credit or Debit Card.
  3. Using your test credential, follow the steps to add a new card using manual entry.
  4. 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 or region that supports ApplePay.

Testing Apple Pay on Your Apps and Websites

With your iPhone, iPad, or AppleWatch, you can use the ApplePay sandbox to pay within your app and website. The ApplePay sandbox environment allows merchants and developers to test ApplePay 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.

Learn how to use Apple Pay

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 ApplePay 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.
  • These are the latest FPANs as of January 2023.
American Express
  • 3717 377570 42005
    Expiration Date: Any
    CID: 1111
  • 3717 377724 91005
    Expiration Date: Any
    CID: 1111
  • 3717 377950 34006
    Expiration Date: Any
    CID: 1111
  • 3717 377973 91008
    Expiration Date: Any
    CID: 1111
  • 3717 378036 01002
    Expiration Date: Any
    CID: 1111
  • 3717 378435 73005
    Expiration Date: Any
    CID: 1111
  • 3717 378581 47000
    Expiration Date: Any
    CID: 1111
  • 3717 378509 18002
    Expiration Date: Any
    CID: 1111
  • 3717 378596 43007
    Expiration Date: Any
    CID: 1111
  • 3717 378599 75003
    Expiration Date: Any
    CID: 1111
Discover
  • FPAN: 6011 0009 9446 2780
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9458 9319
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9475 4889
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9502 9935
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9548 9295
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9551 2914
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9556 1499
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9557 7610
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9606 5037
    Expiration Date: 11/2024
    CID: 111
  • FPAN: 6011 0009 9631 8741
    Expiration Date: 11/2024
    CID: 111
Mastercard
  • 5204 2452 5046 0049
    Expiration Date: 12/2024
    CVC: 111
  • 5204 2452 5052 2095
    Expiration Date: 12/2024
    CVC: 111
  • 5204 2452 5110 7599
    Expiration Date: 12/2024
    CVC: 111
  • 5204 2452 5305 0839
    Expiration Date: 12/2024
    CVC: 111
  • 5204 2452 5471 8095
    Expiration Date: 12/2024
    CVC: 111
Visa Credit
  • 4051 0693 0220 0121
    Expiration Date: 01/27
    CVV: 340
  • 4761 2297 0015 0465
    Expiration Date: 01/27
    CVV: 175
  • 4761 2099 8001 1439
    Expiration Date: 01/27
    CVV: 466
Visa Debit
  • 4761 1200 1000 0492
    Expiration Date: 01/27
    CVV: 480
  • 4761 3497 5001 0326
    Expiration Date: 01/27
    CVV: 982
  • 4761 2622 6000 4228
    Expiration Date: 01/27
    CVV: 501
  • 4761 3699 8032 0253
    Expiration Date: 01/27
    CVV: 878
  • 4622 9431 2005 4839
    Expiration Date: 01/27
    CVV: 100
  • 4180 6200 7023 0189
    Expiration Date: 01/27
    CVV: 111
  • 4123 4000 7332 0224
    Expiration Date: 01/27
    CVV: 221

Test Cards for Apps and Websites in China Mainland

Test card details (FPAN, CVV, Expiry, OTP) for China UnionPay cards are listed below and can be used on supported devices to test your ApplePay implementation.

Note:

  • China UnionPay test cards can only support device regions that are set to China mainland.
  • You will be prompted to enter a One Time Password (OTP) during provisioning. You should enter the value 123456.
  • China UnionPay test debit cards do not require CVV or expiry date.
  • China UnionPay test cards may require a PIN when making an ApplePay test transaction. The PIN is 939393.
  • In China mainland, Apple Pay for websites is available only on Safari on iOS devices that are compatible with ApplePay and running iOS11.2 or later.
  • These are the latest FPANs as of September 2022.
Credit Cards
  • 6222 2188 8761 2072
    CVV: 102
    Expiry: 12/2032
  • 6222 2188 3364 6000
    CVV: 102
    Expiry: 12/2032
  • 6222 2187 7110 3311
    CVV: 102
    Expiry: 12/2032
  • 6222 2187 4708 6814
    CVV: 102
    Expiry: 12/2032
  • 6222 2187 1854 8503
    CVV: 102
    Expiry: 12/2032
Debit Cards
  • 6221 1188 0742 0248 604
  • 6221 1188 0201 4512 887
  • 6221 1187 8618 4781 481
  • 6221 1187 3605 1686 602
  • 6221 1186 7711 3131 130

Test Cards for Point of Sale Systems

Retailers can use the sandbox to do simple terminal offline tests to make sure ApplePay 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 ApplePay sandbox environment.

Note: This does not replace Payment Network contactless certification. These FPANs can only be used for terminal offline beep tests using ApplePay after completing Payment Network certification.

  • These are the latest FPANs as of January 2023.
NetworkFPANsMagStripe ContactlessEMV Contactless
Mastercard5204 2452 5305 0839
Exp Date: 12/2024
CVC: 111
5204 2452 5471 8095
Exp Date: 12/2024
CVC: 111
Visa4761 1200 1000 0492
Exp Date: 11/2025
CVC: 497
4761 3497 5001 0326
Exp Date: 11/2025
CVC: 400

Feedback and Questions

Have feedback? Send it to ApplePay Support. Have additional questions? Join the conversation. Post questions and search for answers at Apple Developer Forums.

Sandbox Testing - Apple Pay (2024)

References

Top Articles
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 6053

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.