1

I am having a serious issue here. When a customer places an order in the one page check out area, He gets redirected to the payment gateway. Now the issue is , Only when the customer clicks the cancel button in the payment gateway that the order is cancelled. But if the customer clicks the go back button on the browser it shows that the cart is empty, but in the backend the order is still under processing. The same goes when I just close the payment gateway window , the order will be still in processing mode.This shouldnt be like that as its a serious loop hole

5
  • Migs payment gateway. I changed the payment gateway status to pending initialy. So if anyone closes the gateway without purchase , The purchase will be considered as pending rather than processing. Only when a purchase is made using credit card it changes to processing
    – Mimoh2008
    Mar 9, 2015 at 12:37
  • But still i wanted it to show as cancelled rather than pending.
    – Mimoh2008
    Mar 9, 2015 at 12:38
  • So are you still having a problem?
    – ladle3000
    Mar 9, 2015 at 12:38
  • I solved it by changing the migs payment module status initialy to pending.
    – Mimoh2008
    Mar 9, 2015 at 12:42
  • Check my answer below.
    – ladle3000
    Mar 9, 2015 at 12:46

1 Answer 1

1

If this payment gateway works as such that you must hit complete order in magento to get to it (like paypal standard), there is no way out of the box to make it go from pending to canceled. Unless it is programmed to do so after some time.

I believe your best option is to cancel pending orders after some time programmatically.

http://inchoo.net/magento/cancel-pending-orders/

Or

https://stackoverflow.com/questions/11079915/how-to-change-the-order-state-programmatically-inside-a-cron-job

2
  • 1
    Yes this is it. Thank you very much. I didnt think about the cron in the first place. I will definitely go for this feature.
    – Mimoh2008
    Mar 9, 2015 at 12:49
  • No problem. Good luck!
    – ladle3000
    Mar 9, 2015 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.