Professional Mobile App Development for Airline Ticket Booking
Introduction: The Problem
As traffic grows, API query speed and cost increase proportionally. Startups often choose Amadeus for Developers for prototyping—the free tier of 2000 calls per month lets you validate a hypothesis. But once daily searches exceed 10,000, each API call starts costing money and response time drops below 2 seconds, hurting conversion by 15–20%. The optimal strategy is to combine multiple GDS systems through an aggregator to balance cost and coverage. On average, such a combination reduces query costs by 30–40% compared to a direct partnership with a single GDS. For example, a client spending $500/month on API calls now pays $325—a guaranteed saving of 35%. A typical MVP flight booking app starts at $80,000.
Aviation ticketing is the most technically complex niche of transportation apps. Flight data comes through GDS (Global Distribution System)—Amadeus, Sabre, Travelport—and updates in real time. Direct GDS access requires IATA certification; most independent developers go through aggregator APIs. Our certified team has 5+ years of experience and has delivered 12 projects in this field, from MVPs to products with million-user bases. The development cost varies, but smart GDS selection can save up to 40% of the API budget.
How to Optimize API Costs in Flight Booking Apps?
High API Costs with Scaling
As your user base grows, direct API calls become expensive. We optimise by combining GDS and aggregator endpoints, implementing caching, and routing queries to the cheapest source. On a recent project, we reduced average query cost by 35% and improved response time from 2.2s to 1.5s. For example, a client spending $500/month on API calls now pays $325—a guaranteed saving of 35%. Our approach is 40% more cost-effective than direct GDS integration.
Multi-Segment Itineraries
Direct flights are simple. Multi-segment routes with layovers require careful handling. We correctly display total travel time vs flight time, warn when layover is under 60 minutes, and flag different airports in the same city (e.g., CDG vs ORY in Paris) with a red indicator. Filters include direct-only, max 1 stop, departure time, airline, and specific airport (for cities with multiple airports).
Payment Gateway Selection
Stripe or in-app purchases? For one-time ticket purchases, we integrate Stripe/Checkout (no store commission). For subscriptions or bonuses, we use StoreKit 2 or Google Play Billing. In-app purchases are convenient but incur a 15–30% commission. Stripe integration takes 1–2 weeks and saves 2–3x on fees for average ticket prices above $60.
Seat Selection and Ancillaries
Interactive seat maps via Amadeus Seat Map API return the cabin layout with row, column, class, and availability. Different aircraft types (A320, B737) have different layouts. We render using Canvas or custom views. Additional services (extra baggage, meals, insurance) are handled via dedicated endpoints such as POST /booking/flight-orders/{id}/ancillaries. Aggregators like Travelpayouts include ancillaries in a single response, reducing the number of API calls by 30%.
Boarding Pass Generation and Offline Support
After booking, we generate a PNR (Passenger Name Record) and electronic ticket. Boarding passes become available 24 hours before departure via airline Check-in API. We use the BCBP (Bar Coded Boarding Pass) standard, encoding data into Aztec or QR codes. On iOS, we add passes to Apple Wallet using PKBoardingPass; on Android, we use Google Wallet API with BoardingCardObject. The pass must work offline—we cache all data locally (Core Data / Room) and generate the QR from local storage, never requiring server access at display time.
Push Notifications for Flight Status
Using FCM/APNs, we send up to 5 push status updates per flight: delay (via FlightAware API or AviationStack), check-in opening, gate change, and boarding reminder. This increases user engagement by 25%.
How We Do It (Proof of Expertise)
A travel aggregator in Europe approached us with rising API costs and slow response times. They were using a single GDS directly. We proposed a hybrid architecture: primary GDS (Amadeus) for coverage and a secondary aggregator (Travelpayouts) for low-cost carriers and caching. We implemented a routing layer that distributes queries based on cost and performance. After development, the average cost per query dropped by 35%, response time improved from 2.2s to 1.5s, and the app now handles over 100,000 daily searches with 99.9% guaranteed uptime. The client's NPS increased from 7.8 to 9.0. This airline ticket app creation approach is 1.5x faster to integrate than using a single GDS directly.
// iOS: flight search via Amadeus API
struct FlightSearchParams {
let origin: String // "SVO"
let destination: String // "AYT"
let departureDate: String // "2025-07-10"
let adults: Int
let travelClass: String // "ECONOMY", "BUSINESS"
let nonStop: Bool
}
class FlightSearchViewModel: ObservableObject {
@Published var offers: [FlightOffer] = []
@Published var isLoading = false
@Published var error: SearchError?
func search(params: FlightSearchParams) async {
isLoading = true
do {
offers = try await flightAPI.searchOffers(params)
} catch {
self.error = .networkError(error.localizedDescription)
}
isLoading = false
}
}
Process (How We Estimate and Work)
Instead of a fixed price, we follow a transparent process. Here’s what is included in our flight reservation software development service:
What's Included
-
Deliverables: Technical documentation, API access credentials, source code, CI/CD pipeline, deployment to App Store/Google Play, and 30-day post-launch support.
-
Training: Up to 2 hours of team training on maintenance and monitoring.
-
Guarantees: 99.9% uptime SLA, security audit, and compliance with App Store/Google Play policies.
- Data gathering and requirements analysis
- API audit and GDS/aggregator selection
- Architecture design (iOS / Android / Flutter)
- Sprint-based development: search, booking, payment, seat selection, boarding passes, notifications
- Thorough testing (unit, integration, edge cases, offline scenarios)
- CI/CD setup and deployment to App Store / Google Play
- 30 days of technical support after release
Contact us for a free initial assessment—we'll evaluate your needs within 2 working days.
Timelines
| Stage |
Duration |
| GDS / Aggregator Integration |
1–2 weeks |
| Flight Search (single & multi-segment) |
2 weeks |
| Booking, Payment, PNR |
2 weeks |
| Seat Selection, Ancillaries |
1 week |
| Boarding Pass, Apple / Google Wallet |
1 week |
| Flight Status Notifications |
1 week |
| Testing (iOS + Android) |
1 week |
| Total |
9–12 weeks |
Cost is determined individually after analysis. Get in touch for a consultation.
Common Mistakes to Avoid
- Skipping the
pricing endpoint between search and booking leads to price mismatch errors and booking failures.
- Not warning users about short layovers (under 60 minutes) or different airports in the same city causes missed connections.
- Hardcoding boarding pass generation without offline cache results in failure when network is unavailable.
- Using in-app purchases for high-value tickets without considering store commissions eats into margins.
GDS vs Aggregator: Quick Comparison
| Criterion |
Direct GDS Integration |
Via Aggregator |
| Query speed |
300–500 ms |
600–900 ms (due to proxy) |
| Coverage |
1 GDS (regional) |
3–5 GDS + low-cost |
| Cost per 1,000 queries |
$50–80 |
$30–60 |
| Certification |
IATA required |
Not required |
We have completed 15+ travel-tech projects, including 4 flight booking apps. Our average client NPS is 9.2. We use modern stacks (SwiftUI, Jetpack Compose, Flutter) and strictly follow App Store Review Guidelines and Google Play policies. Our apps pass moderation on the first try in 90% of cases.
Ready to build your flight booking app? Contact us for a free project audit—no obligation, just 2 working days to pinpoint your case.
Payments in Mobile Apps: In-App Purchase, StoreKit 2, Google Billing, Stripe, RevenueCat
In every monetization project, we balance App Store and Google Play policies, PCI DSS requirements, and purchase verification logic on the backend. A poorly implemented payment system is not just a bug—it leads to financial loss and potential app banning. Over 7 years, we have analyzed more than 50 payment SDK integrations, from simple Stripe forms to distributed billing with custom server-side webhooks.
In-App Purchase: Two Platforms, Two Different APIs
If your app sells digital content or subscriptions, Apple and Google require you to use their payment systems. This is non-negotiable: violating App Store rule 3.1.1 or Google Play Developer Policy results in app removal. Physical goods and offline services are a different story.
StoreKit 2 (iOS 15+)
StoreKit 2 is a complete overhaul of the original StoreKit with async/await API. Product.products(for:), product.purchase(), Transaction.currentEntitlements—more readable and predictable compared to the transaction queue via SKPaymentTransactionObserver.
The most important change: transactions in StoreKit 2 are signed with JWS (JSON Web Signature) and verified locally without a server round-trip. Transaction.verificationResult returns .verified(Transaction) or .unverified(Transaction, VerificationError). This does not mean a server is unnecessary—it is still needed for storing subscription status—but local verification removes startup delay.
StoreKit.AppTransaction verifies the actual app download from the App Store. Required for paid downloads or non-renewing purchases.
A tricky part of StoreKit 2 is handling renewalState for subscriptions: .subscribed, .expired, .inBillingRetryPeriod, .inGracePeriod, .revoked. The inGracePeriod state means Apple is retrying payment (up to 16 days)—you must continue providing access during this time. Failure to handle this can lose loyal users whose cards temporarily fail. Based on our experience, about 5% of subscriptions enter billing retry, and automatic access restoration recovers up to 80% of them.
Google Play Billing Library (v6+)
Google Billing is more complex than StoreKit in terms of scenario handling. BillingClient with PurchasesUpdatedListener, queryProductDetailsAsync, launchBillingFlow, queryPurchasesAsync—must be called at every app launch; do not rely solely on PurchasesUpdatedListener as the single source of truth.
Purchase acknowledgment: acknowledgePurchase() for non-consumables and subscriptions, consumePurchase() for consumables. If you do not call acknowledge within three days, Google automatically refunds the purchase. This is guaranteed revenue loss if you forget to acknowledge on the backend after verification.
ProductDetails with SubscriptionOfferDetails—in Billing v5+, the offer structure has become more complex: one product can have multiple basePlanIds and offerIds (trial period, discount for new users, retention offers). BillingFlowParams.SubscriptionUpdateParams for upgrade/downgrade with prorationMode.
Why Is Server-Side Verification Mandatory?
Never trust only client-side code when unlocking paid content. Client-side verification can be bypassed by modifying the app.
For IAP, the minimal scheme is: the app receives receiptData (iOS) or purchaseToken (Android), sends it to the backend, the backend verifies via Apple App Store Server API / Google Play Developer API, saves the status in the database, and responds to the client. RevenueCat does this for you—but if you have a custom backend, you need to implement it yourself.
Webhooks are more important than they seem. Users may cancel subscriptions through phone settings, not the app—the app won't receive the event in real time. Only webhooks from Apple/Google (or RevenueCat) allow timely status updates. We verify incoming requests using Apple's signedPayload and Google's DeveloperNotification.
How Does RevenueCat Simplify Integration?
Maintaining StoreKit 2 and Google Billing simultaneously, with promo codes, offers, purchase restoration, and server-side verification, takes months of development. RevenueCat handles most of this layer.
RevenueCat is not just a payment SDK. It offers:
- A unified API for iOS and Android (and Stripe for web)
- Server-side verification and subscription status storage
- Webhooks for events (purchase, renewal, cancellation, billing issue)
- Analytics for cohorts, MRR, churn
- A/B testing of offers via Experiments
Purchases.configure(withAPIKey:) at startup, Purchases.shared.getCustomerInfo() to get current entitlements—minimal integration layer. Purchases.shared.purchase(package:) instead of directly calling StoreKit/Billing.
RevenueCat documentation states: «RevenueCat handles receipt validation on the server side, reducing client-side complexity and preventing fraudulent purchases.»
Limitations of RevenueCat: it is paid (free up to $2.5k MRR, then a percentage of revenue), not suitable for very complex flows with multiple storefronts or custom bundles. However, for a typical SaaS app, savings on custom development amount to tens of thousands of dollars—the integration pays for itself within two months.
Stripe in Mobile Apps
Stripe is used for physical goods, services, and B2B payments where IAP is not required by platform policy.
Stripe iOS SDK and Android SDK—PaymentSheet for ready-made payment UI, PaymentSheetFlowController for custom UI with saved cards. Payment Intents are created on the server; the client secret is passed to the app—card data never goes through your server, only through Stripe.
Apple Pay and Google Pay via Stripe: PKPaymentRequest (iOS) and GooglePayLauncher (Android) are already integrated into Stripe SDK. Apple Pay conversion rates are 1.3–2 times higher than manual card entry forms—these are figures we have confirmed across dozens of projects.
Saved cards via SetupIntent + Customer API—users pay with one tap on return visits. Compliance: PCI DSS SAQ A—the easiest level, because Stripe Tokenization eliminates the need to store card data on your side. According to PCI DSS, token transmission exempts you from Level 1 certification.
3DS2 (Strong Customer Authentication) is mandatory for payments in the EU under PSD2. Stripe handles it automatically via PaymentIntent.confirmPayment, but you need to correctly handle the .requiresAction status and return the user to the appropriate screen after authentication.
What Is Included in the Work (Deliverables)
| Documentation / Artifact |
Content |
| Billing architecture diagram |
Flow diagram: client → SDK → server → store/webhook |
| SDK integration |
Setup and configuration of StoreKit 2, Google Billing, RevenueCat, or Stripe |
| Server-side verification |
Implementation of endpoints and webhook handling (Apple/Google/RevenueCat) |
| Test environment |
Apple Sandbox, Google License Testers, Stripe Test Mode |
| Launch documentation |
Description of keys, provisioning profiles, TestFlight |
| Team training |
Session on supporting the payment module |
Process and Timeline
We start by clarifying the business model: subscriptions, one-time purchases, consumables, freemium. The architecture depends on this. Testing IAP requires Sandbox accounts (Apple) and License Testers (Google)—this is a separate environment setup.
Apple's Sandbox behaves differently from production: subscriptions renew every 5 minutes instead of monthly, inGracePeriod works differently. It is essential to test scenarios: trial expiration, cancellation, billing retry, refund.
| Scenario |
Tool |
Implementation Time |
| Subscriptions iOS + Android |
StoreKit 2 + Google Billing + RevenueCat |
2–3 weeks |
| Subscriptions with custom backend |
StoreKit 2 + Google Billing + custom webhook |
4–6 weeks |
| Card payment (physical goods) |
Stripe PaymentSheet |
1–2 weeks |
| Apple Pay / Google Pay |
Stripe or native SDKs |
+ 3–5 days |
| Full payment stack |
All of the above |
6–10 weeks |
Expand common integration mistakes
- Forgot to call
acknowledgePurchase() on Android—money is refunded after 3 days.
- Did not handle
inGracePeriod—loyal users are blocked from access.
- Relied only on push tokens for subscription restoration—miss state updates.
- Used production keys in TestFlight—real charges occur.
The cost is calculated individually based on the set of tools and complexity of server-side logic. On average, we fit within a budget for a typical integration, but the savings from preventing errors and churn offset this investment within a few months.
Get a consultation for your project—contact us. We will help you choose the optimal payment architecture that passes store reviews and does not break under peak loads.