Cash change to the rider's wallet
Built: 2026-11-02. Written for operators and for whoever maintains the code.
A rider paying cash often has no exact change, and drivers often have none to give. Careem's answer, common across the Gulf, is that the rider hands over more than the fare and the driver credits the difference to the rider's wallet from the app:
- the rider keeps the money for their next ride;
- the driver keeps the cash;
- nobody argues about change at the kerb.
RideKit now does this.
Setting it up
Admin → Markets → a country → Payments → Cash change to wallet.
- Drivers can add change to the rider's wallet. On by default in Saudi Arabia and the UAE, off elsewhere.
- Most change per trip. SAR/AED 50 by default. This stops a typo from moving a driver's cash into a rider's wallet.
- Time to add it. 30 minutes after drop-off by default (5 to 1440).
What happens
Driver. After a cash trip, the trip-complete screen shows "Collect SAR 10.00 in cash", with an Amount received box. As the driver types, the app shows what will happen:
- "SAR 5.00 will go to Priya's wallet";
- or why it can't: not more than the fare, or more change than the cap.
The button says the amount: "Add SAR 5.00 to their wallet". Once pressed, the card shows "✓ SAR 5.00 added to Priya's wallet. Received SAR 15.00 for a fare of SAR 10.00." The ride is done; there is no undo in the app.
It is offered only on a completed cash ride, once, within the time limit. Rides paid by wallet, card, company account or at a prepaid booth never show it.
Money. One ledger entry, reason cash_change, keyed to the ride so a
retry posts nothing twice:
- the driver's wallet is debited the change (they hold it in cash; the wallet may go below zero, like the commission owed on cash trips);
- the rider's wallet is credited.
The fare, the commission, the tax invoice and the driver's earnings are unchanged.
Rider.
- A push notification in their language: "Your driver added SAR 5.00 in change from your cash fare to your wallet."
- On the receipt, under the total: "You paid SAR 15.00 in cash. SAR 5.00 change was added to your wallet."
- In the wallet: "Change from a cash ride +SAR 5.00".
Admin → Trips → a trip shows both legs under Settlement: "Change kept in cash by the driver −SAR 5.00" and "Change to the rider's wallet +SAR 5.00".
Driver's wallet lists it as "Change to a rider's wallet".
If a driver gets it wrong
A driver who enters too much loses that money to the rider, up to the cap. Support can correct it with a wallet adjustment on both wallets (Admin → Riders / Drivers → wallet). The ledger entry stays as the record.
Not covered
- Underpayment. A rider who pays less than the fare does not get a debt
recorded on their wallet. That belongs with Mexico's cash-first work
(
mx-cash-firstin the compliance tracker).
For maintainers
| Area | Files |
|---|---|
| Rules (pure) | backend/src/payments/cash-change.ts: cashChangeConfigFor, cashChangeBlock, cashChangeFor |
| Service / API | payments/cash-change.service.ts; GET/POST /driver/rides/:id/cash-change (cash-change.controller.ts) |
| Ledger | LedgerReason.CASH_CHANGE; WalletService.creditCashChange (key ride-cash-change-<rideId>) |
| Storage | Migration 1700000131000-CashChange.ts: ledger reason, rides.cash_change_minor, rides.cash_received_minor |
| Push | cash_change_credited in notifications/push-copy.ts (11 languages) |
| Market config | cashChange section, validated in markets.service.ts |
| Driver | src/components/CashChangeCard.tsx on rate.tsx; src/lib/cash-change.ts (preview, same rules as the server) |
| Rider | receipt note cashChangeReceipt in trip/[id].tsx; wallet label txnCashChange |
| Admin | components/markets/CashChangeCard.tsx; TripMoney.tsx leg labels |
| Tests | payments/cash-change.spec.ts, driver src/lib/cash-change.test.ts |