Brazil: cash rides, gated by identity, and drivers who refuse cash
Built: 2026-11-03. Written for operators in Brazil and whoever maintains the code.
Cash trips are where drivers in Brazil get robbed. 99 and Uber keep cash but put two guards around it, and RideKit now does the same by default in Brazil.
Riders who pay cash are known
- Every rider in Brazil gives a CPF before the first booking (docs/brazil-rider-cpf.md).
- To pay cash, a rider also shows an official photo ID (RG or CNH) and takes a
selfie, once. This is the same check Mexico uses (docs/cash-rider-id-mexico.md):
- the face is compared with the ID photo;
- unclear cases go to a person;
- the images are deleted after the retention period.
- Card, Pix and wallet riders are not asked for the ID.
Admin → Markets → Brazil → KYC → Cash rider ID turns it off or adjusts it.
Drivers may turn cash off
- Driver app → Settings → Cash rides. When it is off, the driver is offered only rides paid in the app (card, Pix or wallet).
- The matching query honours the setting, so the driver never sees a cash offer to decline.
- Turning cash back on always works.
- Admin → Markets → Brazil → Payments → Drivers' cash choice decides whether
drivers may turn it off. It is on by default in Brazil.
- In other markets an operator may turn it on. Where cash is most of the trade, letting drivers refuse it can leave cash riders without a car.
- When it is switched off, any driver opt-outs already saved are ignored until it is switched on again.
For the code
| What | Where |
|---|---|
| Rules | backend/src/drivers/driver-cash.ts (driverCashFor, cashOptOutApplies); riders/cash-rider-id.ts (BR on) |
| Matching | drivers/drivers.service.ts findNearby ($25, cash_opt_out); rides/dispatch.service.ts |
| Preference | drivers/driver-preferences.service.ts (cashOptOut, cashChoice, error cash_choice_off); migration 173 |
| Driver app | app/(app)/settings.tsx (settings-cash) |
| Admin | components/markets/DriverCashCard.tsx |
source: docs/brazil-cash-rides.md (ships identically in the product zip)