-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MSmedal
authored and
MSmedal
committed
Nov 5, 2020
1 parent
56e09b4
commit 266d3eb
Showing
60 changed files
with
2,343 additions
and
1,677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api; | ||
|
||
use GlobalPayments\Api\Gateways\IPaymentGateway; | ||
use GlobalPayments\Api\Gateways\IRecurringService; | ||
use GlobalPayments\Api\Gateways\ISecure3dProvider; | ||
use GlobalPayments\Api\Entities\Enums\Secure3dVersion; | ||
|
||
class ConfiguredServices | ||
{ | ||
private $secure3dProviders; | ||
|
||
/** @var IPaymentGateway */ | ||
public $gatewayConnector; | ||
|
||
/** @var IRecurringService */ | ||
public $recurringConnector; | ||
|
||
/** @var IReportingService */ | ||
public $reportingService; | ||
|
||
/** @var IDeviceInterface */ | ||
public $deviceInterface; | ||
|
||
/** @var DeviceController */ | ||
public $deviceController; | ||
|
||
/** @var OnlineBoardingConnector */ | ||
public $boardingConnector; | ||
|
||
/** @var TableServiceConnector */ | ||
public $tableServiceConnector; | ||
|
||
/** @var PayrollConnector */ | ||
public $payrollConnector; | ||
|
||
public function __construct() | ||
{ | ||
$this->secure3dProviders = array(); | ||
} | ||
|
||
protected function getSecure3dProvider(Secure3dVersion $version) | ||
{ | ||
if (in_array($version, $this->secure3dProviders)) { | ||
return $this->secure3dProviders[$version]; | ||
} elseif ($version == Secure3dVersion::ANY) { | ||
$provider = $this->secure3dProviders[Secure3dVersion::TWO]; | ||
if ($provider == null) { | ||
$provider = $this->secure3dProviders[Secure3dVersion::ONE]; | ||
} | ||
return $provider; | ||
} else { | ||
return null; | ||
} | ||
} | ||
|
||
protected function setSecure3dProvider(Secure3dVersion $version, ISecure3dProvider $provider) | ||
{ | ||
$this->secure3dProviders[$version] = $provider; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.