getOrder()) { return $this->getOrder(); } elseif ($orderIncrementId = $this->_getCheckout()->getLastRealOrderId()) { return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId); } else { return null; } } /** * Get Form data by using ogone payment api * * @return array */ public function getFormData() { return $this->_getOrder()->getPayment()->getMethodInstance()->getFormFields(); } /** * Getting gateway url * * @return string */ public function getFormAction() { return $this->_getOrder()->getPayment()->getMethodInstance()->getUrl(); } }