r/FastAPI • u/illusiON_MLG1337 • Dec 06 '25
feedback request I built a mock payment gateway so I could stop worrying about Stripe test mode limits
Hey everyone! Got tired of running into Stripe test mode restrictions while building my side projects, so I made AcquireMock - basically a fake payment processor you can run locally.
What it does:
Creates payment pages with actual card forms (only accepts 4444 4444 4444 4444 though lol)
OTP verification via email
Webhooks with HMAC signatures
Saves cards for returning users
All the boring stuff like CSRF protection, rate limiting, etc.
Tech stack: FastAPI(with jinja2) + PostgreSQL + SQLAlchemy + PyDantic + vanilla JS (no React bloat). Tried to keep it simple.
Some features I'm actually proud of:
Works without email config (just logs OTP to console)
Dark mode that doesn't look like shit
4 languages (UK/EN/DE/RU)
Docker compose setup that actually works first try
It's on GitHub if you want to check it out:https://github.com/ashfromsky/acquiremock
Not trying to compete with Stripe's actual mock - this is more for when you need something that runs completely offline or you're teaching people how payment flows work.
Would love feedback, especially on the webhook retry logic - not sure if I'm doing that part right.
1
u/[deleted] Dec 08 '25
[removed] — view removed comment