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