Inspiration

PayPal already moves money for millions of people. The hackathon asks what happens when AI is behind the wheel. We wanted something where AI does not just chat about payments—it decides whether money moves.

That led to Mandate: hold funds first, do the work with an agent, then let a second model capture or void the PayPal authorization.

What it does

  1. A buyer posts a brief, acceptance rules, and a budget.
  2. Mandate creates a PayPal sandbox order with intent: AUTHORIZE.
  3. The buyer approves the hold with a sandbox personal account.
  4. A worker model writes the deliverable.
  5. A separate verifier model scores the work against the rules and returns release or reject.
  6. Release → PayPal captures the authorization.
  7. Reject → PayPal voids the hold.

PayPal stays the source of truth. The UI shows order id, authorization id, capture id, and status. Manual capture/void overrides remain if the model fails—so judges can still finish the payment path.

Two built-in demos:

  • Should be paid — clean work → capture
  • Planted failure — broken draft on purpose → void

How we built it

  • Node.js + Express for the API and static UI
  • SQLite for the mandate ledger
  • PayPal Orders v2 (AUTHORIZE) + Payments v2 (capture/void)
  • PayPal JS SDK for sandbox buyer approval
  • OpenAI-compatible chat API for two separate model calls (worker, then verifier)
  • A small rule gate that can block a capture, but never force one

We avoided Payouts so the sandbox demo works without extra account permissions.

Challenges

  • Keeping PayPal central, not a fake “paid” button—status comes from authorize/capture/void responses
  • Separating worker and verifier so the payment decision is not the same prompt that writes the work
  • Making both outcomes easy to demo under 3 minutes for judges

What we learned

Authorize-then-capture is a strong pattern for agent payments: money can wait until work is verified. AI is useful as a gate, not only as a generator.

Share this project:

Updates

Submission history