From time to time I need to assist merchant to integrate Apple Pay. Purely reading the Apple Pay Testing page https://developer.apple.com/apple-pay/sandbox-testing/ does not reveal the integration challenge.
The challenge of Apple Pay integration falls into 2 parts:
- Source Code development
- The preparation of a usable Apple Pay Sandbox account
Source code development is usually very straight forward, and easy to tackle, 99% the challenge fall onto Apple Pay Sandbox account preparation.
Assume you already follow the integration guide of your Payment Service Provider, to allow you perform test Apple Pay payment, as a tester / buyer, you need an Apple Pay Sandbox account. Either your payment service provider provide you one, otherwise you will need to Subscribe to the Apple Developer Program:
https://developer.apple.com/programs

You need to note that, it requires to subscribe the $99/year Apple Developer Program. The free Apple Developer account does not offer you the Apple Pay Sandbox account.
Only the paid membership allows you to login to AppStoreConnect, where you can create Sandbox Apple Pay account.
This is the AppStoreConnect for Free Apple Developer: https://appstoreconnect.apple.com/

And this is how AppStoreConnect looks like for a paid Apple Developer Program account:

To create Sandbox Apple Pay account:
- Login to App Store Connect (with Apple account subscribed Apple Developer Program)
- Go to Users And Access
- Go to Sandbox section, click “+”

Then fill some “basic” information:

Here, you need to use a valid Email address that:
- NEVER been an Apple account.
- Really able to receive email, as Apple wills end for email verification
- You will also need to define the account password for the sandbox account
Once done, provide the login email and password to the tester (The one that is going to use this Apple Pay Sandbox account). He will receive the Apple Email verification email. Follow the email guide to verify the email address.
If you think you have the account ready, this is tricky. Using the email and password to login to a MacOS/iOD device, you will likely got ACCOUNT_UNAVAILABLE error.
After reading lots of Apple Community thread, here is additional steps to get the account really usable:
- Go to https://www.icloud.com/
- Login with the Sandbox Apple account
- Enable 2FA, setup Safety Questions and Answer (and ensure you remember the Question and answer)
- Use a valid Phone number that can receive SMS for 2FA
- Agree all T&C
You cannot get through the process just in the Mac/iPhone Settings app, the process need to be done in the iCloud website.
After the process done, you can now login your testing device with the Sandbox Apple account.
Once the device is logged in with the Sandbox Apple account, you can then try adding Test Card.
Test Card adding is also a problematic part, you can find test card from Apple Pay testing guide:
https://developer.apple.com/apple-pay/sandbox-testing
In Mac, you go to System Settings > Wallet & Apple Pay
From experience, the obstacles of this step include:
- Adding Visa test card often fail upon accepting the T&C
- The testing that being added has been wisely used, Apple seems limited the no. of time a card being added and prompt Device Limit Reached error.
So my suggestion are:
- Try using card other than Visa
- If you hit the Device Limit Reached, try other card~
I hope the shared info help you get through the obstacle. And I hope Apple would optimize the developer experience on this part.














