title: In magento How to collect order info in IpnController.php page
body: <p>On magento 
  app/code/core/Mage/Paypal/controllers/IpnController.php
  i need the order id in </p>
  
  <pre><code>try 
  {
  
  }
  
  
  
   public function indexAction()
      {
          if (!$this-&gt;getRequest()-&gt;isPost()) {
              return;
          }
  
          try {
              $data = $this-&gt;getRequest()-&gt;getPost();
              Mage::getModel('paypal/ipn')-&gt;processIpnRequest($data, new Varien_Http_Adapter_Curl());
          } catch (Exception $e) {
              Mage::logException($e);
              $this-&gt;getResponse()-&gt;setHttpResponseCode(500);
          }
      }
  </code></pre>
  
  <p>The Problem is that we need to update an another database with order info after the payment is done by Paypal.</p>