getRequest()->isPost()) { return; } try { $data = $this->getRequest()->getPost(); Mage::getModel('paypal/ipn')->processIpnRequest($data, new Varien_Http_Adapter_Curl()); } catch (Mage_Paypal_UnavailableException $e) { Mage::logException($e); $this->getResponse()->setHeader('HTTP/1.1','503 Service Unavailable')->sendResponse(); exit; } catch (Exception $e) { Mage::logException($e); $this->getResponse()->setHttpResponseCode(500); } } }