I am building payment gateway extension and i am facing small issue to get the quote object after control return from payment Gateway.
Let me explain you in detail.I am using below funtion to redirect to payment gateway.
public function getCheckoutRedirectUrl()
Above method works fine. I am redirecting to payment gateway and payment processed successful with success message and redirect back to our store with captured status on below controller action.
public function returnAction()
$quote = Mage::getSingleton('checkout/session')->getQuote();
$payment = $quote->getPayment();
$service = Mage::getModel('sales/service_quote', $quote);
$order = $service->getOrder();
But in the above function i get the quote object as blank and due to that i am unable to place an order. This means that after returning from payment gateway it clears the checkout session.
How can i get the quote object and what is the problem ?
Thanks for your answer in advance.