Inspiration

Every group plan dies at the money step. Everyone in the group chat says "I'm in," but nobody wants to pay first. One person fronts the deposit and chases friends for weeks, or the plan quietly falls apart. We wanted a way for a group to commit together, where nobody pays unless the group actually reaches the goal.

What it does

Last Call turns "I'm in" into a real, safe commitment.

  1. An organizer creates an event with the amount the group needs and shares one link.
  2. Friends pledge in their own words. Someone types "I'm in for $50 if Emmanuel's in." Our AI (Groq, openai/gpt-oss-20b) reads it and fills in the pledge: max $50, condition "Emmanuel". The friend reviews the boxes and confirms. The AI only suggests; it never moves money.
  3. PayPal holds each friend's maximum with a card authorization. Nothing is charged yet.
  4. The live board shows progress, who's counted, and who is "Waiting on" someone. Conditional pledges, even circles ("I'm in if you're in"), count once everyone they depend on is in.
  5. Last call. When the goal is reached, a short countdown starts. Late friends can still join, and every new person lowers everyone's share.
  6. The lock. PayPal captures each counted friend's share, once, and releases the rest of each hold. Nobody ever pays more than their maximum. If the goal is missed, every hold is cancelled and nobody pays.
  7. A receipt for every friend: Held → Charged → Released, from saved PayPal records.
  8. Safety tools for the treasurer. If a card fails at the lock, the app retries once safely, then flags the event; the treasurer can refund everyone, one refund at a time, behind a separate approval key.

The goal is fee-adjusted, so the club still receives the full amount after PayPal's fees.

Sandbox demo: no real money moves. Everything runs on PayPal's sandbox.

How we built it

  • PayPal Orders v2 with intent AUTHORIZE: card fields place a hold; the lock captures only each share with final_capture; everything else is voided; refunds go one capture at a time. Every PayPal call's request ID is saved before the call, so a retry can never charge or refund twice, and we read PayPal's actual status instead of trusting HTTP codes.
  • AI: Groq (openai/gpt-oss-20b) turns a free-text pledge into a suggested max, minimum and conditions. Plain, tested code validates it, and the friend confirms every value.
  • Python + Flask on Render, Neon Postgres, plain HTML/CSS/JS.
  • Money in integer cents only, all money math in one module, and every status change uses compare-and-set so two requests can't act on the same event.
  • Self-healing: if the server stops mid-lock, the next visit resumes it safely; a cleanup sweep cancels leftover holds; a failed charge is retried once, only if PayPal confirms the hold is still open.
  • 782 automated tests, all passing, against a fake PayPal and a real test database, plus mutation checks: we deliberately broke safety rules to prove a test catches each one.

Challenges we ran into

  • Conditional pledges in a circle. Ana is in only if Jay is, and Jay only if Ana is. We count pledges whose conditions are met by other held pledges (including circles), and show the group exactly who they're waiting on.
  • Never charging or refunding twice. Network failures mid-payment are the hardest case. We save each request ID first, confirm PayPal's real status, and recover half-finished locks and refunds without ever resending blindly.
  • Keeping AI safe around money. The AI can't save, hold or charge anything. It suggests, and the person confirms.
  • Honesty about our evidence. We kept a record of what was verified with real sandbox calls versus a fake PayPal, and say which is which.

Accomplishments that we're proud of

  • The full flow on the live site: AI pledge → PayPal hold → conditional "Waiting on" → last call → share-only capture → receipt.
  • A real sandbox refund-all run: two refunds confirmed by PayPal and the failed friend's hold cancelled (the card failure itself was simulated locally).
  • The AI read 43 of 50 made-up test messages correctly (written with an AI assistant and frozen before scoring). In every miss it never invented an amount or a name.
  • A test suite that proves the safety rules, not just the happy path.

What we learned

  • Emmanuel: how card authorizations differ from payments, and why idempotency and compare-and-set matter when money is involved.
  • Samuel: designing money screens that build trust: clear states, honest wording, and making "held" versus "charged" obvious.
  • Malama: prompting a model for strict, structured output, and measuring accuracy honestly instead of guessing.

What's next

  • A treasurer dashboard for all of an organizer's events (needs accounts).
  • A pay link so one friend whose card fails can pay another way, instead of refunding everyone.
  • Treasurer-chosen pledge and last-call lengths, emailing each friend their private link, and quick-amount buttons.
  • Smarter AI reading: amounts written as words ("forty") and "or" conditions.

Built With

Share this project:

Updates

Submission history