joshi-chinmay-016/RecoverX ? reverse-engineered prompt

Reverse engineered prompt

Build me a backend for a payment recovery system that listens to Razorpay webhook events and safely records what happened to each payment.

I want it to verify webhook signatures from the raw request body, ignore duplicate deliveries using the Razorpay event id, save the original webhook payload for auditing, and then turn that into clean payment records that track things like payment status, attempts, failed payments, and recovery cases. It should also keep an audit trail of important changes.

Use a modern Python backend, a PostgreSQL database, Redis for background processing, and Docker so I can run everything locally with one command. Please include the basic API for inspecting stored events and payment state, plus database migrations and a simple setup for development with environment variables for Razorpay keys and webhook secret. If you need to check current docs for anything, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab