diff --git a/src/ServiceConfigs/Configuration.php b/src/ServiceConfigs/Configuration.php index 477750d7..050ddf90 100644 --- a/src/ServiceConfigs/Configuration.php +++ b/src/ServiceConfigs/Configuration.php @@ -22,7 +22,7 @@ abstract class Configuration /** @var bool */ public $validated; - abstract function configureContainer(ConfiguredServices $services); + abstract public function configureContainer(ConfiguredServices $services); /** @var bool */ public $enableLogging; diff --git a/src/ServiceConfigs/Gateways/GeniusConfig.php b/src/ServiceConfigs/Gateways/GeniusConfig.php index 85768c7f..ef6ffa2c 100644 --- a/src/ServiceConfigs/Gateways/GeniusConfig.php +++ b/src/ServiceConfigs/Gateways/GeniusConfig.php @@ -4,6 +4,7 @@ use GlobalPayments\Api\Entities\Enums\Environment; use GlobalPayments\Api\Entities\Enums\GatewayProvider; +use GlobalPayments\Api\ConfiguredServices; use GlobalPayments\Api\Entities\Enums\Secure3dVersion; use GlobalPayments\Api\Entities\Enums\ServiceEndpoints; use GlobalPayments\Api\Entities\Exceptions\ConfigurationException; @@ -30,8 +31,8 @@ public function __construct() $this->gatewayProvider = GatewayProvider::GENIUS; } - public function configureContainer ($services) { - + public function configureContainer(ConfiguredServices $services) + { if (empty($this->serviceUrl)) { $this->serviceUrl = $this->environment == Environment::TEST ? ServiceEndpoints::MERCHANTWARE_TEST : ServiceEndpoints::MERCHANTWARE_PRODUCTION; } diff --git a/src/ServiceConfigs/Gateways/GpEcomConfig.php b/src/ServiceConfigs/Gateways/GpEcomConfig.php index fe7a64c2..29562c6c 100644 --- a/src/ServiceConfigs/Gateways/GpEcomConfig.php +++ b/src/ServiceConfigs/Gateways/GpEcomConfig.php @@ -9,6 +9,7 @@ use GlobalPayments\Api\Entities\Exceptions\ConfigurationException; use GlobalPayments\Api\Gateways\Gp3DSProvider; use GlobalPayments\Api\Gateways\RealexConnector; +use GlobalPayments\Api\ConfiguredServices; class GpEcomConfig extends GatewayConfig { @@ -34,7 +35,8 @@ public function __construct() $this->gatewayProvider = GatewayProvider::GP_ECOM; } - public function configureContainer($services) { + public function configureContainer(ConfiguredServices $services) + { // parent::configureContainer($services); // must implement data services first if (empty($this->serviceUrl)) { diff --git a/src/ServiceConfigs/Gateways/PorticoConfig.php b/src/ServiceConfigs/Gateways/PorticoConfig.php index 7a74ac2b..219b79b8 100644 --- a/src/ServiceConfigs/Gateways/PorticoConfig.php +++ b/src/ServiceConfigs/Gateways/PorticoConfig.php @@ -47,7 +47,7 @@ public function __construct() $this->gatewayProvider = GatewayProvider::PORTICO; } - public function configureContainer($services) + public function configureContainer(ConfiguredServices $services) { if (!empty($this->secretApiKey)) { if (strpos($this->secretApiKey, '_prod_') !== false) { diff --git a/src/ServiceConfigs/Gateways/TransitConfig.php b/src/ServiceConfigs/Gateways/TransitConfig.php index ac853fe0..c0fcebd5 100644 --- a/src/ServiceConfigs/Gateways/TransitConfig.php +++ b/src/ServiceConfigs/Gateways/TransitConfig.php @@ -7,6 +7,7 @@ use GlobalPayments\Api\Entities\Enums\GatewayProvider; use GlobalPayments\Api\Entities\Enums\ServiceEndpoints; use GlobalPayments\Api\Gateways\TransITConnector; +use GlobalPayments\Api\ConfiguredServices; class TransitConfig extends GatewayConfig { @@ -24,8 +25,8 @@ public function __construct() $this->gatewayProvider = GatewayProvider::TRANSIT; } - public function configureContainer($services) { - + public function configureContainer(ConfiguredServices $services) + { $gateway = new TransITConnector(); $gateway->deviceId = $this->deviceId; $gateway->developerId = $this->developerId;