TravelLive on the App Store
iOS case study

Trips — Travel Super-App

Traveler Club's travel super-app for Saudi Arabia: hotels, flights, Schengen visas and sports tickets with local payments, in Arabic and English. 635K+ downloads on the App Store.

Client
Traveler Club (نادي المسافر) · Riyadh, Saudi Arabia
Role
iOS Engineer · Feb 2024 – present
Platform
iPhone & iPad · iOS 16+ · Arabic & English
Scale
~140K lines of Swift in ~900 files · 2 apps + widget extensions from one codebase

The challenge

Run hotels, flights, visas and event tickets in one app for a Saudi audience, with the local payment methods customers expect and no double bookings when a payment is retried.

What the app does

  • Hotels: search by destination, recent searches or current location for up to 4 rooms; list or clustered-map results with filters and sorting; room packages with cancellation policies; pay now, later or in instalments.
  • Flights: one-way and round-trip search across GDS and NDC airline content, price-grouped results, filters for stops, airlines, layovers and times, and a booking timer.
  • NDC extras: branded fare families, baggage and meal add-ons and interactive seat selection.
  • Schengen visas: destination, visa type, passport type and interview city, a photo for each required document, and bank transfer with receipt upload.
  • Sports: football and Formula 1 tickets with filters, an interactive stadium map and guest details for each ticket.
  • One checkout for every product: card, Apple Pay, wallet (full or partial), Tabby, Tamara, MisPay and Madfu, vouchers and cashback, with automatic mada card detection.
  • My Bookings: history per product, cancellation, and downloadable vouchers, tickets and insurance documents.
  • Wallet and loyalty tiers (Silver, Gold, Platinum) with balance, points and statistics.
  • Engagement: flash offers, a fortune wheel, push notifications, in-app chat with voice notes, weather, prayer times with a Qibla compass and a world clock.
  • Search, Next Trip and Wallet home-screen widgets, plus live Arabic/English switching, a currency switch and dark mode.

What I built

  • A unified payment engine (Strategy, Factory and Coordinator patterns on async/await) for hotels, flights, visas and sports: PayFort, Apple Pay, wallet, bank transfer and Tabby, Tamara, MisPay and Madfu.
  • Retry-safe checkout: persisted reservation identities so retrying or switching payment method never registers a booking twice.
  • Flight booking across GDS and NDC airline content: offer-price checks, branded fares, baggage and meals, seat maps and two-leg multi-city search.
  • A sports-ticketing module end to end, with interactive SVG stadium maps rendered in WKWebView.
  • Home-screen widgets (Search, Next Trip, Wallet) designed for privacy: the extension never calls the API.
  • A Wego partner checkout from universal links with price-change handling, covered by 85 regression tests. Overall, I wrote most of the app's ~170 unit tests.
  • Sign-in with phone or email OTP, Sign in with Apple and passkeys; Arabic/English switching without a relaunch, with full right-to-left layouts.
  • Release and quality tooling: CI/CD on Azure DevOps and Xcode Cloud (secret injection, Crashlytics dSYM upload), GA4 e-commerce funnel events, Crashlytics and Microsoft Clarity.

Under the hood

  • One payment engine replaced four product-specific checkouts: six gateways behind one async, main-actor protocol, a five-state result type and an explicit flow state machine.
  • Idempotent reservations: each booking is registered once; retries and method switches reuse the same payment reference, and an update is sent only when wallet, discount, cashback or reward choices differ from a saved baseline.
  • Concurrent NDC registrations share one in-flight Task per order, so repeated taps can't create duplicate orders.
  • Pricing rules (totals, wallet eligibility, which payment methods to show) live in side-effect-free policy types instead of view code.
  • Wego links are validated (HTTPS, allow-listed host, exact path) and wait in a single-slot inbox that never interrupts an active booking; any price change must be accepted before paying.
  • Widgets never touch the network: the app writes versioned JSON snapshots to the App Group, stores only what is displayed, refreshes personal data at most every 15 minutes and wipes it on sign-out.
  • Every request is signed with HMAC-SHA256 over the method, URL, timestamp, nonce and body hash, with clock-skew correction.
  • Live language switching swaps the localization bundle and rebuilds the tab tree, while prices, phone and card fields keep a stable left-to-right order.
  • Searches use a 300 ms debounce and generation counters, so late responses never overwrite newer results.
  • Two apps come from one source tree through a compile-time BrandConfig (~90 brand properties) plus server-side tenant features.

Results

  • 635K+ downloads and a 4.2+ App Store rating.
  • Up to 60% faster feature delivery from shared, reusable components.
  • 80% higher engagement reported after the SwiftUI redesign of core journeys.