All projects
AIFull-Stack

Handback

AI rental inspections with PayPal-held deposits (PayPal AI Hackathon 2026)

Problem

Rental shops and customers argue over whether damage is new, and deposits are all-or-nothing.

What I built

AI photo diffing against a signed baseline, with deposits held and settled through PayPal.

Result

Customers pay only for new damage, approved by a person and backed by photo evidence.

Handback preview
Role
Full-stack development
Year
2026
Stack
TypeScript, React, Node.js, Express, PostgreSQL, PayPal APIs, Gemini, Vitest, PWA
$0
charged at pick-up
31
tests on money rules and flow
5
PayPal steps: authorize to refund

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

  1. 1Built a Node.js and Express REST API over PostgreSQL with a React front-end, shipped as an installable PWA on Render.
  2. 2Held the deposit as a PayPal authorization at pick-up, so $0 is charged until settlement.
  3. 3Recorded a signed baseline: Gemini lists existing marks on each photo angle and the renter agrees before the item leaves.
  4. 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.
  5. 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

  1. React PWA
  2. Express REST API
  3. Gemini: baseline + diff
  4. Rental state machine (PostgreSQL)
  5. 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

Handback landing page with a pick-up versus return photo slider
Landing: drag to compare pick-up and return photos
AI inspection view with new damage boxed and a proposed settlement
AI inspection: new damage priced, old marks ignored, uncertain findings sent to review (sample values)
Next project
AI-SDLC Pipeline
From a Statement of Work to software delivery, with AI agents