0

On magento app/code/core/Mage/Paypal/controllers/IpnController.php i need the order id in

try 
{

}



 public function indexAction()
    {
        if (!$this->getRequest()->isPost()) {
            return;
        }

        try {
            $data = $this->getRequest()->getPost();
            Mage::getModel('paypal/ipn')->processIpnRequest($data, new Varien_Http_Adapter_Curl());
        } catch (Exception $e) {
            Mage::logException($e);
            $this->getResponse()->setHttpResponseCode(500);
        }
    }

The Problem is that we need to update an another database with order info after the payment is done by Paypal.

user3040570
  • 392
  • 3
  • 16

1 Answers1

0

I think you could accomplish this with a new order observer to capture the order details and do whatever custom logic you need with it. The answer to this question should do the trick.

Community
  • 1
  • 1
fantasticrice
  • 1,631
  • 1
  • 21
  • 31
  • Any another solution? – user3040570 Jan 08 '15 at 04:58
  • You should not override core functionality, especially in controllers, if the end goal can be accomplished with a less intrusive method such as event observer. Can you provide more information about the problem you are trying to solve that would exclude the use of an observer? – fantasticrice Jan 08 '15 at 23:57