title: How to get id of last purchase with multiple addresses?
body: <p>I have a payment method that needs to be redirected to the page it like paypal, I can add a code block on the page of success but need to know if petido that was just completed was paid with my payment method, so I can redirect.</p>
  
  <p>Note: several people say it is not possible to redirect payments with multishipping.</p>
  
  <p>I just want to get the id of the application of the current purchase being multishipping.</p>
  
  <p>I got this way, but it's not exactly what I want:</p>
  
  <pre><code>$fromDate = date('Y-m-d') . ' 0:0:0';
  $toDate = date('Y-m-d H:i:s');
  $orderCollection = Mage::getModel('sales/order')-&gt;getCollection()
      -&gt;addFieldToFilter('customer_id', array('eq' =&gt; array(Mage::getSingleton('customer/session')-&gt;getCustomer()-&gt;getId())));
  $orderCollection = $orderCollection-&gt;addAttributeToFilter('created_at', array('from'=&gt;$fromDate, 'to'=&gt;$toDate));
  foreach($orderCollection as $order_row){
  </code></pre>