尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Let an AI shop for you, and keep proof of what you asked.
AI agents are starting to buy things for people. When one buys the wrong thing, nobody can prove what the buyer actually allowed, so honest buyers and honest stores both lose disputes. MandatePay makes the buyer's intent a signed record that travels with the payment: the buyer signs their limits, every cart is checked against them before PayPal is called, and if the payment is disputed an AI analyst reads the signed record and recommends a fair response. A person approves everything that goes to PayPal.
Built for the "Build What's Next with PayPal and AI" hackathon. PayPal sandbox only; no real money moves.
| Live app | https://mandate-pay.vercel.app |
| Demo video (3 min) | https://youtu.be/q6SA3VV74ao |
| For judges | docs/JUDGES.md: a five-minute test path, how it meets the requirements, honest limits |
| How it works | docs/ARCHITECTURE.md: the flow, every PayPal API we use, every AI feature, the trust model |
| Agent access (MCP) | docs/MCP.md: any AI agent can shop for a buyer inside their signed mandate |
| API reference | contracts/api.md: every route, with its schema in contracts/schemas.ts |
| Submission text | docs/DEVPOST.md |
Buyer says what they want "white running trainers, size 10, under 110 USD, within two weeks"
│
▼
AI drafts structured limits budget, product type, size and colour, delivery deadline
│
▼
Buyer SIGNS the mandate Ed25519 JWS, with the buyer's own key (encrypted at rest)
│
▼
Agent shops the real catalog the in-app agent, or any outside agent over MCP
│
▼
Cart guard checks the cart hard limits are plain code; AI only settles the unsure matches
│ (blocked carts never reach PayPal)
▼
PayPal checkout PayPal account or card (3-D Secure); a receipt hash ties
│ mandate, cart and payment together
▼
Something goes wrong? buyer reports a problem → store replies or refunds
│ still unhappy → a real PayPal dispute arrives (webhook or poll)
▼
AI analyst + code guardrails reads the signed mandate, cart and payment; recommends a
│ response and cites the records it used
▼
A person approves message with the evidence PDF, an offer, a refund, or accepting the claim
For the buyer
For the store (staff, admin, owner)
For other AI agents
/api/mcp, JSON-RPC 2.0 over HTTP) with tools to list products, check a cart against the guard, and create a PayPal order. It can never sign a mandate, set a price, or pay: the buyer approves in PayPal.PayPal (sandbox)
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗