Inspiration
People should be able to delegate the busywork of shopping without handing over control of their money. MandateGate was inspired by a simple idea: automation can make the process faster, but people should always set the boundaries and make the important decisions.
What it does
MandateGate lets people define clear spending mandates: budgets, approved categories, and when a purchase needs human approval. Each purchase is checked against those rules. Allowed purchases can proceed, risky ones wait for a person’s decision, and purchases outside the mandate are blocked. Every decision is recorded in an auditable transaction ledger.
How we built it
We built a Next.js frontend connected to a FastAPI backend. The backend applies deterministic policy rules, manages mandates and approval requests, and tracks transaction status. PayPal Sandbox integration and a clearly labeled local simulator support checkout demonstrations without requiring a real payment.
Challenges we ran into
The hardest part was making sure a purchase could not skip the rules just because a request came directly from the frontend. We also had to handle payment states carefully: approving a purchase is not the same as completing a payment, and retries should never deduct the budget twice.
Accomplishments that we’re proud of
We’re proud that MandateGate puts human authority at the center of automated purchasing. People can see what is being requested, why a rule was triggered, and what happened next—all in one place. The platform is designed to make every purchase decision understandable and traceable.
What we learned
We learned that responsible automation is not just about what a system can do; it is about who sets its limits, who can intervene, and whether its decisions can be reviewed later. Clear rules and human oversight need to be part of the product from the beginning.
What’s next for MandateGate
Next, we want to strengthen the approval experience, expand secure payment-provider integrations, and add clearer policy and spending insights. Our goal is to help people delegate routine purchasing with confidence—while keeping the final say in human hands.
Built With
- api
- css
- fastapi
- gemini
- next.js
- paypal
- python
- react
- sqlalchemy
- sqlite
- tailwind
- typescript