Skip to content

Document pass wallet URLs and build-your-own-buttons pattern#5

Merged
alexpate merged 1 commit into
mainfrom
docs/wallet-download-urls
Jul 8, 2026
Merged

Document pass wallet URLs and build-your-own-buttons pattern#5
alexpate merged 1 commit into
mainfrom
docs/wallet-download-urls

Conversation

@alexpate

@alexpate alexpate commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Every pass already returns url, download_url, and google_wallet_url, but they were undocumented — so users defaulted to sending people to the hosted page.

  • README: new "Adding passes to a wallet" section covering what each URL points at (hosted page / direct Apple .pkpass / Google save link), the "null until that platform delivered" semantics, and the pass.download_url ?? pass.url fallback for rendering your own Add-to-Wallet buttons.
  • Tighten the JSDoc on those three fields so they explain themselves in-editor.
  • changeset (patch)

Docs and types only — no runtime change.

Every pass carries url / download_url / google_wallet_url. Document what each
points at (hosted page / direct Apple .pkpass / Google save link), the
"null when that platform wasn't delivered" semantics, and the recommended
`pass.download_url ?? pass.url` fallback for rendering your own wallet buttons.
Clarify the JSDoc on those fields so they explain themselves in-editor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexpate alexpate merged commit 93c099e into main Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant