Development Mode for Apple Wallet Integration

Testing PKPass generation without certificate validation

Development Mode Only: The PKPass files generated in development mode are technically invalid but may be useful for testing purposes. They will not work in production environments.

Why Development Mode?

Apple Wallet passes (.pkpass files) typically require proper certificate signing to work correctly. However, in local development environments like XAMPP, there can be issues with OpenSSL and certificate handling. Development mode bypasses these requirements to allow testing of the pass structure and appearance.

How It Works

Development mode creates a PKPass file with:

Testing Development PKPass Files

You can test development PKPass files by:

  1. Using the Test Card: Visit the test card page and click the "Add to Apple Wallet (Dev Mode)" button.
  2. Via Email: Send the .pkpass file via email and open it on an iOS device.
    Note: While proper signed passes will open automatically, development passes may show as just attachments.
  3. Via File Transfer: Transfer the .pkpass file to an iOS device via AirDrop or file sharing.

For Production Environments

When deploying to a production environment with proper SSL support, switch to using the regular PKPass generator:

$pass = new PKPass($certificatePath, $certificatePassword, $wwdrCertPath);

The regular generator will create properly signed passes that work with Apple Wallet.

Test a Development Pass

Development Mode is intended only for testing purposes during local development.