Hosted Fields - Apple Pay Sandbox Testing
Our hosted checkout supports Apple Pay out of the box — no need to configure a separate Apple Pay merchant ID. To test Apple Pay transactions in sandbox mode, follow the steps below.
1. Set Up a Sandbox Apple ID
Apple requires a sandbox Apple ID to test Apple Pay.
If you don’t already have one, create a sandbox Apple ID using your personal Apple Developer account or follow Apple’s instructions for sandbox testers.
⚠️ Important: This Apple ID is for testing only — do not use your personal Apple ID.
On your iPhone:
- Go to Settings > App Store
- Sign in with your sandbox Apple ID (this does not affect your main iCloud account)
2. Add a Test Card to Apple Wallet
- Open the Wallet app on your device
- Tap the + icon to add a new card
- Choose Credit or Debit Card
- Enter a test card number from Apple’s official documentation: 👉 Apple Pay Sandbox Test Cards
- Complete the card setup and ensure it appears in Wallet
3.Confirm Device & Region Settings
Make sure the following are true:
- Your device region is set to a country that supports Apple Pay (e.g., United States).
- You're using a supported device (iPhone 6 or newer, running the latest iOS version).
4.Test on the Hosted Checkout Page
- On your Apple Pay–enabled device, open Safari
- Navigate to our hosted checkout page
- Select Apple Pay as the payment method
- When the Apple Pay sheet appears, choose your sandbox test card
- Authorize the transaction using Face ID, Touch ID, or your passcode
- Confirm you receive a successful payment confirmation
5.Troubleshooting
If you don’t see the Apple Pay button or the transaction fails:
- Make sure you’re using Safari (Apple Pay is not supported in other browsers)
- Check that your sandbox Apple ID is signed in under Settings > App Store
- Verify that your test card is correctly added to Wallet
- Confirm your device and region settings support Apple Pay
Updated about 2 hours ago