Inspiration
People and teams want AI agents to compare vendor prices, split dinner receipts, send multi-currency invoices, and dispatch contributor payouts automatically. Yet nobody wants to hand an LLM an unguarded PayPal account or payment card, because autonomous tool loops can retry into duplicate charges, hallucinate quantities, or blow past a team budget.
We built PayTable to make agentic commerce safe, collaborative, and transparent. Inspired by collaborative tabletop interfaces and engineered with the Sodium infrastructure design system (0px telemetry frames), Bjork UI, and asciicn 3D ASCII shaders, PayTable gives @paytable a Linked PayPal Agent Wallet where the AI prepares every quote, split, and invoice while a deterministic Rust engine enforces human approval on every purchase before PayPal Sandbox funds move.
What it does
PayTable is a collaborative AI commerce tabletop that unifies all 5 PayPal Developer Hackathon inspiration tracks on one shared surface:
- Track 01 (Linked Wallet Agent Checkout):
@paytablequeries Channel3 verified merchant SKUs (DELL-U2723QE), negotiates quotes from$310.00down to$265.00, enforces live tunable Single ($500.00) and Daily ($1,500.00) wallet caps viaPOST /api/wallet/policy, pauses inAwaitingApproval, and settles via PayPal Orders v2 (PayPal-Request-IdUUID idempotency) plus Shipment Tracking v1 once the human owner clicks Approve Purchase. - Track 02 (Receipt Scan & Dinner Split): Interactive
2to8diner and0% / 15% / 18% / 20%tip calculator that drafts itemized PayPal Invoicing v2 requests, generates scannable PayPal QR codes, and triggers Instant Payouts v1. - Track 03 (Multi-Currency & Creator Split): Live
EUR / GBP / JPY / CADFX invoice calculator with4xPayPal Pay Later installment previews, Subscriptions v1, and multi-party Batch Payouts v1 splits. - Track 04 (Budget & Dispute Shield): Audits PayPal Reporting v1 (
31-dayRFC 3339 compliant windows), generates Payment Links, and toggles Disputes v1 holds against duplicate recurring SaaS charges ($29.00CloudRender). - Track 05 (Neighborhood Solar Co-op Pool): Community
$120 / $240 / $360contribution calculator allocating40% / 35% / 25%across neighborhood solar, microloans, and coastal cleanup with automated recurring Payouts v1.
Beyond the main tabletop ([01] TABLETOP), operators audit live SHA-256 mandate chains inside [02] LEDGER powered by AG Grid v36, inspect milestone payment gates and APIMatic typed controller signatures in [03] SCHEDULE & SDK, and render or export 7 interactive 3D ASCII scenes (.txt, .svg, .png, .webm) plus .mcp.json agent skill configs (@paypal/mcp + elevenlabs-mcp) in [04] LAUNCH & ASCII STUDIO.
How we built it
- High-Assurance Rust Settlement & Policy Engine (
backend-rust/): Built withaxum,tokio,reqwest(rustls-tls),hmac,sha2, andthiserrorunder#![forbid(unsafe_code)]. Before any request reacheshttps://api-m.sandbox.paypal.com, Rust enforces per-purchase and daily spend caps (422 Unprocessable Entityon overspend),EVERY_PURCHASEhuman approval state transitions, replay-safe idempotency keys (409 DUPLICATE_APPROVAL_KEY), cryptographicSHA-256mandate chaining across runs,31-dayRFC 3339 timestamp sanitization for Reporting v1, and constant-timeHMAC-SHA256webhook signature verification. - PayPal Developer Platform & Agent Tooling: Integrates PayPal Sandbox (
OAuth 2.0,Orders v2,Invoicing v2 + QR,Batch Payouts v1,Shipment Tracking v1,Transaction Search / Reporting v1, andWebhooks) alongside@paypal/agent-toolkit(^1.11.0) and@paypal/mcpconfigured in.mcp.json. - Next.js 16 Sodium Tabletop, Sponsor Stack & Web Audio (
web/): Built with React 19, TypeScript, Tailwind CSS v4, AG Grid v36 (ag-grid-reactcustom zero-radius Sodium Quartz dark and light themes with quick filter, mandate inspection, and CSV export), Channel3 verified SKU quote comparison, APIMatic typed SDK controller contracts (ordersController,invoicesController,payoutsController,transactionSearchController,trackersBatchController), Bryntum-modeled milestone escrow timelines, tactile Web Audio SFX (92 BPMD Dorianambient score), and asciicn 3D canvas shaders. - Cloud Packaging & 60 FPS Dual-Voice Launch Film (
render.yaml,Dockerfile,video/): Packaged with a multi-stageDockerfileand declarative Render Blueprint (render.yaml) forpaytable-apiandpaytable-web, paired with a Remotion1920x1080 @ 60fps(-14.05 LUFS) dual-host launch film (1:32) featuring word-synced 2D character rigs (PipandVaulty) and real captured UI plates.
Challenges we ran into
- Preventing Duplicate Captures & Unguarded Retries: Autonomous agent loops frequently retry tool calls on network jitter. Moving idempotency tracking and
AwaitingApprovalstate enforcement into our RustRwLockstore guaranteed that replaying an approval key immediately returns409 DUPLICATE_APPROVAL_KEYwithout double-charging the linked PayPal wallet, while keeping external HTTP calls strictly outside lock critical sections. - Headless Judge Verification Without Sandbox Credential Friction: Standard PayPal Checkout flows block automated tests on browser login popups, and judges reviewing dozens of projects need instant verification. We engineered a dual-mode
PayPalGateway: whenPAYPAL_CLIENT_IDandPAYPAL_CLIENT_SECRETare set, it executes live OAuth2 and REST calls againsthttps://api-m.sandbox.paypal.com; when unset, 1-Click Judge Sandbox Mode runs identical Rust policy gates, SHA-256 mandate hashes, and negativeINSTRUMENT_DECLINEDsimulations out of the box. - PayPal Reporting v1 RFC 3339 Strictness & 60 FPS WebGL Rendering: PayPal's
/v1/reporting/transactionsrejects timestamps with fractional milliseconds or windows above 31 days, which we solved via a dedicated Rust timestamp sanitizer. On the video pipeline, rendering60fpsasciicnshaders in headless Chromium hit session limits until we built an isolated920-frame Metal ANGLE chunked stitcher (render-videos.mjs).
Accomplishments that we're proud of
- Shipping all 5 PayPal hackathon tracks as live interactive calculators on a single cohesive tabletop with zero horizontal overflow across
1600px,1280x800, and390x844mobile viewports. - Enforcing
#![forbid(unsafe_code)]in Rust with full automated coverage across live wallet cap updates,409replay blocks,422overspend rejections,INSTRUMENT_DECLINEDrollbacks, and Playwright E2E flows. - Crafting a
1:3260fpsconversational launch film with rigged characters, custom Web Audio synthesis, and liveasciicn3D exports strictly under the 3-minute ceiling.
What we learned
Designing for agentic finance means treating human intent verification as a first-class UI and systems problem. Pairing fast AI preparation (catalog discovery, bill math, FX conversion) with an unmistakable human approval gate and cryptographic SHA-256 audit mandates builds far more user confidence than opaque autonomous execution.
What's next for PayTable
- Multi-Owner Team Quorum Policies: Require
2-of-3Slack or Passkey approvals on linked PayPal team wallets when staged purchases exceed$1,000. - Automated Seller Dispute Defense Bundles: Attach signed
SHA-256PayTable buyer mandates and carrier delivery proofs directly to PayPal Disputes v1 evidence endpoints. - Live Multiplayer WebSocket Cursors: Let households and finance teams adjust group splits and approve vendor milestones together in real time.
Built With
- ag-grid
- apimatic
- axum
- aypal
- bryntum
- channel3
- docker
- elevenlabs
- mcp
- nextjs
- paypal-agent-toolkit
- paypal-mcp
- paypal-sandbox
- playwright
- react
- remotion
- render
- rust
- tailwindcss
- tokio
- typescript
- webgl