/** * Set fallback API URL if not defined in configuration * * @return Mage_Centinel_Model_Service */ public function getCentinelValidator() { $validator = parent::getCentinelValidator(); if (!$validator->getCustomApiEndpointUrl()) { $validator->setCustomApiEndpointUrl($this->_pro->getConfig()->centinelDefaultApiUrl); } return $validator; }