Sandbox Apple Pay Testing
This guide provides instructions on testing Apple Pay transactions in the Sandbox environment.
Prerequisites
iOS device with Apple Pay support.
Sandbox account set up on ApplePay Payrix Tester account.
1. Request a new Apple Sandbox Test Account
Step 1: Create a new support ticket to request your Sandbox test accounts with the following information and provide any additional information or instructions as needed, then send the email. :
Subject: Addition of Sandbox Test Account for Apple Pay Testing
Hello, I would like to add Sandbox Test accounts for Apple Pay. Below are the email addresses I’d like to include for the Sandbox Test accounts that are not associated with existing Apple IDs:
Email 1: …….
Email 2: ……
…
Result: Once each Sandbox test account is created, the associated email will be automatically added to the Apple Developer sandbox environment, where Apple will send an email directly to each account with activation instructions.
2. Configure your Payment Page with Apple Pay
Once you’ve activated the Apple Developer sandbox environment through their instructions, follow the steps below to set up your payment page to begin testing.
Step 1: Use the Apple Pay Registration guide to set up your initial Apple Pay Integration.
Step 2: Create a PayFields checkout page with an Apple Pay button.
3. Configure the Apple Device
After following the Apple Developer activation steps and configuring your PayFields page, use the steps below to prepare your Apple iOS device for testing with Apple Pay.
Step 1: Log in to iCloud on your Apple iOS device using your new sandbox account information.
Step 2: On the iOS device, go to "Settings" > "Apple Pay & Wallet".
Step 3: Choose and add the cards for testing.
Step 4: Enable Apple Pay if not already enabled.
Step 5: Ensure a test payment card is added to the device's Wallet.
Click on the expandable content below to view a table of test credit cards that can be used for testing in the Apple Pay wallet on your device:
Result: Now that you’ve setup your Apple Pay & Wallet settings for the test card(s) on your iOS test device, you can perform a test transaction on your payment page to verify your Apple Pay integration is working as expected at checkout.
4. Perform a Test Transaction
Once your test iOS device is set with the test card info, you can access your online payment page using the device and test your first transaction with the steps below:
Step 1: Open the Payment Page on the iOS device.
Step 2: Tap the displayed Apple Pay button at checkout.
Step 3: Select the test card configured in the previous step as the payment method.
Step 4: Confirm the transaction with Face ID, Touch ID, or your device passcode.
Verify the Result
Once successfully submitted, your transaction will appear with the amount, date, and time through the Portal and will display Apple Pay as the chosen payment method on the Transaction Details page.
To confirm 100% accuracy, review if all transaction data reported for the test Apple Pay transaction in the Portal matches the amount, date, and time of the transaction processed on your payment page.
If a transaction fails, debug your payment page integration to identify potential issues.
Check the console log for error messages or exceptions.
Fix any issues found and repeat the test as necessary.