vitorvaf/payment-hub — reverse-engineered prompt
Reverse engineered prompt
I want a simple MVP payment hub I can run locally with Docker and test through Swagger. It should act like a multitenant payment orchestrator where I can create a checkout, send the payment to different providers, receive webhook updates, and keep the payment status consistent even if the same request or webhook shows up more than once.
Please wire it as a clean, production minded API with Postgres, structured logs, health endpoints, and background workers to process inbox and outbox style messages asynchronously. Include the provider adapters that are already expected here, with a fake provider for easy testing and support for the real ones listed in the project docs. I also want basic automated tests, database migrations, and a local setup that works with docker compose out of the box.
Before changing payment flows, webhooks, workers, security, or database behavior, read the specs and ADR docs in the repo and follow those decisions. If anything is unclear, look up current docs online and keep the MVP practical.
Want more depth? Deep Reverse