Ramadan mode: season pricing, iftar reminders, round-ups for captains
Built: 2026-11-02. Written for operators and for whoever maintains the code.
In Ramadan the Gulf's day turns around. Demand shifts to the hours before iftar (sunset) and to late-night suhoor trips before dawn, and working hours get shorter. Apps run charity drives: Careem and Hala raised AED 300,000 for captains in one Ramadan. Ramadan mode lets a RideKit operator plan for the month once and have it switch itself on and off:
- its own pricing rules (e.g. the evening after iftar), optionally in place of the usual ones, and a tighter surge ceiling;
- reminders to drivers before iftar and before suhoor ends, at the times the sun gives for the market's city;
- quests dated to the month (ordinary driver incentives);
- round-ups for captains: riders who choose it pay each wallet or card fare rounded up to the next whole unit; the difference goes into a captains' fund that the operator shares out to drivers.
Setting it up
Admin → Ramadan (needs pricing.manage; the fund needs report.view
to see and payout.approve to pay out).
- Season.
- Dates:
- Umm al-Qura calendar (automatic) follows Saudi Arabia's official calendar: on for the whole of the month of Ramadan in the market's time zone. The page shows the next season's dates.
- Fixed dates is for markets that announce the start by moon sighting (the UAE): set the first and last day once the dates are announced.
- Surge ceiling (×): empty keeps the market's; set, the tightest of the market's, the region's, the ride type's and this one wins.
- Ramadan rules replace the usual ones: on, only the Ramadan rules apply in season; off, they apply on top of the usual surge/night rules.
- Reminders and how many minutes before iftar and before suhoor ends.
- Riders can round up for captains.
- Dates:
- Ramadan pricing rules. Time windows with a multiplier, applied only while the season is on. They also appear in Admin → Pricing with a "Ramadan" badge.
- Ramadan quests. "Add quest" creates a driver incentive (trips → reward) running for the whole season window. It is an ordinary incentive (Admin → Driver Incentives).
- Times. Iftar and the end of suhoor are worked out from the market's map centre (Admin → Markets): sunset, and dawn at the sun 18.5° below the horizon (the Umm al-Qura angle). They are within a minute or two of the published timetables, which is what a reminder needs. They are not a prayer timetable.
What happens
- Pricing. While the season is on, each quote and booking applies the Ramadan rules (and the usual ones unless replaced), clamped by the season's ceiling. Out of season the Ramadan rules are ignored. The public fare table shows the season's ceiling as the market's cap while it is on.
- Drivers. Every 5 minutes in season: drivers who went online in the
last 14 days and are offline now get one push a day before iftar ("Iftar is
at 18:20 — riders head home before iftar, go online now") and one before
suhoor ends, in their language.
season_reminderskeeps one row per driver, kind and day, so nobody is reminded twice. - Riders. The home screen shows a Ramadan card in season: iftar today and the round-up switch, with what the rider has given so far.
- Round-ups. At the end of a ride paid by wallet or card, for a
rider who switched it on, the fare is rounded up to the next whole unit
(AED 14.20 → 15.00; currencies with no minor unit never round). The
difference moves rider wallet → captains' fund (
captain_fundsystem account, ledger reasoncaptain_roundup, keyride-roundup-<ride>).- A card ride's capture takes the fare plus the round-up, the same way it takes a cancellation fee. It rounds up only when the hold covers both.
- A wallet that cannot cover it is skipped. A round-up never leaves a rider owing.
- Cash and company rides never round up.
- The receipt shows "Round-up for captains" under the fare; the total includes it. The wallet history shows it under the same name.
- Sharing the fund out. Admin → Ramadan → Share the fund out: pick a window and a minimum number of completed trips, preview, and pay. The fund is split equally among the drivers who qualify. What does not divide stays in the fund. Drivers see "Ramadan round-ups from riders" in their wallet and get a push. Every payout is listed on the page.
Checking it
GET /admin/seasons/ramadan(status, today's times),GET /admin/seasons/ramadan/report?from&to(round-ups, opt-ins, fund, payouts).GET /seasons/currentandPUT /seasons/round-up {optIn}for riders.
Legal and local confirmation
The dates, the time calculation, the reminder wording and the fund's rules are configuration. Before the season, confirm with the local authority and your legal team:
- the start and end of Ramadan as announced;
- whether a charity-style round-up needs a permit (charitable fundraising is regulated in both the UAE and Saudi Arabia). As built, it is a voluntary tip pool for drivers, not a donation to a charity;
- how payouts to drivers are taxed.
Not built
- No per-zone or per-ride-type season; the season applies market-wide.
- Times use the market's map centre, not each driver's location.
- Push delivery needs the push provider set up; on simulators without push tokens the reminders are recorded but not shown.
- No other seasons yet (Eid, Hajj have their own features); the table has a
kindcolumn for them.
source: docs/ramadan-mode.md (ships identically in the product zip)