Flight Ticketing State Machine & Status
CITE enforces strict separation between airline reservations (PNR), payment capture, per-passenger 13-digit e-ticket issuance, idempotent checkout protection, and independent refund tracking.
Direct CanadaTravels ticketing activates once TICO registration, ticketing supplier, and 24/7 servicing are live
1. Reservation ≠ Ticket Issued
A PNR reservation locator is stored separately from issuance status and per-passenger 13-digit IATA e-ticket numbers. We never show Ticket issued until every passenger has a confirmed ticket number.
2. Double-Charge Protection
Every checkout requires a unique idempotency_key enforced by SQL UNIQUE constraints in D1 so retries return the existing booking instead of charging twice.
3. Independent Refund Lifecycle
refund_status (none, requested, processing, completed, denied) is tracked independently from payment capture and ticket issuance.