01
What we built
- Pass issuance for both wallets from one API: a signed Apple pass and a Google Wallet save link.
- The full Apple pass web service, so a stamp reaches the phone by push and the pass updates itself.
- Staff-only stamping and redemption with signed QR tokens the operator app can verify offline.
- Card art rendered on the server for every stamp state, at each wallet's required sizes, with contrast-checked colours.
- Push campaigns to consenting guests, scheduled or immediate, with the reach shown before sending.
- Location relevance, so the pass can appear on the lock screen near the shop.
- GDPR erasure that removes personal data but keeps the counters.
02
How it works
- 01One API serves the landing page, the operator app, the dashboard and the wallet devices, in one EU region.
- 02The pass record in the database is the source of truth; the wallet files are projections that can always be rebuilt.
- 03Every change a phone must learn about goes through one function that queues a push in the same transaction.
- 04Row-level security on every tenant table, plus an app-level guard.
03
Key decisions
No double stamps
Each stamp carries a client key and timestamp, so two offline tills can't double-stamp a card. Rejections are stored and shown, never dropped.
Cards can't be copied
QR codes carry a signed token, not a raw serial, so a photo of someone's card is useless and the app can still verify it offline.
Marketing only with consent
Campaign pushes go only to guests who opted in. Service updates, like a new stamp, go to everyone, because that's the contract, not advertising.
Built to be handed over
An append-only build log, numbered decision records, and a failure-modes table where every mitigation points at a test. The next engineer can pick it up without reverse-engineering anything.
Easy to rename
A rename was likely, so no brand string is hard-coded anywhere.
04
The details
- Client
- Built for a European partner
- Scope
- Platform architecture + build
- Period
- Aug – Oct 2026
- Status
- In build
- Stack
- TypeScriptFastifyPostgres + RLSApple PassKit / APNsGoogle Wallet APIVitest
