feat: apple wallet pkpass generation, website CTA once tickets are assigned, and attempt at android wallet support#2119
Open
ab-gh wants to merge 10 commits into
Open
feat: apple wallet pkpass generation, website CTA once tickets are assigned, and attempt at android wallet support#2119ab-gh wants to merge 10 commits into
ab-gh wants to merge 10 commits into
Conversation
# Conflicts: # apps/common/receipt.py # apps/payments/tasks.py # apps/users/account.py # config/development-example.cfg
Generate the pass image set from the 2026 brand assets at runtime: a full-card blurred background cropped to the comet-arc hero, a brand-orange icon tile, and the white EMF logo mark. Set the icon (38pt) and background (345x505pt) sizes to match Wallet's required dimensions. Restructure the eventTicket fields: add "Electromagnetic Field" as the logo text shown at the top, and show attendee, location (Eastnor Deer Park), gates-open and admission, with parking/campervan only when held. Stringify field values for cross-wallet (Apple + Google) compatibility. Add generate_unsigned_pkpass() so the artwork/layout can be previewed without a signing certificate.
`flask dev pkpass [--email] [--out]` writes an unsigned .pkpass for previewing the pass artwork and layout (e.g. in Apple's Wallet Pass Designer) without needing the signing certificate.
Once tickets are distributed (ISSUE_TICKETS) and the user holds a paid ticket, show a floating "Show ticket" button on every page. It opens a closable modal with the check-in QR code and "Add to Apple Wallet" / "Add to Google Wallet" buttons. Both wallet buttons serve the existing signed .pkpass; Google Wallet imports it natively on Android. Self-contained include (inline styles + a nonce'd script, both permitted by the CSP) reusing the existing QR and pkpass routes, so it needs no SCSS/JS build changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Picks up #1822 from last year to close #1338, with:
Apple Wallet pass
Generated preview with apple Pass Designer


Google Wallet pass
the

.pkpassappears to parse and display just fine natively on android/google wallet (thanks @Kunsi)CTA Button