Open shreyas-satish opened 7 years ago
On further thought, this process should be completely automated. Razorpay supports webhooks, for certain events eg: when a payment is authorized.
Boxoffice needs to expose an endpoint which can listen to Razorpay's webhook, and trigger a background job for every authorized payment. The background job will essentially check if the authorized payment was captured (with a delay of, say, 10 minutes), and if it wasn't, will attempt a re-capture.
There are cases where a user makes a payment, but can't see the order through to completion due to multiple reasons (the server may have gone down, or the payment gateway might be down). The admin interface should provide an option to re-process an order.
Re-processing an order would involve the following steps: