title: How to restore a quote in Magento when returning to the Onepage checkout?
body: <p>I am using Magento Enterprise, with a Datacash 3D Secure payment module.</p>
  
  <p>In the event of an error during the payment process I want the user returned to the onepage checkout with their basket intact. Currently when the user returns to the checkout the basket is empty so they are then forwarded to the "checkout/cart" because they have no items.</p>
  
  <p>I thought it might be a problem with my code so I have the initial payment action redirecting straight away with an error back to the onepage checkout.</p>
  
  <pre><code> public function redirectAction() {
    Mage::getSingleton('core/session')-&gt;addError("There was a problem with the payment gateway. Please try again");
    $session = Mage::getSingleton('checkout/session');
    return $this-&gt;_redirect('checkout/onepage/', array('_secure'=&gt;true));
  }
  </code></pre>
  
  <p>However on returning to the checkout page the basket is empty. Adding in the following log into the indexAction of the onepage checkout I get "Quote ". Looking in the database the quote has had its active status set to 0.</p>
  
  <pre><code> error_log("Quote ".Mage::getSingleton('checkout/session')-&gt;getQuoteId());
  </code></pre>
  
  <p>I have not came across this problem with the standard Magento only with Enterprise. Has anyone come across this issue? Ideally I do not want customers having to add products to the basket again. Its like its conflicting with some sort of Magento Enterprise module.</p>
  
  <p>Thanks in advance for any help!</p>