Paid event bookings are now self-healing after payment
26-06-2026What's new
More payment flows are now self-healing after a successful payment
- The same protection that makes paid event bookings recoverable now covers insurance renewals,
waitlist "claim your spot" payments, and external-event entries. If a parent's device drops the connection right after their card is charged, our Stripe safety net finishes the job automatically — the renewal is recorded, the waitlist spot is promoted (or refunded if the event filled in the meantime), and competition entries are confirmed and locked.
- These public payment pages now never show a "failed / try again" message after a payment has
actually gone through. Instead they show a reassuring "Payment received — we're confirming this automatically" message with a payment reference, so no one is ever prompted to pay twice.
- A grading/event booking link now refuses to start a second charge if that place is already
booked or paid for.
Staff can confirm an invited student straight onto the booked list
- On an event's invite list, staff now have a "Confirm" action: it adds the invited student
directly to the booked list without the parent needing to use the public booking link.
- A confirmation prompt makes the money state obvious — for paid events it warns that *payment
will remain unpaid/pending unless you collect it separately*. It never marks a booking as paid unless a real payment exists.
- It's safe to click more than once (already-booked is a no-op), respects event capacity (a full event
adds them to the waitlist, and promotes a waitlisted student only if a place is free), and only ever sends one confirmation. Owners/admins can use it; it's blocked in demo mode.
Paid event/grading bookings can no longer "fail" after a successful payment
- Previously, if the booking step hiccuped *after* a card payment had gone through (a dropped
connection, the page closing), the parent could see a scary "Booking failed" message even though the money had been taken.
- Now a successful payment is always recoverable. The booking is confirmed by our secured server,
and a Stripe safety net finishes the job automatically even if the parent's device never completes the flow. The confirmation step is idempotent, so retries can never double-book or double-charge.
- If for any reason the booking can't be confirmed instantly, the parent sees a reassuring **"Payment
received — we're confirming your booking automatically"** message with a payment reference, instead of an error.
- A booking link can now only ever create one Stripe payment, even if it's opened on two devices.
_Behind the scenes: a shared reconcilePaidEventBooking path is now used by both the payment-confirm route and the Stripe webhook; if an event fills up between the invite and payment, the booking is kept as waitlisted + paid (unchanged behaviour) for staff to promote or refund._
Member data is loaded through our secured server — everywhere
A privacy/data-protection pass: every screen that lists members — including the grading panel roster — now loads names, dates of birth and grade info through our secured server with the club checked on every request, instead of the browser reading the database directly. Nothing changes in how the screens look or work; the data just takes a safer path. (This completes the work so that no member list is read directly by the browser anymore.)
Grading results: tighter controls
- Recording a grading outcome (pass / late / no-show / unsuccessful) now requires a coach or above —
view-only accounts can no longer record results.
- Grading promotions are being moved so the server decides and validates the awarded grade (you
can't promote a member sideways, backwards, into the wrong belt system, or skip grades unless an examiner deliberately chooses a different belt). The double-promotion option on the panel is unchanged. _(This stronger validation switches on with a database update; until then the existing checks stay in place.)_
- New: a review-and-confirm step for grading results is being introduced behind a per-club setting (off by
default — nothing changes for your club until it's switched on). When it's on, marking results saves them as drafts; each member shows a status (Draft / Ready / Needs attention / Confirmed / Published); and a Review promotions screen lets an admin see each "current grade → new grade", spot any blocked awards, and Confirm them all at once. After confirming, a change goes through an audited correction (reason required) rather than a silent undo. Publishing and certificates are unchanged for now.
Event booking cut-off dates are checked as you type
The booking cut-off on the event form now validates immediately instead of only when you hit Save:
- The field shows a friendly inline error the moment a date is out of range, and Save is disabled until
it's fixed — no more typing a whole event then getting rejected on Save.
- The rules are now clearer and consistent: the cut-off must be on or before the event date, can't be
before today on a new event, and can't be before the date the event was created when you edit one.
- Move an event's date earlier than its cut-off and the cut-off field highlights so you can correct it.
- The form also now loads the existing cut-off when you edit an event (it previously didn't show it).
- Older events with an invalid cut-off still open normally, but you'll be asked to fix the cut-off before
saving any change. The server enforces the exact same rules, so nothing slips through.