API Reference wallet_passes v#0.8.1

Copy Markdown View Source

Modules

Apple Wallet and Google Wallet pass generation, management, and remote updates.

Builds Apple Wallet .pkpass bundles.

Constructs PKCS#7 SignedData structures for Apple Wallet pass signing.

Sends silent APNs push notifications to Apple Wallet devices.

Plug.Router implementing Apple's required REST API for wallet pass updates.

Apple Wallet visual configuration for a pass.

OTP application module — started automatically when :wallet_passes is in the consumer's deps.

Centralised accessors for :wallet_passes Application env.

Behaviour for reacting to wallet pass lifecycle events from both Apple and Google.

Google Wallet API client for wallet passes.

Verifies Google Wallet callback envelopes per the ECv2SigningOnly protocol.

Plug.Router for Google Wallet class callbacks.

Generates 'Save to Google Wallet' URLs via signed JWTs.

Google Wallet visual configuration for a pass.

Platform-agnostic representation of wallet pass content.

Behaviour for consumers to implement pass data lookups.

Maps pass type atoms to platform-specific type strings.

LiveView function components for previewing wallet passes.

QR code generation for wallet passes.

Query functions for wallet pass schemas.

Ecto schema for Apple wallet passes.

Ecto schema for Apple device push notification registrations.

Audit log of Google Wallet save/delete callbacks for a pass.

Ecto schema for Google wallet passes.

Convenience functions for background pass syncing. Optional — requires oban dependency.

Oban worker that bulk-updates wallet passes. Optional — requires oban dependency.

Shared color/styling helper that produces platform-specific visual structs.

ETS-backed cache for Google service-account OAuth access tokens.

Mix Tasks

Generates a P-256 (secp256r1) keypair for Apple Wallet NFC passes (VAS).

Generates the Ecto migrations for WalletPasses tables.