Skip to content
Testsigma DOCS

FAQs

Apple Pay Automation with Testsigma


Apple Pay Automation is a complex process that requires careful implementation due to Apple’s rigorous security standards and testing challenges. This article discusses the automation process for Apple Pay, including key considerations and implementation steps.


Apple Pay automation is currently limited to a specific set of devices. Ensure you verify the exact device compatibility before proceeding.

List of compatible devices :

Devices Supported for Apple PayiOS Version
iPhone 1517
iPhone 1416
iPhone 14 Pro16
iPhone 13 Pro Max15
iPhone 13 Pro15
iPhone 13 Mini15
iPhone 1315
iPhone 11 Pro15
iPhone 1115
iPhone XR15

Implementation with Testsigma is simple and straightforward.

  1. Download the addon: Testsigma has an built-in addon to automate this flow, you can download the addon and use the addon inside your test step. The addon screenshot is added below Autopay

  2. Add Desired capability: Before you execute the test case, you can add the desired capability listed below and choose the compatible devices shared in the previous list.

    KeyData TypeValue
    enableApplePayStringtrue
    appiumVersionString1.21.0
    deviceNameStringiPhone 15
    osVersionString17.0

When defining Apple Pay details, follow these best practices to ensure compatibility with the test environment:

  1. Address Information:

    • Only include relevant parameters for the shipping and billing addresses.
    • Remove parameters that are not applicable. For instance, if your test address does not include a province value, exclude the province parameter from your script.
  2. Geographical Codes:

    • Use the appropriate geographical code based on your address format and what the device accepts.
    • Choose from one of the following: postalCode, postCode, or zip.
  3. Phone Number Format:

    • Include the country code prefix with the + character.
    • Examples of valid formats include:
      • +1-212-456-7890
      • +12124567890
  4. Session Failures:

    • If your session fails due to incorrect address parameters, adjust the geographical code accordingly.
    • For instance, if your address uses the zip parameter but the device expects postalCode or postCode, modify the script and re-run the test to identify the accepted format.

Regional Limitations for Apple Pay Testing

Section titled “Regional Limitations for Apple Pay Testing”

On testsigma iOS devices, testing with Apple Pay is limited to the following regions:

GeographyCountry
North AmericaUnited States, Canada
EuropeFrance, Ireland, Italy, Spain, UK, Germany
AsiaChina Mainland, Hong Kong, Taiwan, Japan, Russia, Singapore
AustraliaAustralia, New Zealand