PayPal AI Hackathon 2026 · on the PayPal sandbox
Owed is a refund gate for a shop's AI support agent on PayPal. The AI still talks to the customer and asks for the refund. Code decides the amount from PayPal's records and the shop's, pays through PayPal, and sends the rest to a person.
Try it live on the sandboxThe two-minute versionThe problem
A customer owed $5 asks for $25. A customer owed everything waits days while people check by hand. Both are the same gap: nobody reads the record before the money moves.
How it works
Owed keeps the refund call of PayPal's Agent Toolkit, create_refund, and turns it into a request. Eight rules in whole cents, read from PayPal's capture and refunds, the shop's order and the delivery record. The AI never sets an amount.
The result, on PayPal's refund call
Live on the PayPal sandbox
Two real orders per game, one per door. Press Run, then click any refund id and PayPal's own record opens. Change the shop's instructions and audit all 54 attacks against them.
Refund ids from the live tests, each opening PayPal's own record: 9T03965035339622X · 2UM02599EF809433C · 0J4836009P7917205
Open the demoBuilt on PayPal
scripts/seed.jssrc/paypalRest.jssrc/pool.js/api/receiptsrc/paypalRest.jscreate_refund(capture_id, amount: { currency_code, value }), get_order, get_shipment_tracking, by name and parameters. scripts/scenarios.jsLimits, and what is next
What this is not: a real deployment needs the shop's order records, a way to tie a conversation to a customer and an order, the shop's own limits, a durable ledger and a queue for the cases that go to staff. The demo is one process with the ledger in memory. The benchmark is our own test suite on a PayPal stand-in; the arena and the race are the live sandbox evidence. Next: a shop pilot with its real order records, and the delivery rule on PayPal's own tracker once the sandbox lets a tracker be marked cancelled.
Try it liveSource on GitHub