app/code/community/Adyen/Payment/Model/Resource/Adyen/Event.php
public function getEventById($incrementId, $adyenEventCode = Adyen_Payment_Model_Event::ADYEN_EVENT_AUTHORISATION)
    {
        $db = $this->_getReadAdapter();
        $sql = $db->select()
            ->from($this->getMainTable(), array('*'))
            ->where('increment_id = ?', $incrementId)
            ->where('adyen_event_result = ?', $adyenEventCode);
        return $db->fetchOne($sql);
    }
public function getEventById($incrementId, $adyenEventCode = Adyen_Payment_Model_Event::ADYEN_EVENT_AUTHORISATION)
    {
        $db = $this->_getReadAdapter();
        $sql = $db->select()
            ->from($this->getMainTable(), array('*'))
            ->where('increment_id = ?', $incrementId)
            ->where('adyen_event_result = ?', $adyenEventCode);
        return $db->fetchOne($sql);
    }
public function getEventById ( $ incrementId , $ adyenEventCode = Adyen_Payment_Model_Event :: ADYEN_EVENT_AUTHORISATION ) { $ db = $ this -> _getReadAdapter ( ) ; $ sql = $ db -> select ( ) -> from ( $ this -> getMainTable ( ) , array ( '*' ) ) -> where ( 'increment_id = ?' , $ incrementId ) -> where ( 'adyen_event_result = ?' , $ adyenEventCode ) ; return $ db -> fetchOne ( $ sql ) ; }
Get Event by order id
@param type $incrementId
@param type $adyenEventCode
@return type event id
Get Event by order id