Skip to content

Commit

Permalink
20210121 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster committed Jan 21, 2021
1 parent f86b37e commit bd7bc1a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ServiceConfigs/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/ServiceConfigs/Gateways/GeniusConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
4 changes: 3 additions & 1 deletion src/ServiceConfigs/Gateways/GpEcomConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceConfigs/Gateways/PorticoConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions src/ServiceConfigs/Gateways/TransitConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit bd7bc1a

Please sign in to comment.