Inspiration
Small online sellers lose money to PayPal fees and disputes without ever seeing the full picture. The order is in one place, the fee in another, and the dispute email arrives with a response deadline that is easy to miss. KeepMore Finance puts the three side by side so a seller can see what a sale really kept, and answer a dispute with evidence while there is still time.
What it does
- Orders, fees and disputes in one workspace. Every PayPal sandbox order is linked to its fee and to any dispute on it, with an overview and a cross-filter (click a status, and every grid and chart filters with it).
- Dispute workspace. A truth map lines up what the buyer claims against what the seller's own records show, and shows the response deadline.
- AI drafting with Gemini. Gemini suggests a reply from the seller's records. A rule-based gate then checks every claim in the draft against those records before it can be used, so the draft cannot cite evidence that does not exist.
- AG Grid and AG Studio. The tables are AG Grid (customisable columns, sorting, filtering). An AG Studio assistant answers plain-language questions about the data. It is experimental: it can take about 25 seconds and may retry steps.
- PayPal sandbox integration. Orders v2 (create and capture), Disputes v1 and webhooks, running against the free PayPal sandbox only.
How we built it
Next.js 16, React 19, TypeScript, Prisma with libSQL, Zod and Tailwind. AG Grid 36.2.0 and AG Studio 3.0.0 for the data views. Gemini (gemini-3.5-flash-lite) for suggestions and the assistant. The demo video voice-over was generated with Gemini text-to-speech. Setup and run steps are in the README, so judges can run it locally.
Testing and quality
74 Vitest test files and 10 Playwright end-to-end specs. GitHub Actions runs lint, typecheck, tests, e2e and build on Node 22 and 24 for every pull request and push to main. For the AI part we wrote 36 invented dispute cases (24 for development, 12 held out) and froze the expected labels before the first run. The model alone matched the labels on 33 of 36. Across 111 claims in the drafts, 0 cited evidence that did not exist. These are invented cases, not real disputes, so we make no claim about real-world win rates.
Challenges
- The PayPal sandbox checkout page sometimes shows "Things don't appear to be working at the moment" on PayPal's side, although our app's order creation returns HTTP 201. We note this in the README instead of hiding it.
- Keeping the AI honest: every claim in a draft has to be checked against the seller's records before it is used.
- Fee figures come from PayPal's India fee page dated 28 March 2024 and may have changed.
What we learned
A fluent draft is not the same as a correct one, so each claim is checked against the seller's own records.
What's next
A faster assistant and seller-specific fee settings.
Limitations (please read)
Sandbox only. Demo data is simulated. No Seller Protection or win-rate claims are made. The AG Studio assistant is experimental.
Built With
- ag-grid
- ag-studio
- gemini
- libsql
- next.js
- paypal-sandbox
- prisma
- react
- tailwindcss
- typescript