RideKit
Docs/Reference/Mexico: cash as a main way to pay

Mexico: cash as a main way to pay

Built: 2026-11-03. Written for operators in Mexico and for whoever maintains the code.

In Mexico more than half of ride-hailing trips are paid in cash. Cash is the default on the rider's confirm screen. On top of that, the platform now handles the two things that go wrong with cash at the car:

  • the rider hands over too much and the driver has no change;
  • the rider hands over too little.

It also lets an operator switch cash off in one city while it stays on everywhere else.

At the end of a cash trip (driver app)

The driver's end-of-trip card says how much cash to collect. The driver enters what the rider handed over:

  • More than due: the difference goes to the rider's wallet as change. The driver keeps the cash, and their wallet is debited the change. This already existed for Saudi Arabia and the UAE; it is now on in Mexico too.
  • Less than due: the driver is paid the missing amount at once, into their wallet. The rider is charged the same amount on their wallet. If the wallet does not cover it, the wallet goes below zero: that is the rider's pending balance.
  • Exactly what was due: there is nothing to record.

Each trip takes one entry, within 30 minutes of drop-off. The rider gets a push in their language.

The pending balance (rider)

A rider whose wallet is below zero:

  • sees the pending balance on the Wallet screen;
  • sees "Includes MX$X pending from an earlier cash trip" on the confirm screen when paying cash.

How their next booking behaves depends on how they pay:

  • Booking in cash: allowed while the balance is no more than the market's cap. The trip carries the balance, and the driver's card says "Collect MX$116.88 in cash: fare MX$53.25 plus MX$63.63 the rider owes from an earlier trip". When the trip completes, the balance is collected: the driver's wallet is debited it and the rider's wallet is back to zero.
  • Booking by card or wallet, or a balance above the cap: refused with "You have MX$X pending…". The app switches to cash so the rider can settle it with the trip. A top-up clears it too.
  • Billed to a company, or prepaid at a booth: not held up.

Only one open trip carries the balance at a time. Settlement never collects more than the rider still owes: if they topped up after booking, less is collected.

The trip receipt shows:

  • "You paid X in cash; the missing Y was charged to your wallet" on a short trip;
  • "Includes Y pending from an earlier trip, now paid" on the trip that collected it.

Cash city by city

Admin → Zones → a region → Cash can be set to:

  • As the market (taken);
  • Taken here;
  • Not taken here.

The smallest region that says wins, so a city can switch cash off while its state keeps it, or the other way round. A cash booking with its pickup inside a region where cash is off is refused with "Cash isn't taken in {region}", and the rider app moves to the wallet. The region shows a "no cash" chip.

Settings

Admin → Markets → Mexico → Payments → Cash change to wallet:

Setting Default in Mexico
Drivers can add change to the rider's wallet on
Most change per trip MXN 500
Time to add it after drop-off 30 minutes
Riders who pay less leave a pending balance on
Most left pending per trip MXN 500
Most a cash trip collects MXN 500

Saudi Arabia and the UAE keep change on and shortfalls off. Markets with shortfalls off behave exactly as before, including riders whose wallet ran below zero from a metered overrun.

In the ledger

Two new ledger reasons. Neither is fare, and neither carries commission.

  • cash_shortfall: the rider's wallet is debited and the driver's credited (the rider's wallet may go below zero).
  • cash_debt: the driver's wallet is debited (they hold the cash) and the rider's credited.

The admin trip page names both legs: "Rest of the fare paid to the driver", "Left pending by the rider", "Pending balance collected in cash by the driver" and "Rider's pending balance cleared".

Code

  • backend/src/payments/cash-change.ts: the rules (cashReceivedFor, pendingBalanceAtBooking), no I/O;
  • cash-change.service.ts: the driver's card and the entry;
  • wallet/wallet.service.ts: recordCashShortfall and collectCashDebt;
  • rides/rides.service.ts: the region cash check and the pending balance at booking;
  • rides/dispatch.service.ts: collectPendingBalanceSafe at completion;
  • geo/region-rules.ts: cash and cashEnabledAt;
  • migration 1700000150000-CashShortfall;
  • driver app: src/components/CashChangeCard.tsx, src/lib/cash-change.ts;
  • rider app: the confirm screen, wallet.tsx and trip/[id].tsx;
  • admin: components/markets/CashChangeCard.tsx, the zone region form and components/trip/TripMoney.tsx.

Check locally

Whether a platform may hold a rider's unpaid fare as a balance, and how to present it, is a consumer-protection question (PROFECO). Confirm the wording and the caps with Mexican counsel.

source: docs/cash-first-mexico.md (ships identically in the product zip)