My gym software started selling the gym itself
A gym is a big empty room for a good part of the day. The membership software I built runs classes and billing, but it had nothing to say about the floor sitting idle on a Sunday afternoon. Renting that floor out lived in email threads, a PDF someone had to sign, and a separate invoice I had to chase. So this week the gym OS learned to do the whole thing itself.
PA Gym OS is the Next.js platform at app.persistenceathletics.com I built to replace Wodify. The new piece is Space Rentals: one path from a coach typing a quote to a signed, paid agreement, built on the billing rails the gym already had.
The shape
The rate card is firm: $300 an hour with a two hour minimum, $1,200 for a half day of 4 hours, $2,000 for a full day of 8 hours. The flow is one link. A coach builds a quote, the platform sends a branded proposal email from info@, the renter opens it and signs by picking a handwriting font and typing their name, then pays through a Stripe Checkout session on the gym's own pay.persistenceathletics.com domain. The agreement page then shows a payment-confirmed banner. The agreement itself carries real terms: a cap of 40 people, a certificate of insurance naming the gym, and a 50% refund if cancelled at least 7 days out, none inside of 7.
old: rent the floor over email and a PDF, chase a signature, send a separate invoice, hope it gets paid.
new: quote to signed agreement to paid Stripe checkout in one link, $300/hr, no third party in the middle.Reusing the rails, not rebuilding them
I did not stand up a new payment stack for this. A rental rides the same invoices table, the same Stripe layer, and the same SendGrid sender that memberships use. The one new idea is isolation: a renter becomes a guest member with the status rental, which keeps them out of the gym's member rollups and out of the nightly sync to the CRM. They are never attached to a real member's account, so a one-off renter can never get tangled up with someone's membership.
The money path is the part you harden
The first version used a hosted Stripe invoice. I moved it to a branded Checkout session on the gym's own pay domain, then spent the rest of the work hardening the money path, because that is the part that has to be right. A cancel guard returns a 410 if the rental is cancelled or its invoice was voided, so a stale pay link cannot charge anyone. The webhook confirms the invoice actually belongs to the rental before it marks it paid. The Stripe customer is saved on the first visit so a retry does not orphan a second customer. The renter's member and invoice IDs are written before the Stripe round trip, so re-sending a proposal reuses them instead of opening a second charge. And the signature endpoint is idempotent: sign twice, it records once.
Two correctness bugs the same week
While that shipped, two billing bugs surfaced that were worth fixing properly. The first was a booking gate. The app would let a member book a class for a date past the period they had actually paid for, because the check asked whether the account looked fine today, not whether the class date fell inside a paid window. The fix computes a paid-through date and gates the class date against it, and re-checks it when promoting someone off the waitlist so the gap cannot reopen. The real exposure was zero, no unpaid future bookings existed, but 10 lapse-prone members would have walked through it.
The second was a display bug, and an honest one. A renewal preview showed the full price even when an account credit would net it down at charge time. It was never an overcharge, the credit applied correctly when the charge fired, but the number the member saw beforehand was wrong, and a wrong number erodes trust even when the money is right. The fix nets the available balance at display time on every preview surface, while the draft stays at full price so the credit applies once, at the charge, not twice. I wrote both fixes down as billing rules so they cannot quietly regress.
What I learned
A gym is a room, and a room is inventory. The most valuable thing I shipped this week was not another workout screen. It was the feature that sells the empty floor, $300 an hour or $2,000 a day, from quote to paid in a single link.
Reuse the money rails you already trust. Rentals ride the same invoices, Stripe, and email path as memberships, with renters isolated as guest members so they never touch the member rollups or the CRM sync. New revenue, almost no new surface to break.
An authorization check that reads the present tense lets the future through. The booking gate passed because it asked "is this account fine right now" instead of "is this class date inside a period they paid for." The fix was to check the date against a computed paid-through window, and to re-check it on waitlist promotion. Any subscription product has this bug hiding somewhere.
If your business has a workflow living in email threads and PDFs that really should be one link, that is what Autosterea builds.
First published on ravikantdewangan.com.

