Handback
AI rental inspections with PayPal-held deposits (PayPal AI Hackathon 2026)
Rental shops and customers argue over whether damage is new, and deposits are all-or-nothing.
AI photo diffing against a signed baseline, with deposits held and settled through PayPal.
Customers pay only for new damage, approved by a person and backed by photo evidence.

- Role
- Full-stack development
- Year
- 2026
- Stack
- TypeScript, React, Node.js, Express, PostgreSQL, PayPal APIs, Gemini, Vitest, PWA
Overview
A rental-shop app that photographs an item at pick-up and return, uses AI to find only the new damage, and settles the deposit through PayPal so the customer pays for that damage and nothing else.
The problem
Every rental shop has had the "that scratch was already there" argument. Without a shared record of condition, deposits are kept or refunded in full, and neither side trusts the outcome.
What I built
- 1Built a Node.js and Express REST API over PostgreSQL with a React front-end, shipped as an installable PWA on Render.
- 2Held the deposit as a PayPal authorization at pick-up, so $0 is charged until settlement.
- 3Recorded a signed baseline: Gemini lists existing marks on each photo angle and the renter agrees before the item leaves.
- 4At return, asked the model one question per angle, what is new since pick-up, and priced findings from the shop's own price list.
- 5Modelled each rental as a state machine with per-rental locks and idempotent PayPal calls, so a retry can never charge twice.
Highlights
- The AI has no payment access: the owner approves every charge and low-confidence findings go to manual review.
- Money rules in code: integer cents, capped at the hold, one capture per rental.
- 31 Vitest tests covering money rules and the full rental flow.
How it works
- React PWA
- Express REST API
- Gemini: baseline + diff
- Rental state machine (PostgreSQL)
- PayPal authorize → capture / void
Key decisions and trade-offs
Diff, not a guess
The model compares against a baseline the renter signed, so old marks never cost anything.
People decide money
AI findings are observations; only the settlement service calls PayPal, after the owner approves.
Idempotent payments
Per-rental locks and reused PayPal request ids mean retries cannot double-capture.
Screens

