This is a general question. I'm currently working on e-commerce website. I've integrated Payumoney (INDIA). The thing is i've one problem
if someone made a payment while during the redirect process to our website suddenly some power breakage will occur or Internet goes down.
From client side the payment is done but as we didn't any response from the payment gateway we can't update the payment status
Can someone help me regarding it and how to tackle the situation.
You could use webhooks instead. I don't know whether they are available from Payumoney.
In the case of something like Stripe, you can receive a webhook notification whenever something happens. If your server does not respond, Stripe will try again later.
But maybe it's not necessary. Is this a real problem you are having, or is it theoretical?
If it's theoretical, I would be tempted to stick with the simpler solution, unless maybe you are familiar with using webhooks.
It depends on how often (if at all) the problem occurs, and how bad the consequences are. If it occurs almost never and is easily resolved by the customer contacting you, then maybe that's okay.
Also if you have high-value transactions it could be more important to make the process bullet-proof.