Ticket generation: QR codes, SVG tickets, and Apple Wallet passes.

  • QR codes — SVG-based QR code generation for check-in URLs
  • SVG tickets — visual ticket images for email attachments
  • Apple Wallet.pkpass file generation with PKCS#7 signing

Functions

f
buildCheckinUrl

Build the check-in URL for a single ticket token

f
buildInfoLines

Build info lines from ticket data (non-PII listing and booking details)

f
buildPkpass

Build a complete .pkpass file as a Uint8Array (ZIP archive)

f
buildTicketUrl
No documentation available
f
createManifest

Create manifest.json mapping filenames to SHA-1 hashes

f
extractSvgContent

Extract the inner content of an SVG element (strip the outer <svg> wrapper)

f
extractViewBox

Extract the viewBox from an SVG element to compute its coordinate space

f
generatePassJson

Build the pass.json content from pass data and signing credentials

f
generateQrSvg

Generate an SVG string for a QR code encoding the given text. Returns a complete <svg> element suitable for inline embedding.

f
generateSvgTicket

Generate a standalone SVG ticket with QR code and listing/booking details. Returns a complete SVG document string.

f
listingSupportsDirectCheckout

Whether this listing can send QR code scanners directly to checkout. True when no extra contact fields or questions are required.

f
padAuthToken

Pad a serial number to meet Apple's minimum authenticationToken length. Uses "-" (not in uppercase hex charset) so padding is cleanly reversible.

f
sha1Hex

Apple requires SHA-1 for manifest entries; CMS signs the manifest with SHA-256.

f
trimAuthToken

Strip padding added by padAuthToken to recover the original serial number

Type Aliases

T
PassData

Data needed to generate a pass — maps to existing ticket/listing data

T
SvgTicketData

Non-PII ticket data for SVG rendering (extends shared wallet fields with display-formatted values)

Variables

v
WALLET_ICONS

Decoded icon files for inclusion in .pkpass bundles