I have an e-commerce site developed in magento, an I am using paypal as payment method. When user adds 2 items for a product "Dress" in cart, and goes to checkout page and click place order button then I am redirecting user to paypal site for payment. But there are some users who abandons payment and leave the paypal page.
When they click on place order, magento generates an order in backend and keep its status as Pendin, once paypal payment done and user redirected back to our site, that order's status updated to Processing because payment is done. But if user leaves from pyapal payment page without making payment then my product stocks are decreased and other users can't place the order until I cancel the junk orders.
Is there any way with which I can automate this process, if user do not pay on paypal then stocks/inventory should back to normal?
Please help, thanks!