/** * Constructor for the validator * @param Config $config Merchant config */ public function __construct(Config $config) { $this->logger = Factory::getLogger($config, $config->getLogLocationRequest()); $this->setConfig($config); }
/** * Construct the API sender class * @param Config $config */ public function __construct(Config $config) { $this->config = $config; if (empty($this->submitType)) { $this->submitType = self::SUBMIT_TYPE_URL_ENCODE; } $this->logger = \Upg\Library\Logging\Factory::getLogger($config, $config->getLogLocationRequest()); return $this; }