RideKit
Docs/Reference/Mexico: an ID for riders who pay cash

Mexico: an ID for riders who pay cash

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

A cash trip leaves no card or bank trail. Drivers in Mexico have been robbed by "riders" on throwaway accounts. Uber, DiDi and inDrive there ask a rider who pays cash for an official ID (the INE) and a live selfie before their first cash trip. RideKit now does the same.

What the rider sees

  • Booking with cash, not yet verified: under the payment method, "Verify your ID to pay cash. Verify". Booking cash anyway opens the ID screen.
  • ID for paying cash (from that note, or Account → ID for paying cash):
    • a photo of the front of their INE (camera, or from their photos);
    • a selfie with the front camera;
    • Send for checking.
  • Then one of:
    • Verified: they pay cash from now on. It is asked only once.
    • Being checked: a person is looking at the photos. Until then they pay by card or wallet.
    • Not accepted: with the reviewer's reason, and they try again.

Card and wallet bookings never need this.

How it is checked

The selfie is compared with the face on the INE by AWS Rekognition, the same service as drivers' selfie checks (Admin → Providers → AWS Rekognition).

  • A match at or above the bar (85% by default) passes on its own.
  • Below the bar, or no face found: not accepted, and the rider tries again.
  • No AWS keys, or the service failed: the check waits for a person.

Without AWS keys every ID waits for a person. Nothing breaks.

Admin

Face checks → Cash riders' IDs: each check waiting for a person, with the selfie and the ID photo side by side.

  • It's the rider lets them pay cash;
  • Not the rider needs a reason, which the rider reads in the app.

The rider gets a notification either way. Reviewing needs the new rider.verify permission. Every role that could review drivers' papers (driver.verify) has it. Each decision is in the audit log.

Markets → Mexico → ID for riders who pay cash:

Setting Default
Ask riders for an ID before they pay cash On in Mexico, off elsewhere
Match needed (%) 85, lower than drivers' 90: the INE photo can be years old
Keep ID images (days) 90
A rider whose ID waits for review may pay cash Off

Personal data

  • The images are private files, never public links. Reviewers see them through links that last 5 minutes.
  • Both images are deleted after the retention period. The result (passed, approved, rejected) stays.
  • Deleting the account deletes the images and the checks. It now also deletes drivers' face-check selfies, which it did not before.
  • The upload is checked by its bytes (JPEG, PNG or WebP), not by the name the phone gave it.

Code

  • backend/src/riders/cash-rider-id.ts: the market setting and when cash is refused (no I/O);
  • riders/cash-rider-id.service.ts:
    • GET/POST /api/riders/me/cash-id;
    • /api/admin/rider-id-checks (queue, photos, review);
    • the daily image purge;
  • rides/rides.service.ts: a cash booking is refused with cash_id_required (missing, reviewing, failed or rejected);
  • account/account-erasure.service.ts: images and rows on deletion;
  • migration 1700000160000-CashRiderId;
  • rider app:
    • app/(app)/cash-id.tsx;
    • the note in confirm.tsx;
    • the menu row;
    • push taps;
  • admin:
    • the second tab on face-checks/page.tsx;
    • components/markets/CashRiderIdCard.tsx.

The rider app's camera and photo-library permission texts now name the ID photo as well. They take effect in the next app build.

Check locally

  • Consent and notice. Under the LFPDPPP, an ID photo and a face are personal data, and the face is sensitive data. Add this purpose to the rider privacy notice (Admin → CMS) and confirm the retention period with your counsel.
  • ID numbers. RideKit does not read or store the INE's numbers (CURP, clave de elector). Validating them against the INE's own service is a separate, paid integration.
source: docs/cash-rider-id-mexico.md (ships identically in the product zip)