Stripe billing for flying clubs: the Flaps10 case study

Flying club membership billing with Stripe on Flaps10: yearly memberships, prepaid block-hour packages, balances and webhooks for a flight-school app.

Flaps10 app screens: aircraft booking, payments and checkout

A student pilot wants to fly on Saturday. Before they can book the club's Cessna, three things have to be true: they're a paid-up member of the club, they have flight hours to spend, and the aircraft is free. At most flying clubs, the first two live in a spreadsheet, a card machine and someone's memory.

Flaps10 puts all of it in one app. It's an aircraft-rental marketplace and flight-school management app by Globewyze, live on Google Play, used by student pilots, instructors and club owners to join a club, book aircraft, buy block hours and keep their flight logs. During my internship at Globewyze I worked on its backend, mostly the Stripe flow behind the payment screens: flying club membership billing, prepaid block-hour packages, and the balance and purchase history that tie them together.

TL;DR#

  • The problem: clubs sell two very different things, a yearly membership and prepaid flight hours, and both decide who may book an aircraft.
  • What I built: the backend for the payment screens: yearly memberships billed through Stripe, block-hour packages bought at checkout, and each pilot's balance and purchase history.
  • The key decision: access comes from verified Stripe webhooks, never from the app reaching a success screen.
  • The lesson: memberships and hour packages need different Stripe objects and different events, but one source of truth for "can this pilot fly?".
  • The stack: Stripe Checkout, subscriptions and webhooks behind an Android app on Google Play.

The problem: two kinds of payment, one question#

Flying clubs sell two products that look similar on a price list and behave completely differently:

  • A club membership is recurring: a yearly fee that keeps a pilot in good standing. It renews, it can lapse, and when it lapses the pilot shouldn't be able to book.
  • Block hours are prepaid flight time, bought as a package and spent flight by flight. Buying more hours tops up a balance; flying spends it.

Both feed one question the booking screen has to answer instantly and correctly: can this pilot book this aircraft now? Getting it wrong in either direction is bad. A pilot who paid but can't book calls the club owner; a pilot who didn't pay but could book costs the club money.

The constraints#

  • Mobile first. Pilots buy hours on their phones, often right before they want to fly, so checkout has to be quick and safe on Android.
  • Money must be right. A double charge or a lost top-up is a support call and a trust problem for a small club.
  • Card details never touch our servers. Payments go through Stripe's hosted flows, which keeps the club out of handling raw card data.
  • Owners need a history. Club owners and pilots both need to see what was bought, when, and what's left.

What I built#

Flaps10 payment screens: club memberships and subscriptions
Memberships and subscriptions, with the pilot's balance and purchase history.

I worked on the backend behind three payment features:

  • Yearly club memberships. A pilot joins a club and pays the yearly membership through Stripe; the membership's status decides whether they're in good standing.
  • Block-hour packages. Pilots buy packages of flight hours at checkout. A successful payment adds hours to their balance.
  • Balance and purchase history. The Subscriptions screen shows the pilot's memberships, remaining hours and every purchase.

Around the payments sit the screens they unlock: a booking form for a chosen aircraft and time slot, a day-view calendar of each aircraft's bookings, and per-flight logs of air and flight time.

Flaps10 checkout for block-hour packages
Buying a block-hour package at checkout.

How the billing fits together#

How Flaps10 billing fits together: a yearly membership is a Stripe subscription and a block-hour package is a one-time Checkout payment; Stripe sends signed webhook events to the backend, which verifies them, records each event once, and updates the pilot's membership status and hour balance; the booking screen reads those to decide whether the pilot can book
Two Stripe flows in, one answer out: can this pilot book?

The hard parts, and the decisions behind them#

Two products, two Stripe flows#

A membership and an hour package aren't the same kind of payment, so they shouldn't be modelled the same way in Stripe. A yearly membership is a recurring charge with a lifecycle: it renews, payment can fail, it can be cancelled. A package of hours is a one-time purchase. Stripe's events reflect that difference, and so does the code that listens to them:

Product Stripe flow Grant on Also handle
Yearly club membership Subscription invoice.paid, with the subscription active Renewals, invoice.payment_failed, cancellation
Block-hour package One-time Checkout payment checkout.session.completed with payment_status paid Delayed payment methods, refunds

These are the general rules for each kind of product, from Stripe's subscription and Checkout fulfillment docs.

Access from webhooks, not from the success screen#

The tempting shortcut in a mobile app is to grant hours when the app shows "Payment successful". But that screen is just the app's opinion; the network can drop, the app can be closed, and a determined user can fake it. The source of truth is Stripe's signed webhook, verified on the server.

Every event exactly once#

Stripe delivers webhooks at least once, so the same "payment succeeded" can arrive twice. For hour packages, a duplicate would add hours twice. The fix is to record each event's ID under a unique key in the same database transaction as its effect, so a repeat changes nothing. I wrote the whole pattern up, with code, in Stripe webhooks that never double-charge; it's the post I wish I'd had before working on this flow.

What clubs and pilots can do now#

  • Pilots join a club and pay the yearly membership in the app, without paperwork or bank transfers.
  • Pilots buy block hours on their phone and see them in their balance straight away.
  • Everyone sees the same history: what was bought, when, and what's left.
  • Booking follows payment: the aircraft calendar and booking form sit on top of the same membership and hours data.

Tech stack#

Layer Technology
App Android, published on Google Play
Backend API and Stripe webhook handlers
Payments Stripe Checkout, Stripe Billing (subscriptions), webhooks
My part The backend Stripe flow: memberships, block-hour packages, balances and purchase history

More screens are on the Flaps10 project page, with a link to the app on Google Play.

Need billing done right the first time?#

Memberships, prepaid packages, credits and usage-based pricing all reduce to the same few rules: grant from verified webhooks, process each event once, and keep one source of truth for what a customer may use. If your product charges in more than one way, my guide to usage-based billing with Stripe covers metered and credit models.

Have a similar problem? Let's talk about your project. Email mhuzaifaa.dev@gmail.com or see the projects I've shipped.

FAQ#

How do flying clubs charge for memberships and flight hours online?#

Usually with two products: a recurring yearly membership, billed as a subscription, and prepaid packages of flight hours, sold as one-time purchases. A payment platform like Stripe handles the cards, and the club's app grants membership status and adds hours when Stripe confirms each payment.

What are block hours in a flying club?#

Block hours are flight time a pilot pays for in advance, usually as a package, often at a lower hourly rate than paying per flight. The club tracks each pilot's remaining hours and deducts flight time as they fly, so the app needs an accurate balance and purchase history.

Should a membership be a Stripe subscription or a one-time payment?#

If it renews automatically, use a Stripe subscription: it handles renewals, failed payments and cancellations, and sends events for each. If members pay once and renew by hand, a one-time Checkout payment with an expiry date in your own database is simpler.

How do you stop Stripe from adding prepaid hours twice?#

Grant hours only from a verified webhook, and store each event's ID under a unique database key in the same transaction that adds the hours. When Stripe delivers the same event again, the insert finds the ID already recorded, and the hours aren't added a second time.

Can Stripe handle both subscriptions and one-time purchases in one app?#

Yes. Stripe Checkout supports both a subscription mode and a one-time payment mode, and both can share one Stripe customer. Your backend listens for the events each needs, such as invoice events for subscriptions and Checkout completion for one-time packages, and updates one account record.

Muhammad Huzaifa Abdulahad
Written by

Muhammad Huzaifa Abdulahad

Full-Stack Software & DevOps Engineer

I build SaaS platforms with Node.js, NestJS, TypeScript and PostgreSQL, and run them on Linux, Docker, AWS and CI/CD — from the first line of code to production.

Related articles

See all posts →

Have a complex idea? Let's build it together.

From MVPs to scalable products, let's turn your idea into reliable software built for real-world impact.