From 266d3eb6927c383de2a7bf54a22e56d14da48205 Mon Sep 17 00:00:00 2001 From: MSmedal Date: Thu, 5 Nov 2020 08:06:11 -0500 Subject: [PATCH] 20201105 deployment --- src/Builders/AuthorizationBuilder.php | 14 +- src/Builders/ManagementBuilder.php | 6 +- src/Builders/RecurringBuilder.php | 6 +- src/Builders/ReportBuilder.php | 6 +- src/Builders/Secure3dBuilder.php | 16 +- src/ConfiguredServices.php | 62 + src/Entities/Enums/ReportType.php | 4 +- src/Entities/Enums/TransactionType.php | 68 +- src/Entities/RecurringEntity.php | 10 +- .../Reporting/SearchCriteriaBuilder.php | 2 +- src/Entities/Schedule.php | 6 +- src/Gateways/Gateway.php | 8 + ...twareConnector.php => GeniusConnector.php} | 2 +- src/Gateways/Gp3DSProvider.php | 60 +- src/Gateways/PayPlanConnector.php | 30 +- src/{ => ServiceConfigs}/AcceptorConfig.php | 6 +- src/ServiceConfigs/Configuration.php | 36 + src/ServiceConfigs/Gateways/GatewayConfig.php | 44 + src/ServiceConfigs/Gateways/GeniusConfig.php | 67 + src/ServiceConfigs/Gateways/GpEcomConfig.php | 93 + src/ServiceConfigs/Gateways/PorticoConfig.php | 132 ++ src/ServiceConfigs/Gateways/TransitConfig.php | 63 + src/ServiceConfigs/ServicesConfig.php | 43 + src/Services/CreditService.php | 6 +- src/Services/HostedService.php | 6 +- src/ServicesConfig.php | 179 -- src/ServicesContainer.php | 298 +-- .../PAX/Interfaces/PaxHttpInterface.php | 12 +- .../PAX/Interfaces/PaxTcpInterface.php | 7 + src/Terminals/PAX/PaxController.php | 8 +- .../PAX/Responses/PaxBaseResponse.php | 4 +- test/Data/TestCards.php | 23 +- .../GeniusConnector/MerchantwareGiftTests.php | 5 +- .../GeniusConnector/MerchantwareTests.php | 8 +- .../Gateways/PorticoConnector/AchTest.php | 6 +- .../AutoSubstantiationTest.php | 9 +- .../Certifications/EcommerceTest.php | 291 ++- .../Certifications/MotoTest.php | 22 +- .../Certifications/RecurringTest.php | 46 +- .../PorticoConnector/CommercialCardTest.php | 12 +- .../Gateways/PorticoConnector/CreditTest.php | 3 +- .../PorticoReportingTests.php | 2 +- .../PorticoTokenManagementTest.php | 5 +- .../Gateways/RealexConnector/ApiTestCase.php | 29 +- .../Certifications/SdkTest.php | 2049 +++++++++-------- .../Gateways/RealexConnector/CreditTest.php | 3 +- .../RealexConnector/Hpp/RealexHppClient.php | 3 +- .../Gateways/RealexConnector/HppTest.php | 40 +- .../RealexConnector/Realex3dSecureTests.php | 29 +- .../RealexConnector/RecurringTest.php | 7 +- .../RealexConnector/Secure3dServiceTests.php | 7 +- .../Gateways/Terminals/PAX/PaxCreditTests.php | 3 +- .../Gateways/Terminals/PAX/PaxReportTests.php | 3 +- .../PAX/vrf/PaxVerificationTests.php | 3 +- .../Certification/DirectMarketingMOTO_3.php | 45 +- .../Certification/Ecommerce_3.php | 24 +- .../Certification/Token_Request_Only.php | 24 +- .../TransITConnector/CommercialCardTest.php | 7 +- .../AuthorizationBuilder/ValidationTest.php | 3 +- .../Gateways/RealexConnector/CreditTest.php | 5 +- 60 files changed, 2343 insertions(+), 1677 deletions(-) create mode 100644 src/ConfiguredServices.php rename src/Gateways/{MerchantwareConnector.php => GeniusConnector.php} (99%) rename src/{ => ServiceConfigs}/AcceptorConfig.php (95%) create mode 100644 src/ServiceConfigs/Configuration.php create mode 100644 src/ServiceConfigs/Gateways/GatewayConfig.php create mode 100644 src/ServiceConfigs/Gateways/GeniusConfig.php create mode 100644 src/ServiceConfigs/Gateways/GpEcomConfig.php create mode 100644 src/ServiceConfigs/Gateways/PorticoConfig.php create mode 100644 src/ServiceConfigs/Gateways/TransitConfig.php create mode 100644 src/ServiceConfigs/ServicesConfig.php delete mode 100644 src/ServicesConfig.php diff --git a/src/Builders/AuthorizationBuilder.php b/src/Builders/AuthorizationBuilder.php index b20e4549..884a7531 100644 --- a/src/Builders/AuthorizationBuilder.php +++ b/src/Builders/AuthorizationBuilder.php @@ -476,12 +476,12 @@ public function __construct($type, IPaymentMethod $paymentMethod = null) * * @return Transaction */ - public function execute() + public function execute(string $configName = 'default') { - parent::execute(); - return ServicesContainer::instance() - ->getClient() - ->processAuthorization($this); + parent::execute($configName); + + $client = ServicesContainer::instance()->getClient($configName); + return $client->processAuthorization($this); } /** @@ -489,12 +489,12 @@ public function execute() * * @return String */ - public function serialize() + public function serialize(string $configName = 'default') { $this->transactionModifier = TransactionModifier::HOSTEDREQUEST; parent::execute(); - $client = ServicesContainer::instance()->getClient(); + $client = ServicesContainer::instance()->getClient($configName); if ($client->supportsHostedPayments()) { return $client->serializeRequest($this); diff --git a/src/Builders/ManagementBuilder.php b/src/Builders/ManagementBuilder.php index c5516812..1c645dc6 100644 --- a/src/Builders/ManagementBuilder.php +++ b/src/Builders/ManagementBuilder.php @@ -184,11 +184,11 @@ public function __isset($name) * * @return Transaction */ - public function execute() + public function execute(string $configName = 'default') { - parent::execute(); + parent::execute($configName); return ServicesContainer::instance() - ->getClient() + ->getClient($configName) ->manageTransaction($this); } diff --git a/src/Builders/RecurringBuilder.php b/src/Builders/RecurringBuilder.php index 2c48de32..94f6e288 100644 --- a/src/Builders/RecurringBuilder.php +++ b/src/Builders/RecurringBuilder.php @@ -67,11 +67,11 @@ public function addSearchCriteria($key, $value) * * @return mixed */ - public function execute() + public function execute(string $configName = 'default') { - parent::execute(); + parent::execute($configName); - $client = ServicesContainer::instance()->getRecurringClient(); + $client = ServicesContainer::instance()->getRecurringClient($configName); return $client->processRecurring($this); } diff --git a/src/Builders/ReportBuilder.php b/src/Builders/ReportBuilder.php index 73138db0..8e31694b 100644 --- a/src/Builders/ReportBuilder.php +++ b/src/Builders/ReportBuilder.php @@ -34,11 +34,11 @@ public function __construct($reportType) * * @return mixed */ - public function execute() + public function execute(string $configName = 'default') { - parent::execute(); + parent::execute($configName); - $client = ServicesContainer::instance()->getClient(); + $client = ServicesContainer::instance()->getClient($configName); return $client->processReport($this); } } diff --git a/src/Builders/Secure3dBuilder.php b/src/Builders/Secure3dBuilder.php index 95c7c791..9e23dd28 100644 --- a/src/Builders/Secure3dBuilder.php +++ b/src/Builders/Secure3dBuilder.php @@ -548,7 +548,7 @@ public function getTransactionType() public function getVersion() { if (!empty($this->threeDSecure)) { - return $this->threeDSecure->version; + return $this->threeDSecure->getVersion(); } return null; } @@ -646,8 +646,11 @@ public function withAccountChangeIndicator($accountChangeIndicator) return $this; } - /** @return Secure3dBuilder */ - public function withAddressMatchIndicator(bool $value) + /** + * @param bool $value + * @return Secure3dBuilder + */ + public function withAddressMatchIndicator($value) { $this->addressMatchIndicator = $value; return $this; @@ -968,8 +971,11 @@ public function withPreOrderIndicator($preOrderIndicator) return $this; } - /** @return Secure3dBuilder */ - public function withPreviousSuspiciousActivity(bool $previousSuspiciousActivity) + /** + * @param bool $previousSuspiciousActivity + * @return Secure3dBuilder + */ + public function withPreviousSuspiciousActivity($previousSuspiciousActivity) { $this->previousSuspiciousActivity = $previousSuspiciousActivity; return $this; diff --git a/src/ConfiguredServices.php b/src/ConfiguredServices.php new file mode 100644 index 00000000..3bd56c00 --- /dev/null +++ b/src/ConfiguredServices.php @@ -0,0 +1,62 @@ +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; + } +} diff --git a/src/Entities/Enums/ReportType.php b/src/Entities/Enums/ReportType.php index a6034641..9f56977b 100644 --- a/src/Entities/Enums/ReportType.php +++ b/src/Entities/Enums/ReportType.php @@ -7,6 +7,6 @@ class ReportType extends Enum { const FIND_TRANSACTIONS = 1; - const ACTIVITY = 1 << 1; - const TRANSACTION_DETAIL = 1 << 7; + const ACTIVITY = 2; // 1 << 1; + const TRANSACTION_DETAIL = 128; // 1 << 7; } diff --git a/src/Entities/Enums/TransactionType.php b/src/Entities/Enums/TransactionType.php index 7b2493ed..63fec60f 100644 --- a/src/Entities/Enums/TransactionType.php +++ b/src/Entities/Enums/TransactionType.php @@ -6,38 +6,38 @@ class TransactionType extends Enum { - const DECLINE = 1 << 0; - const VERIFY = 1 << 1; - const CAPTURE = 1 << 2; - const AUTH = 1 << 3; - const REFUND = 1 << 4; - const REVERSAL = 1 << 5; - const SALE = 1 << 6; - const EDIT = 1 << 7; - const VOID = 1 << 8; - const ADD_VALUE = 1 << 9; - const BALANCE = 1 << 10; - const ACTIVATE = 1 << 11; - const ALIAS = 1 << 12; - const REPLACE = 1 << 13; - const REWARD = 1 << 14; - const DEACTIVATE = 1 << 15; - const BATCH_CLOSE = 1 << 16; - const CREATE = 1 << 17; - const DELETE = 1 << 18; - const FETCH = 1 << 19; - const SEARCH = 1 << 20; - const HOLD = 1 << 21; - const RELEASE = 1 << 22; - const DCC_RATE_LOOKUP = 1 << 23; - const VERIFY_ENROLLED = 1 << 24; - const VERIFY_SIGNATURE = 1 << 25; - const TOKEN_DELETE = 1 << 26; - const VERIFY_AUTHENTICATION = 1 << 27; - const INITIATE_AUTHENTICATION = 1 << 28; - const DATA_COLLECT = 1 << 29; - const PRE_AUTH_COMPLETION = 1 << 30; - const TOKEN_UPDATE = 1 << 31; - const BENEFIT_WITHDRAWAL = 1 <<32; - const TOKENIZE = 1 << 33; + const DECLINE = 1; // 1 << 0 + const VERIFY = 2; // 1 << 1 + const CAPTURE = 4; // 1 << 2 + const AUTH = 8; // 1 << 3 + const REFUND = 16; // 1 << 4 + const REVERSAL = 32; // 1 << 5 + const SALE = 64; // 1 << 6 + const EDIT = 128; // 1 << 7 + const VOID = 256; // 1 << 8 + const ADD_VALUE = 512; // 1 << 9 + const BALANCE = 1024; // 1 << 10 + const ACTIVATE = 2048; // 1 << 11 + const ALIAS = 4096; // 1 << 12 + const REPLACE = 8192; // 1 << 13 + const REWARD = 16384; // 1 << 14 + const DEACTIVATE = 32768; // 1 << 15 + const BATCH_CLOSE = 65536; // 1 << 16 + const CREATE = 131072; // 1 << 17 + const DELETE = 262144; // 1 << 18 + const FETCH = 524288; // 1 << 19 + const SEARCH = 1048576; // 1 << 20 + const HOLD = 2097152; // 1 << 21 + const RELEASE = 4194304; // 1 << 22 + const DCC_RATE_LOOKUP = 8388608; //1 << 23 + const VERIFY_ENROLLED = 16777216; //1 << 24 + const VERIFY_SIGNATURE = 33554432; // 1 << 25 + const TOKEN_DELETE = 67108864; // 1 << 26 + const VERIFY_AUTHENTICATION = 134217728; // 1 << 27 + const INITIATE_AUTHENTICATION = 268435456; // 1 << 28 + const DATA_COLLECT = 536870912; // 1 << 29 + const PRE_AUTH_COMPLETION = 1073741824; // 1 << 30 + const TOKEN_UPDATE = 2147483648; // 1 << 31 + const BENEFIT_WITHDRAWAL = 4294967296; // 1 <<32 + const TOKENIZE = 8589934592; // 1 << 33; } diff --git a/src/Entities/RecurringEntity.php b/src/Entities/RecurringEntity.php index d11dd022..3f546dd6 100644 --- a/src/Entities/RecurringEntity.php +++ b/src/Entities/RecurringEntity.php @@ -51,9 +51,9 @@ public function delete($force = false) /** * {@inheritDoc} */ - public static function find($id) + public static function find($id, $configName = 'default') { - $client = ServicesContainer::instance()->getRecurringClient(); + $client = ServicesContainer::instance()->getRecurringClient($configName); if (!$client->supportsRetrieval) { throw new UnsupportedTransactionException(); } @@ -74,9 +74,9 @@ public static function find($id) /** * {@inheritDoc} */ - public static function findAll() + public static function findAll($configName = 'default') { - $client = ServicesContainer::instance()->getRecurringClient(); + $client = ServicesContainer::instance()->getRecurringClient($configName); if (!$client->supportsRetrieval) { throw new UnsupportedTransactionException(); } @@ -87,7 +87,7 @@ public static function findAll() /** * {@inheritDoc} */ - public function saveChanges() + public function saveChanges($configName = 'default') { try { return RecurringService::edit($this); diff --git a/src/Entities/Reporting/SearchCriteriaBuilder.php b/src/Entities/Reporting/SearchCriteriaBuilder.php index 99137563..ee0b6c3c 100644 --- a/src/Entities/Reporting/SearchCriteriaBuilder.php +++ b/src/Entities/Reporting/SearchCriteriaBuilder.php @@ -212,7 +212,7 @@ public function __construct(TransactionReportBuilder $reportBuilder = null) $this->reportBuilder = $reportBuilder; } - public function and($criteria, $value) + public function andWith($criteria, $value) { if (property_exists($this, $criteria)) { $this->{$criteria} = $value; diff --git a/src/Entities/Schedule.php b/src/Entities/Schedule.php index ac6c5cb5..65979f27 100644 --- a/src/Entities/Schedule.php +++ b/src/Entities/Schedule.php @@ -113,7 +113,7 @@ class Schedule extends RecurringEntity * * @var integer|null */ - public $numberOfPayments; + public $numberOfPaymentsRemaining; /** * The purchase order (PO) number associated with the schedule. @@ -337,9 +337,9 @@ public function withName($value) * * @return Schedule */ - public function withNumberOfPayments($value) + public function withnumberOfPaymentsRemaining($value) { - $this->numberOfPayments = $value; + $this->numberOfPaymentsRemaining = $value; return $this; } diff --git a/src/Gateways/Gateway.php b/src/Gateways/Gateway.php index e7b7cd57..b57e67ff 100644 --- a/src/Gateways/Gateway.php +++ b/src/Gateways/Gateway.php @@ -90,7 +90,15 @@ protected function sendRequest( curl_setopt($request, CURLOPT_HTTPHEADER, $headers); curl_setopt($request, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS); curl_setopt($request, CURLOPT_VERBOSE, false); + + // Define the constant manually for earlier versions of PHP. + // Disable phpcs here since this constant does not exist until PHP 5.5.19. + // phpcs:disable + if (!defined('CURL_SSLVERSION_TLSv1_2')) { + define('CURL_SSLVERSION_TLSv1_2', 6); + } curl_setopt($request, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); + // phpcs:enable if ($this->curlOptions != null && !empty($this->curlOptions)) { curl_setopt_array($request, $this->curlOptions); diff --git a/src/Gateways/MerchantwareConnector.php b/src/Gateways/GeniusConnector.php similarity index 99% rename from src/Gateways/MerchantwareConnector.php rename to src/Gateways/GeniusConnector.php index 200409e3..9a85fbe3 100644 --- a/src/Gateways/MerchantwareConnector.php +++ b/src/Gateways/GeniusConnector.php @@ -41,7 +41,7 @@ use GlobalPayments\Api\PaymentMethods\CreditTrackData; use GlobalPayments\Api\Services\ReportingService; -class MerchantwareConnector extends XmlGateway implements IPaymentGateway +class GeniusConnector extends XmlGateway implements IPaymentGateway { /** * Portico's XML namespace diff --git a/src/Gateways/Gp3DSProvider.php b/src/Gateways/Gp3DSProvider.php index a029d91e..b3ae1067 100644 --- a/src/Gateways/Gp3DSProvider.php +++ b/src/Gateways/Gp3DSProvider.php @@ -209,7 +209,7 @@ public function processSecure3d(Secure3dBuilder $builder) // payer $request['payer'] = []; - $request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail() ?? null); + $request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail()); $request['payer'] = $this->maybeSetKey($request['payer'], 'id', $builder->getCustomerAccountId()); $request['payer'] = $this->maybeSetKey($request['payer'], 'account_age', $builder->getAccountAgeIndicator()); $request['payer'] = $this->maybeSetKey($request['payer'], 'account_creation_date', null !== $builder->getAccountCreateDate() ? date('Y-m-d', strtotime($builder->getAccountCreateDate())) : null); @@ -342,23 +342,24 @@ private function mapResponse($rawResponse) $secureEcom = new ThreeDSecure(); // check enrolled - $secureEcom->serverTransactionId = $doc['server_trans_id'] ?? null; + $secureEcom->serverTransactionId = isset($doc['server_trans_id']) ? $doc['server_trans_id'] : null; if (array_key_exists('enrolled', $doc)) { $secureEcom->enrolled = (bool)$doc['enrolled']; } - $secureEcom->issuerAcsUrl = ($doc['method_url'] ?? null) . ($doc['challenge_request_url'] ?? null); + $secureEcom->issuerAcsUrl = (isset($doc['method_url']) ? $doc['method_url'] : '') + . (isset($doc['challenge_request_url']) ? $doc['challenge_request_url'] : ''); // get authentication data - $secureEcom->acsTransactionId = $doc['acs_trans_id'] ?? null; - $secureEcom->directoryServerTransactionId = $doc['ds_trans_id'] ?? null; - $secureEcom->authenticationType = $doc['authentication_type'] ?? null; - $secureEcom->authenticationValue = $doc['authentication_value'] ?? null; - $secureEcom->eci = $doc['eci'] ?? null; - $secureEcom->status = $doc['status'] ?? null; - $secureEcom->statusReason = $doc['status_reason'] ?? null; - $secureEcom->authenticationSource = $doc['authentication_source'] ?? null; - $secureEcom->messageCategory = $doc['message_category'] ?? null; - $secureEcom->messageVersion = $doc['message_version'] ?? null; + $secureEcom->acsTransactionId = isset($doc['acs_trans_id']) ? $doc['acs_trans_id'] : null; + $secureEcom->directoryServerTransactionId = isset($doc['ds_trans_id']) ? $doc['ds_trans_id'] : null; + $secureEcom->authenticationType = isset($doc['authentication_type']) ? $doc['authentication_type'] : null; + $secureEcom->authenticationValue = isset($doc['authentication_value']) ? $doc['authentication_value'] : null; + $secureEcom->eci = isset($doc['eci']) ? $doc['eci'] : null; + $secureEcom->status = isset($doc['status']) ? $doc['status'] : null; + $secureEcom->statusReason = isset($doc['status_reason']) ? $doc['status_reason'] : null; + $secureEcom->authenticationSource = isset($doc['authentication_source']) ? $doc['authentication_source'] : null; + $secureEcom->messageCategory = isset($doc['message_category']) ? $doc['message_category'] : null; + $secureEcom->messageVersion = isset($doc['message_version']) ? $doc['message_version'] : null; // challenge mandated if (array_key_exists('challenge_mandated', $doc)) { @@ -366,34 +367,43 @@ private function mapResponse($rawResponse) } // initiate authentication - $secureEcom->cardHolderResponseInfo = $doc['cardHolder_response_info'] ?? null; + $secureEcom->cardHolderResponseInfo = + isset($doc['cardHolder_response_info']) ? $doc['cardHolder_response_info'] : null; // device_render_options if (array_key_exists('device_render_options', $doc)) { $renderOptions = $doc['device_render_options']; - $secureEcom->sdkInterface = $renderOptions['sdk_interface'] ?? null; - $secureEcom->sdkUiType = $renderOptions['sdk_ui_type'] ?? null; + $secureEcom->sdkInterface = isset($renderOptions['sdk_interface']) ? $renderOptions['sdk_interface'] : null; + $secureEcom->sdkUiType = isset($renderOptions['sdk_ui_type']) ? $renderOptions['sdk_ui_type'] : null; } // message_extension if (array_key_exists('message_extension', $doc)) { - $secureEcom->criticalityIndicator = $doc['message_extension']['criticality_indicator'] ?? null; - $secureEcom->messageExtensionId = $doc['message_extension']['id'] ?? null; - $secureEcom->messageExtensionName = $doc['message_extension']['name'] ?? null; + $secureEcom->criticalityIndicator = + isset($doc['message_extension']['criticality_indicator']) ? + $doc['message_extension']['criticality_indicator'] : null; + $secureEcom->messageExtensionId = + isset($doc['message_extension']['id']) ? $doc['message_extension']['id'] : null; + $secureEcom->messageExtensionName = + isset($doc['message_extension']['name']) ? $doc['message_extension']['name'] : null; } // versions - $secureEcom->directoryServerEndVersion = $doc['ds_protocol_version_end'] ?? null; - $secureEcom->directoryServerStartVersion = $doc['ds_protocol_version_start'] ?? null; - $secureEcom->acsEndVersion = $doc['acs_protocol_version_end'] ?? null; - $secureEcom->acsStartVersion = $doc['acs_protocol_version_start'] ?? null; + $secureEcom->directoryServerEndVersion = + isset($doc['ds_protocol_version_end']) ? $doc['ds_protocol_version_end'] : null; + $secureEcom->directoryServerStartVersion = + isset($doc['ds_protocol_version_start']) ? $doc['ds_protocol_version_start'] : null; + $secureEcom->acsEndVersion = isset($doc['acs_protocol_version_end']) ? $doc['acs_protocol_version_end'] : null; + $secureEcom->acsStartVersion = + isset($doc['acs_protocol_version_start']) ? $doc['acs_protocol_version_start'] : null; // payer authentication request if (array_key_exists('method_data', $doc)) { $methodData = $doc['method_data']; - $secureEcom->payerAuthenticationRequest = $methodData['encoded_method_data'] ?? null; + $secureEcom->payerAuthenticationRequest = + isset($methodData['encoded_method_data']) ? $methodData['encoded_method_data'] : null; } elseif (array_key_exists('encoded_creq', $doc)) { - $secureEcom->payerAuthenticationRequest = $doc['encoded_creq'] ?? null; + $secureEcom->payerAuthenticationRequest = isset($doc['encoded_creq']) ? $doc['encoded_creq'] : null; } $response = new Transaction(); diff --git a/src/Gateways/PayPlanConnector.php b/src/Gateways/PayPlanConnector.php index f29e5dfb..26e46a2f 100644 --- a/src/Gateways/PayPlanConnector.php +++ b/src/Gateways/PayPlanConnector.php @@ -416,7 +416,7 @@ protected function mapCheckType($type) protected function buildSchedule($request, Schedule $schedule, $type) { $mapDuration = function () use ($schedule) { - if ($schedule->numberOfPayments !== null) { + if ($schedule->numberOfPaymentsRemaining !== null) { return 'Limited Number'; } @@ -436,7 +436,11 @@ protected function buildSchedule($request, Schedule $schedule, $type) case PaymentSchedule::LAST_DAY_OF_THE_MONTH: return 'Last'; default: - $day = $schedule->startDate->format('d'); + if (is_string($schedule->startDate) && !empty($schedule->startDate)) { + $day = intval(substr($schedule->startDate, 2, 2)); + } else { + $day = intval($schedule->startDate->format('d')); + } return $day > 28 ? 'Last' : $day; } } @@ -472,7 +476,7 @@ protected function buildSchedule($request, Schedule $schedule, $type) $request['invoiceNbr'] = $schedule->invoiceNumber; $request['poNumber'] = $schedule->poNumber; $request['description'] = $schedule->description; - $request['numberOfPayments'] = $schedule->numberOfPayments; + $request['numberOfPaymentsRemaining'] = $schedule->numberOfPaymentsRemaining; if ($type === TransactionType::CREATE) { $request['customerKey'] = $schedule->customerKey; @@ -481,7 +485,7 @@ protected function buildSchedule($request, Schedule $schedule, $type) $request['duration'] = $mapDuration(); } else { // Edit Fields if (!$schedule->hasStarted) { - $request = $this->buildDate($request, 'startDate', $schedule->startDate); + $request = $this->buildDate($request, 'startDate', $schedule->startDate, ($type === TransactionType::EDIT)); $request['frequency'] = $schedule->frequency; $request['duration'] = $mapDuration(); } else { @@ -489,15 +493,19 @@ protected function buildSchedule($request, Schedule $schedule, $type) $request = $this->buildDate($request, 'nextProcressingDate', $schedule->nextProcessingDate); } } - + return $request; } - protected function buildDate($request, $name, \DateTime $date = null, $force = false) + protected function buildDate($request, $name, $date = null, $force = false) { if ($date !== null || $force) { - $value = $date !== null ? $date->format('mdY') : null; - $request[$name] = $value; + if ($force && is_string($date)) { + $request[$name] = $date; + } else { + $value = $date !== null ? $date->format('mdY') : null; + $request[$name] = $value; + } } return $request; } @@ -593,14 +601,14 @@ protected function hydrateSchedule($response) $schedule->paymentKey = isset($response->paymentMethodKey) ? $response->paymentMethodKey : null; if (isset($response->subtotalAmount)) { $subtotal = $response->subtotalAmount; - $schedule->amount = $subtotal->value; + $schedule->amount = intval($subtotal->value) / 100; $schedule->currency = $subtotal->currency; } if (isset($response->taxAmount)) { $taxAmount = $response->taxAmount; - $schedule->taxAmount = $taxAmount->value; + $schedule->taxAmount = intval($taxAmount->value) / 100; } - $schedule->deviceId = isset($response->deviceId) ? $response->deviceId : null; + $schedule->deviceId = isset($response->deviceID) ? $response->deviceID : null; $schedule->startDate = $response->startDate; $schedule->paymentSchedule = isset($response->processingDateInfo) ? $response->processingDateInfo : null; switch ($schedule->paymentSchedule) { diff --git a/src/AcceptorConfig.php b/src/ServiceConfigs/AcceptorConfig.php similarity index 95% rename from src/AcceptorConfig.php rename to src/ServiceConfigs/AcceptorConfig.php index c0e65f3f..f8416900 100644 --- a/src/AcceptorConfig.php +++ b/src/ServiceConfigs/AcceptorConfig.php @@ -1,6 +1,6 @@ pinCaptureCapability = $pinCaptureCapability; $this->terminalOutputCapability = $terminalOutputCapability; } + + public function validate() { + // for use in future gateway integrations + } } diff --git a/src/ServiceConfigs/Configuration.php b/src/ServiceConfigs/Configuration.php new file mode 100644 index 00000000..477750d7 --- /dev/null +++ b/src/ServiceConfigs/Configuration.php @@ -0,0 +1,36 @@ +validated = true; + } +} diff --git a/src/ServiceConfigs/Gateways/GatewayConfig.php b/src/ServiceConfigs/Gateways/GatewayConfig.php new file mode 100644 index 00000000..30f2f6df --- /dev/null +++ b/src/ServiceConfigs/Gateways/GatewayConfig.php @@ -0,0 +1,44 @@ +gatewayProvider = $provider; + } + + // public function configureContainer($services) + // { + // // need to implement dataServicesConnector + // } + + public function validate() + { + parent::validate(); + + // data client validations go here when enabled + } +} diff --git a/src/ServiceConfigs/Gateways/GeniusConfig.php b/src/ServiceConfigs/Gateways/GeniusConfig.php new file mode 100644 index 00000000..85768c7f --- /dev/null +++ b/src/ServiceConfigs/Gateways/GeniusConfig.php @@ -0,0 +1,67 @@ +gatewayProvider = GatewayProvider::GENIUS; + } + + public function configureContainer ($services) { + + if (empty($this->serviceUrl)) { + $this->serviceUrl = $this->environment == Environment::TEST ? ServiceEndpoints::MERCHANTWARE_TEST : ServiceEndpoints::MERCHANTWARE_PRODUCTION; + } + + $gateway = new GeniusConnector(); + $gateway->merchantName = $this->merchantName; + $gateway->merchantSiteId = $this->merchantSiteId; + $gateway->merchantKey = $this->merchantKey; + $gateway->registerNumber = $this->registerNumber; + $gateway->terminalId = $this->terminalId; + $gateway->timeout = $this->timeout; + $gateway->serviceUrl = $this->serviceUrl; + + $services->gatewayConnector = $gateway; + } + + public function validate() + { + parent::validate(); + + if (empty($this->merchantSiteId)) { + throw new ConfigurationException('MerchantSiteId is required for this configuration.'); + } + + if (empty($this->merchantName)) { + throw new ConfigurationException('Merchantname is required for this configuration.'); + } + + if (empty($this->merchantKey)) { + throw new ConfigurationException('MerchantKey is required for this configuration.'); + } + } +} diff --git a/src/ServiceConfigs/Gateways/GpEcomConfig.php b/src/ServiceConfigs/Gateways/GpEcomConfig.php new file mode 100644 index 00000000..c0b1fa90 --- /dev/null +++ b/src/ServiceConfigs/Gateways/GpEcomConfig.php @@ -0,0 +1,93 @@ +gatewayProvider = GatewayProvider::GP_ECOM; + } + + public function configureContainer($services) { + // parent::configureContainer($services); // must implement data services first + + if (empty($this->serviceUrl)) { + $this->serviceUrl = $this->environment == Environment::TEST ? ServiceEndpoints::GLOBAL_ECOM_TEST : ServiceEndpoints::GLOBAL_ECOM_PRODUCTION; + } + + $gateway = new RealexConnector(); + $gateway->accountId = $this->accountId; + $gateway->channel = $this->channel; + $gateway->merchantId = $this->merchantId; + $gateway->rebatePassword = $this->rebatePassword; + $gateway->sharedSecret = $this->sharedSecret; + $gateway->timeout = $this->timeout; + $gateway->serviceUrl = $this->serviceUrl; + $gateway->refundPassword = $this->refundPassword; + $gateway->hostedPaymentConfig = $this->hostedPaymentConfig; + + $services->gatewayConnector = $gateway; + $services->recurringConnector = $gateway; + + if (empty($this->secure3dVersion)) { + $services->secure3dVersion = Secure3dVersion::ONE; + } + + if ($this->secure3dVersion == Secure3dVersion::ONE || $this->secure3dVersion == Secure3dVersion::ANY) { + $services->setSecure3dProvider(Secure3dVersion::ONE, $gateway); + } + + if ($this->secure3dVersion == Secure3dVersion::TWO || $this->secure3dVersion == Secure3dVersion::ANY) { + $secure3d2 = new Gp3DSProvider(); + $secure3d2->setMerchantId($gateway->merchantId); + $secure3d2->setAccountId($gateway->accountId); + $secure3d2->setSharedSecret($gateway->sharedSecret); + $secure3d2->serviceUrl = $gateway->serviceUrl; + $secure3d2->setMerchantContactUrl($this->merchantContactUrl); + $secure3d2->setMethodNotificationUrl($this->merchantNotificationUrl); + $secure3d2->setChallengeNotificationUrl($this->challengeNotificationUrl); + $secure3d2->timeout = $gateway->timeout; + + $services->setSecure3dProvider(Secure3dVersion::TWO, $secure3d2); + } + } + + public function validate() + { + parent::validate(); + + if (empty($this->merchantId)) { + throw new ConfigurationException("MerchantId is required for this gateway."); + } + + if (empty($this->sharedSecret)) { + throw new ConfigurationException("SharedSecret is required for this gateway."); + } + } +} diff --git a/src/ServiceConfigs/Gateways/PorticoConfig.php b/src/ServiceConfigs/Gateways/PorticoConfig.php new file mode 100644 index 00000000..3b16f216 --- /dev/null +++ b/src/ServiceConfigs/Gateways/PorticoConfig.php @@ -0,0 +1,132 @@ +secretApiKey), 'cert') !== false || (empty($this->secretApiKey) && $this->environment = Environment::TEST)) { + return '/Portico.PayPlan.v2/'; + } + return '/PayPlan.v2/'; + } + + // Common + public $curlOptions; + + /** @var Environment */ + public $environment; + public $serviceUrl; + public $timeout; + + public function __construct() + { + $this->gatewayProvider = GatewayProvider::PORTICO; + } + + public function configureContainer($services) + { + if (!empty($this->secretApiKey)) { + if (strpos($this->secretApiKey, '_prod_') !== false) { + $this->serviceUrl = ServiceEndpoints::PORTICO_PRODUCTION; + } else { + $this->serviceUrl = ServiceEndpoints::PORTICO_TEST; + } + } + + if (empty($this->serviceUrl)) { + $this->serviceUrl = $this->environment == Environment::TEST ? ServiceEndpoints::PORTICO_TEST : ServiceEndpoints::PORTICO_PRODUCTION; // check this + } + + $gateway = new PorticoConnector(); + $gateway->siteId = $this->siteId; + $gateway->licenseId = $this->licenseId; + $gateway->deviceId = $this->deviceId; + $gateway->username = $this->username; + $gateway->password = $this->password; + $gateway->secretApiKey = $this->secretApiKey; + $gateway->developerId = $this->developerId; + $gateway->versionNumber = $this->versionNumber; + $gateway->timeout = $this->timeout; + $gateway->serviceUrl = $this->serviceUrl . '/Hps.Exchange.PosGateway/PosGatewayService.asmx'; + $gateway->uniqueDeviceId = $this->uniqueDeviceId; + $gateway->requestLogger = $this->requestLogger; + + $services->gatewayConnector = $gateway; + + if (empty($this->dataClientId)) { + $services->reportingService = $gateway; + } + + $payplan = new PayPlanConnector(); + $payplan->secretApiKey = $this->secretApiKey; + $payplan->timeout = $this->timeout; + $payplan->serviceUrl = $this->serviceUrl . $this->getPayPlanEndpoint(); + + $services->recurringConnector = $payplan; + } + + public function validate() + { + parent::validate(); + + // Portico API key + if (!empty($this->secretApiKey) + && ( + !empty($this->siteId) + || !empty($this->licenseId) + || !empty($this->deviceId) + || !empty($this->username) + || !empty($this->password) + ) + ) { + throw new ConfigurationException( + "Configuration contains both secret API key and legacy credentials. These are mutually exclusive." + ); + } + + // Portico legacy + if (( + !empty($this->siteId) + || !empty($this->licenseId) + || !empty($this->deviceId) + || !empty($this->username) + || !empty($this->password) + ) + && ( + empty($this->siteId) + || empty($this->licenseId) + || empty($this->deviceId) + || empty($this->username) + || empty($this->password) + ) + ) { + throw new ConfigurationException( + "Site, License, Device, Username, and Password should all have values for this configuration." + ); + } + } +} diff --git a/src/ServiceConfigs/Gateways/TransitConfig.php b/src/ServiceConfigs/Gateways/TransitConfig.php new file mode 100644 index 00000000..23961027 --- /dev/null +++ b/src/ServiceConfigs/Gateways/TransitConfig.php @@ -0,0 +1,63 @@ +gatewayProvider = GatewayProvider::TRANSIT; + } + + public function configureContainer($services) { + + $gateway = new TransITConnector(); + $gateway->deviceId = $this->deviceId; + $gateway->developerId = $this->developerId; + $gateway->timeout = $this->timeout; + $gateway->serviceUrl = $this->serviceUrl; + $gateway->requestLogger = $this->requestLogger; + $gateway->acceptorConfig = $this->acceptorConfig; + $gateway->merchantId = $this->merchantId; + $gateway->transactionKey = $this->transactionKey; + + if (empty($this->serviceUrl)) { + $gateway->serviceUrl = $this->environment == Environment::TEST ? ServiceEndpoints::TRANSIT_TEST : ServiceEndpoints::TRANSIT_PRODUCTION; + } + + $services->gatewayConnector = $gateway; + } + + public function validate() + { + parent::validate(); + + if ($this->acceptorConfig == null) { + throw new ConfigurationException("You must provide a valid AcceptorConfig."); + } else { + $this->acceptorConfig->validate(); + } + + if (empty($this->deviceId)) { + throw new ConfigurationException("DeviceId cannot be null."); + } + + if (empty($this->merchantId)) { + throw new ConfigurationException("MerchantId cannot be null."); + } + } +} diff --git a/src/ServiceConfigs/ServicesConfig.php b/src/ServiceConfigs/ServicesConfig.php new file mode 100644 index 00000000..77fd08aa --- /dev/null +++ b/src/ServiceConfigs/ServicesConfig.php @@ -0,0 +1,43 @@ +gatewayConfig)) { + $this->gatewayConfig->validate(); + } + + if (!empty($this->deviceConnectionConfig)) { + $this->deviceConnectionConfig->validate(); + } + + if (!empty($this->tableServiceConfig)) { + $this->tableServiceConfig->validate(); + } + + if (!empty($this->payrollConfig)) { + $this->payrollConfig->validate(); + } + } +} diff --git a/src/Services/CreditService.php b/src/Services/CreditService.php index a3fcf1ad..eef08e7f 100644 --- a/src/Services/CreditService.php +++ b/src/Services/CreditService.php @@ -7,7 +7,7 @@ use GlobalPayments\Api\Entities\Enums\PaymentMethodType; use GlobalPayments\Api\Entities\Enums\TransactionType; use GlobalPayments\Api\PaymentMethods\TransactionReference; -use GlobalPayments\Api\ServicesConfig; +use GlobalPayments\Api\ServiceConfigs\ServicesConfig; use GlobalPayments\Api\ServicesContainer; class CreditService @@ -19,9 +19,9 @@ class CreditService * * @return void */ - public function __construct(ServicesConfig $config) + public function __construct($config) { - ServicesContainer::configure($config); + ServicesContainer::configureService($config); } /** diff --git a/src/Services/HostedService.php b/src/Services/HostedService.php index d3210d3f..43415f67 100644 --- a/src/Services/HostedService.php +++ b/src/Services/HostedService.php @@ -7,11 +7,11 @@ use GlobalPayments\Api\Entities\Enums\PaymentMethodType; use GlobalPayments\Api\Entities\Enums\TransactionType; use GlobalPayments\Api\PaymentMethods\TransactionReference; -use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\Utils\GenerationUtils; use GlobalPayments\Api\Entities\Exceptions\ApiException; use GlobalPayments\Api\Entities\Transaction; +use GlobalPayments\Api\ServiceConfigs\ServicesConfig; class HostedService { @@ -30,9 +30,9 @@ class HostedService * * @return void */ - public function __construct(ServicesConfig $config) + public function __construct($config) { - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $this->sharedSecret = $config->sharedSecret; } diff --git a/src/ServicesConfig.php b/src/ServicesConfig.php deleted file mode 100644 index 586f8fb7..00000000 --- a/src/ServicesConfig.php +++ /dev/null @@ -1,179 +0,0 @@ -secretApiKey) || strpos(strtolower($this->secretApiKey), 'cert') !== false) { - return '/Portico.PayPlan.v2/'; - } - return '/PayPlan.v2/'; - } - - // Realex - public $accountId; - public $merchantId; - public $sharedSecret; - public $rebatePassword; - public $refundPassword; - public $channel; - public $hostedPaymentConfig; - - // GP Data Services - public $dataClientId; - public $dataClientSecret; - public $dataClientUserId; - public $dataClientServiceUrl; - - // Secure 3d - /** @var string */ - public $challengeNotificationUrl; - - /** @var string */ - public $merchantContactUrl; - - /** @var string */ - public $methodNotificationUrl; - - /** @var Secure3dVersion */ - public $secure3dVersion; - - // Genius - public $merchantName; - public $merchantSiteId; - public $merchantKey; - public $registerNumber; - public $terminalId; - - //TransIT - public $transactionKey; - public $manifest; - public $acceptorConfig; - - // Common - public $curlOptions; - - /** @var Environment */ - public $environment; - public $serviceUrl; - public $timeout; - - public function __construct() - { - $this->timeout = 65000; - $this->environment = Environment::TEST; - $this->gatewayProvider = GatewayProvider::PORTICO; - } - - public function validate() - { - switch ($this->gatewayProvider) { - case GatewayProvider::GP_ECOM: - // realex - if (empty($this->merchantId)) { - throw new ConfigurationException('merchantId is required for this configuration.'); - } elseif (empty($this->sharedSecret)) { - throw new ConfigurationException('sharedSecret is required for this configuration.'); - } - break; - case GatewayProvider::GENIUS: - // Genius - if (empty($this->merchantSiteId)) { - throw new ConfigurationException('merchantSiteId is required for this configuration.'); - } elseif (empty($this->merchantName)) { - throw new ConfigurationException('merchantName is required for this configuration.'); - } elseif (empty($this->merchantKey)) { - throw new ConfigurationException('merchantKey is required for this configuration.'); - } - break; - case GatewayProvider::PORTICO: - // Portico API key - if (!empty($this->secretApiKey) - && ( - !empty($this->siteId) - || !empty($this->licenseId) - || !empty($this->deviceId) - || !empty($this->username) - || !empty($this->password) - ) - ) { - throw new ConfigurationException( - "Configuration contains both secret API key and legacy credentials. These are mutually exclusive." - ); - } - - // Portico legacy - if (( - !empty($this->siteId) - || !empty($this->licenseId) - || !empty($this->deviceId) - || !empty($this->username) - || !empty($this->password) - ) - && ( - empty($this->siteId) - || empty($this->licenseId) - || empty($this->deviceId) - || empty($this->username) - || empty($this->password) - ) - ) { - throw new ConfigurationException( - "Site, License, Device, Username, and Password should all have values for this configuration." - ); - } - break; - case GatewayProvider::TRANSIT: - // TransIT - if (empty($this->deviceId)) { - throw new ConfigurationException('deviceID is required for this configuration.'); - } - if (empty($this->acceptorConfig)) { - throw new ConfigurationException('You must provide a valid AcceptorConfig.'); - } - break; - } - - // // Service URL - // if (empty($this->serviceUrl) && $this->secure3dVersion != null) { - // throw new ConfigurationException( - // "Service URL could not be determined from the credentials provided. Please specify an endpoint." - // ); - // } - - // secure 3d - if ($this->secure3dVersion != null) { - if ($this->secure3dVersion === Secure3dVersion::TWO || $this->secure3dVersion === Secure3dVersion::ANY) { - if (empty($this->challengeNotificationUrl)) { - throw new ConfigurationException("The challenge notification URL is required for 3DS v2 processing."); - } - - if (empty($this->methodNotificationUrl)) { - throw new ConfigurationException("The method notification URL is required for 3DS v2 processing."); - } - } - } - } -} diff --git a/src/ServicesContainer.php b/src/ServicesContainer.php index b6f58839..1d982bdf 100644 --- a/src/ServicesContainer.php +++ b/src/ServicesContainer.php @@ -2,52 +2,26 @@ namespace GlobalPayments\Api; -use GlobalPayments\Api\Gateways\Gp3DSProvider; use GlobalPayments\Api\Gateways\IPaymentGateway; use GlobalPayments\Api\Gateways\IRecurringService; -use GlobalPayments\Api\Gateways\PayPlanConnector; -use GlobalPayments\Api\Gateways\PorticoConnector; -use GlobalPayments\Api\Gateways\RealexConnector; use GlobalPayments\Api\Gateways\ISecure3dProvider; -use GlobalPayments\Api\Entities\Enums\Environment; -use GlobalPayments\Api\Entities\Enums\GatewayProvider; use GlobalPayments\Api\Entities\Enums\Secure3dVersion; -use GlobalPayments\Api\Entities\Enums\ServiceEndpoints; +use GlobalPayments\Api\Entities\Exceptions\ApiException; use GlobalPayments\Api\Entities\Exceptions\ConfigurationException; -use GlobalPayments\Api\Gateways\MerchantwareConnector; -use GlobalPayments\Api\Gateways\TransITConnector; +use GlobalPayments\Api\ServiceConfigs\ServicesConfig; class ServicesContainer { /** @var array */ private $secure3dProviders; /** @var IPaymentGateway */ - private $gateway; + public $gatewayConnector; /** @var IRecurringService */ - private $recurring; + public $recurringConnector ; /** @var ServicesContainer */ private static $instance; - /** @return ISecure3dProvider */ - private function getSecure3dProvider($version) - { - if (!empty($this->secure3dProviders[$version])) { - return $this->secure3dProviders[$version]; - } elseif ($version == Secure3dVersion::ANY) { - $provider = $this->secure3dProviders[Secure3dVersion::TWO]; - if ($provider == null) { - $provider = $this->secure3dProviders[Secure3dVersion::ONE]; - } - return $provider; - } - return null; - } - - /** @return void */ - private function setSecure3dProvider($version, ISecure3dProvider $provider) - { - $this->secure3dProviders[$version] = $provider; - } + private static $configurations = array(); /** * ServicesContainer constructor. @@ -56,12 +30,52 @@ private function setSecure3dProvider($version, ISecure3dProvider $provider) * * @return */ - public function __construct(IPaymentGateway $gateway, IRecurringService $recurring = null) + public function __construct(IPaymentGateway $gateway = null, IRecurringService $recurring = null) { $this->gateway = $gateway; $this->recurring = $recurring; } + public static function configure(ServicesConfig $config, $configName = 'default') + { + $config->validate(); + + self::configureService($config->deviceConnectionConfig, $configName); + + self::configureService($config->tableServiceConfig, $configName); + + self::configureService($config->payrollConfig, $configName); + + self::configureService($config->gatewayConfig, $configName); + } + + public static function configureService($config, string $configName = 'default') + { + if ($config != null) { + if (!($config->validated)) { + $config->validate(); + } + + $cs = static::instance()->getConfiguration($configName); + $config->configureContainer($cs); + static::instance()->addConfiguration($configName, $cs); + } + } + + private function getConfiguration($configName) + { + if (array_key_exists($configName, self::$configurations)) { + return self::$configurations[$configName]; + } else { + return new ConfiguredServices(); + } + } + + private function addConfiguration($configName, $configuration) + { + static::$configurations[$configName] = $configuration; + } + /** * Gets the current `ServicesContainer` instance * @@ -70,182 +84,102 @@ public function __construct(IPaymentGateway $gateway, IRecurringService $recurri public static function instance() { if (static::$instance == null) { - static::$instance = new static(null); + static::$instance = new ServicesContainer(); } return static::$instance; } /** - * Configures the `ServicesContainer` singleton - * - * @param ServicesConfig $config + * Gets the configured gateway connector * - * @return void + * @return IPaymentGateway */ - public static function configure(ServicesConfig $config) + public function getClient($configName) { - $config->validate(); - - $gateway = null; - - // GP ECOM - if ($config->gatewayProvider === GatewayProvider::GP_ECOM) { - if (empty($config->serviceUrl)) { - if ($config->environment === Environment::TEST) { - $config->serviceUrl = ServiceEndpoints::GLOBAL_ECOM_TEST; - } else { - $config->serviceUrl = ServiceEndpoints::GLOBAL_ECOM_PRODUCTION; - } - } - - $gateway = new RealexConnector(); - $gateway->accountId = $config->accountId; - $gateway->channel = $config->channel; - $gateway->merchantId = $config->merchantId; - $gateway->rebatePassword = $config->rebatePassword; - $gateway->refundPassword = $config->refundPassword; - $gateway->sharedSecret = $config->sharedSecret; - $gateway->timeout = $config->timeout; - $gateway->serviceUrl = $config->serviceUrl; - $gateway->hostedPaymentConfig = $config->hostedPaymentConfig; - $gateway->curlOptions = $config->curlOptions; - static::$instance = new static($gateway, $gateway); - // set default - if ($config->secure3dVersion == null) { - $config->secure3dVersion = Secure3dVersion::ONE; - } - - // secure 3d v1 - if ($config->secure3dVersion === Secure3dVersion::ONE || $config->secure3dVersion === Secure3dVersion::ANY) { - static::$instance->setSecure3dProvider(Secure3dVersion::ONE, $gateway); - } + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->gatewayConnector; + } else { + throw new ApiException("The specified configuration has not been configured for gateway processing."); + } + } - // secure 3d v2 - if ($config->secure3dVersion === Secure3dVersion::TWO || $config->secure3dVersion === Secure3dVersion::ANY) { - $secure3d2 = new Gp3DSProvider(); - $secure3d2->setMerchantId($config->merchantId); - $secure3d2->setAccountId($config->accountId); - $secure3d2->setSharedSecret($config->sharedSecret); - $secure3d2->serviceUrl = $config->environment == Environment::TEST ? ServiceEndpoints::THREE_DS_AUTH_TEST : ServiceEndpoints::THREE_DS_AUTH_PRODUCTION; - $secure3d2->setMerchantContactUrl($config->merchantContactUrl); - $secure3d2->setMethodNotificationUrl($config->methodNotificationUrl); - $secure3d2->setChallengeNotificationUrl($config->challengeNotificationUrl); - $secure3d2->timeout = $config->timeout; - - static::$instance->setSecure3dProvider(Secure3dVersion::TWO, $secure3d2); - } - // Genius - } elseif ($config->gatewayProvider === GatewayProvider::GENIUS) { - if (empty($config->serviceUrl)) { - if ($config->environment === Environment::TEST) { - $config->serviceUrl = ServiceEndpoints::MERCHANTWARE_TEST; - } else { - $config->serviceUrl = ServiceEndpoints::MERCHANTWARE_PRODUCTION; - } - } + public function getDeviceInterface($configName) + { + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->deviceInterface; + } + + throw new ApiException("The specified configuration has not been configured for terminal interaction."); + } - $gateway = new MerchantwareConnector(); - $gateway->merchantName = $config->merchantName; - $gateway->merchantSiteId = $config->merchantSiteId; - $gateway->merchantKey = $config->merchantKey; - $gateway->registerNumber = $config->registerNumber; - $gateway->terminalId = $config->terminalId; - $gateway->timeout = $config->timeout; - $gateway->serviceUrl = $config->serviceUrl; - - static::$instance = new static($gateway); - // TransIT - } elseif ($config->gatewayProvider === GatewayProvider::TRANSIT) { - if (empty($config->serviceUrl)) { - if ($config->environment === Environment::TEST) { - $config->serviceUrl = ServiceEndpoints::TRANSIT_TEST; - } else { - $config->serviceUrl = ServiceEndpoints::TRANSIT_PRODUCTION; - } - } + public function getDeviceController($configName) + { + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->deviceController; + } + + throw new ApiException("The specified configuration has not been configured for terminal interaction."); + } - $gateway = new TransITConnector(); - $gateway->deviceId = $config->deviceId; - $gateway->merchantId = $config->merchantId; - $gateway->transactionKey = $config->transactionKey; - $gateway->manifest = $config->manifest; - $gateway->userId = $config->username; - $gateway->password = $config->password; - $gateway->developerId = $config->developerId; - $gateway->timeout = $config->timeout; - $gateway->serviceUrl = $config->serviceUrl; - $gateway->acceptorConfig = $config->acceptorConfig; - - static::$instance = new static($gateway); - } else { - if (empty($config->serviceUrl) && !empty($config->secretApiKey)) { - $env = explode('_', $config->secretApiKey)[1]; - if ($env == "prod") { - $config->serviceUrl = ServiceEndpoints::PORTICO_PRODUCTION; - } else { - $config->serviceUrl = ServiceEndpoints::PORTICO_TEST; - } - } + public function getRecurringClient($configName) + { + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->recurringConnector; + } + + throw new ApiException("The specified configuration has not been configured for recurring processing."); + } - $gateway = new PorticoConnector(); - $gateway->siteId = $config->siteId; - $gateway->licenseId = $config->licenseId; - $gateway->deviceId = $config->deviceId; - $gateway->username = $config->username; - $gateway->password = $config->password; - $gateway->secretApiKey = $config->secretApiKey; - $gateway->developerId = $config->developerId; - $gateway->versionNumber = $config->versionNumber; - $gateway->timeout = $config->timeout; - $gateway->serviceUrl = $config->serviceUrl . '/Hps.Exchange.PosGateway/PosGatewayService.asmx'; - $gateway->curlOptions = $config->curlOptions; - - static::$instance = new static($gateway); - - if (!empty($config->dataClientId)) { - // TODO: Add data services connector class and code - } else { - static::$instance = new static($gateway); - } - - $recurring = new PayPlanConnector(); - $recurring->secretApiKey = $config->secretApiKey; - $recurring->timeout = $config->timeout; - $recurring->serviceUrl = $config->serviceUrl . $config->getPayPlanEndpoint(); + public function getTableServiceClient($configName) + { + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->tableServiceClient; + } + + throw new ApiException("The specified configuration has not been configured for table service."); + } - static::$instance = new static($gateway, $recurring); + public function getBoardingConnector($configName) + { + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->boardingServiceConnector; } + + return null; } - /** - * Gets the configured gateway connector - * - * @return IPaymentGateway - */ - public function getClient() + public function getPayrollClient($configName) { - return $this->gateway; + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->payrollClient; + } + + throw new ApiException("The specified configuration has not been configured for payroll."); } - /** - * Gets the configured recurring gateway connector - * - * @return IRecurringService - */ - public function getRecurringClient() + public function getReportingClient($configName) { - return $this->recurring; + if (array_key_exists($configName, static::$configurations)) { + return static::$configurations[$configName]->reportingService; + } + + throw new ApiException("The specified configuration has not been configured for reporting."); } /** * @return ISecure3dProvider */ - public function getSecure3d($version) + public function getSecure3d($configName, Secure3dVersion $version) { - $provider = $this->getSecure3dProvider($version); - if ($provider != null) { - return $provider; + if (array_key_exists($configName, static::$configurations)) { + $provider = static::$configurations[$configName]->getSecure3dProvider($version); + if ($provider != null) { + return $provider; + } else { + throw new ConfigurationException("Secure 3d is not configured for version " . $version) . "."; + } + } else { + throw new ConfigurationException("Secure 3d is not configured on the connector."); } - throw new ConfigurationException(sprintf("Secure 3d is not configured for version %s", $version)); } } diff --git a/src/Terminals/PAX/Interfaces/PaxHttpInterface.php b/src/Terminals/PAX/Interfaces/PaxHttpInterface.php index 0415cd58..cdda8a6e 100644 --- a/src/Terminals/PAX/Interfaces/PaxHttpInterface.php +++ b/src/Terminals/PAX/Interfaces/PaxHttpInterface.php @@ -18,7 +18,7 @@ class PaxHttpInterface implements IDeviceCommInterface { /* * Device configuration details ConnectionConfig object - * + * */ public $deviceDetails; @@ -26,7 +26,7 @@ class PaxHttpInterface implements IDeviceCommInterface /* * Device request type - * + * */ private $requestType; @@ -98,7 +98,15 @@ private function getCurlOptions() $config[CURLOPT_SSL_VERIFYPEER] = false; //true $config[CURLOPT_SSL_VERIFYHOST] = false; //2 $config[CURLOPT_PROTOCOLS] = CURLPROTO_HTTPS; + + // Define the constant manually for earlier versions of PHP. + // Disable phpcs here since this constant does not exist until PHP 5.5.19. + // phpcs:disable + if (!defined('CURL_SSLVERSION_TLSv1_2')) { + define('CURL_SSLVERSION_TLSv1_2', 6); + } $config[CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2; + // phpcs:enable } return $config; diff --git a/src/Terminals/PAX/Interfaces/PaxTcpInterface.php b/src/Terminals/PAX/Interfaces/PaxTcpInterface.php index c93bc5b4..8a9940f4 100644 --- a/src/Terminals/PAX/Interfaces/PaxTcpInterface.php +++ b/src/Terminals/PAX/Interfaces/PaxTcpInterface.php @@ -62,11 +62,18 @@ public function connect() // open socket try { if ($this->deviceDetails->connectionMode === ConnectionModes::SSL_TCP) { + // Define the constant manually for earlier versions of PHP. + // Disable phpcs here since this constant does not exist until PHP 5.5. + // phpcs:disable + if (!defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) { + define('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT', 33); + } $context = stream_context_create([ 'ssl' => [ "crypto_method" => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT ] ]); + // phpcs:enable stream_context_set_option($context, 'ssl', 'allow_self_signed', true); stream_context_set_option($context, 'ssl', 'verify_peer', false); //true diff --git a/src/Terminals/PAX/PaxController.php b/src/Terminals/PAX/PaxController.php index da1aee43..2d093424 100644 --- a/src/Terminals/PAX/PaxController.php +++ b/src/Terminals/PAX/PaxController.php @@ -37,7 +37,7 @@ /* * Main controller class for Heartland payment application - * + * */ class PaxController extends DeviceController @@ -70,10 +70,10 @@ public function __construct(ConnectionConfig $config) /* * Send control message to device - * + * * @param string $message control message to device - * - * @return PaxResponse parsed device response + * + * @return PaxResponse parsed device response */ public function send($message, $requestType = null) diff --git a/src/Terminals/PAX/Responses/PaxBaseResponse.php b/src/Terminals/PAX/Responses/PaxBaseResponse.php index 4b9418a9..32ffe220 100644 --- a/src/Terminals/PAX/Responses/PaxBaseResponse.php +++ b/src/Terminals/PAX/Responses/PaxBaseResponse.php @@ -30,10 +30,10 @@ public function parseResponse($messageReader) /* * Check the device response code - * + * * @param PaxResponse $gatewayResponse parsed response from device * @param array $acceptedCodes list of success response codes - * + * * @return raise GatewayException incase of different unexpected code */ diff --git a/test/Data/TestCards.php b/test/Data/TestCards.php index b132d9af..75ebbcb1 100644 --- a/test/Data/TestCards.php +++ b/test/Data/TestCards.php @@ -13,6 +13,15 @@ class TestCards { + public static function validCardExpYear() + { + return intval(date('Y')) + 1; + } + + public static function expiredCardExpYear() { + return 2012; + } + public static function asDebit($card, $pinBlock) { $data = new DebitTrackData(); @@ -47,7 +56,7 @@ public static function visaManual($cardPresent = false, $readerPresent = false) $data = new CreditCardData(); $data->number = '4012002000060016'; $data->expMonth = 12; - $data->expYear = 2025; + $data->expYear = self::validCardExpYear(); $data->cvn = '123'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -87,7 +96,7 @@ public static function masterCardManual($cardPresent = false, $readerPresent = f $data = new CreditCardData(); $data->number = '5473500000000014'; $data->expMonth = 12; - $data->expYear = 2025; + $data->expYear = self::validCardExpYear(); $data->cvn = '123'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -99,7 +108,7 @@ public static function masterCardSeries2Manual($cardPresent = false, $readerPres $data = new CreditCardData(); $data->number = '2223000010005780'; $data->expMonth = 12; - $data->expYear = 2019; + $data->expYear = self::validCardExpYear(); $data->cvn = '123'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -163,7 +172,7 @@ public static function discoverManual($cardPresent = false, $readerPresent = fal $data = new CreditCardData(); $data->number = '6011000990156527'; $data->expMonth = 12; - $data->expYear = 2025; + $data->expYear = self::validCardExpYear(); $data->cvn = '123'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -203,7 +212,7 @@ public static function amexManual($cardPresent = false, $readerPresent = false) $data = new CreditCardData(); $data->number = '372700699251018'; $data->expMonth = 12; - $data->expYear = 2025; + $data->expYear = self::validCardExpYear(); $data->cvn = '1234'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -227,7 +236,7 @@ public static function jcbManual($cardPresent = false, $readerPresent = false) $data = new CreditCardData(); $data->number = '3566007770007321'; $data->expMonth = 12; - $data->expYear = 2025; + $data->expYear = self::validCardExpYear(); $data->cvn = '123'; $data->cardPresent = $cardPresent; $data->readerPresent = $readerPresent; @@ -265,7 +274,7 @@ public static function gsbManual() $data = new CreditCardData(); $data->number = '6277220572999800'; $data->expMonth = '12'; - $data->expYear = '2049'; + $data->expYear = self::validCardExpYear(); return $data; } } diff --git a/test/Integration/Gateways/GeniusConnector/MerchantwareGiftTests.php b/test/Integration/Gateways/GeniusConnector/MerchantwareGiftTests.php index 984fe65c..cd34120e 100644 --- a/test/Integration/Gateways/GeniusConnector/MerchantwareGiftTests.php +++ b/test/Integration/Gateways/GeniusConnector/MerchantwareGiftTests.php @@ -9,6 +9,7 @@ use GlobalPayments\Api\PaymentMethods\GiftCard; use GlobalPayments\Api\Entities\Enums\PaymentMethodType; use GlobalPayments\Api\Entities\Enums\Environment; +use GlobalPayments\Api\ServiceConfigs\Gateways\GeniusConfig; class GiftTest extends TestCase { @@ -17,7 +18,7 @@ class GiftTest extends TestCase public function setup() : void { - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); $this->card = new GiftCard(); $this->card->number = '6033590009112245098'; @@ -29,7 +30,7 @@ public function setup() : void protected function getConfig() { - $config = new ServicesConfig(); + $config = new GeniusConfig(); $config->merchantName = 'Test Shane Logsdon'; $config->merchantSiteId = 'BKHV2T68'; $config->merchantKey = 'AT6AN-ALYJE-YF3AW-3M5NN-UQDG1'; diff --git a/test/Integration/Gateways/GeniusConnector/MerchantwareTests.php b/test/Integration/Gateways/GeniusConnector/MerchantwareTests.php index 23973b4b..87b6ae8c 100644 --- a/test/Integration/Gateways/GeniusConnector/MerchantwareTests.php +++ b/test/Integration/Gateways/GeniusConnector/MerchantwareTests.php @@ -16,6 +16,8 @@ use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\Enums\Environment; +use GlobalPayments\Api\Gateways\GeniusConnector; +use GlobalPayments\Api\ServiceConfigs\Gateways\GeniusConfig; class CreditTest extends TestCase { @@ -28,7 +30,7 @@ class CreditTest extends TestCase public function setup() : void { - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); $this->address = new Address(); $this->address->streetAddress1 = '1 Federal Street'; @@ -47,7 +49,7 @@ public function setup() : void protected function getConfig() { - $config = new ServicesConfig(); + $config = new GeniusConfig(); // $config->merchantName = 'QA TSys Sierra Test'; // $config->merchantSiteId = 'D7MX8E4N'; // $config->merchantKey = '5U6HL-J7GHG-28AX1-G5KQH-AEH0G'; @@ -148,7 +150,7 @@ public function testCapture() public function testUpdatedBoardedCard() { $this->tokenizedCard->expMonth = 12; - $this->tokenizedCard->expYear = 2025; + $this->tokenizedCard->expYear = TestCards::validCardExpYear(); $success = $this->tokenizedCard->updateTokenExpiry(); $this->assertTrue($success); diff --git a/test/Integration/Gateways/PorticoConnector/AchTest.php b/test/Integration/Gateways/PorticoConnector/AchTest.php index 3a5d9589..98e01154 100644 --- a/test/Integration/Gateways/PorticoConnector/AchTest.php +++ b/test/Integration/Gateways/PorticoConnector/AchTest.php @@ -8,7 +8,7 @@ use GlobalPayments\Api\Entities\Enums\EntryMethod; use GlobalPayments\Api\Entities\Enums\SecCode; use GlobalPayments\Api\PaymentMethods\ECheck; -use GlobalPayments\Api\ServicesConfig; +use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; use GlobalPayments\Api\ServicesContainer; use PHPUnit\Framework\TestCase; @@ -48,7 +48,7 @@ public function setup() $this->address->state = 'NJ'; $this->address->postalCode = '12345'; - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); } public function testCheckSale() @@ -73,7 +73,7 @@ public function testSUPTCheckSale() protected function getConfig() { - $config = new ServicesConfig(); + $config = new PorticoConfig(); $config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A'; $config->serviceUrl = ($this->enableCryptoUrl) ? 'https://cert.api2-c.heartlandportico.com/': diff --git a/test/Integration/Gateways/PorticoConnector/AutoSubstantiationTest.php b/test/Integration/Gateways/PorticoConnector/AutoSubstantiationTest.php index 2febfd00..fe2f3cef 100644 --- a/test/Integration/Gateways/PorticoConnector/AutoSubstantiationTest.php +++ b/test/Integration/Gateways/PorticoConnector/AutoSubstantiationTest.php @@ -4,8 +4,9 @@ use GlobalPayments\Api\Entities\AutoSubstantiation; use GlobalPayments\Api\PaymentMethods\CreditCardData; -use GlobalPayments\Api\ServicesConfig; +use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; final class AutoSubstantiationTest extends TestCase { @@ -13,15 +14,15 @@ public function setup() : void { $this->card = new CreditCardData(); $this->card->number = '4111111111111111'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); } protected function getConfig() { - $config = new ServicesConfig(); + $config = new PorticoConfig(); $config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A'; $config->serviceUrl = 'https://cert.api2.heartlandportico.com'; return $config; diff --git a/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.php b/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.php index 6bbfe235..304a4166 100644 --- a/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.php +++ b/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.php @@ -2,6 +2,11 @@ namespace GlobalPayments\Api\Tests\Integration\Gateways\PorticoConnector\Certifications; +use GlobalPayments\Api\Entities\EncryptionData; +use GlobalPayments\Api\Entities\Enums\EntryMethod; +use GlobalPayments\Api\PaymentMethods\DebitTrackData; +use GlobalPayments\Api\PaymentMethods\EBTCardData; +use GlobalPayments\Api\PaymentMethods\EBTTrackData; use GlobalPayments\Api\Entities\Address; use GlobalPayments\Api\Entities\EcommerceInfo; use GlobalPayments\Api\Entities\Enums\EcommerceChannel; @@ -9,18 +14,286 @@ use GlobalPayments\Api\Entities\Enums\TaxType; use GlobalPayments\Api\Entities\Enums\TransactionModifier; use GlobalPayments\Api\Entities\Exceptions\ApiException; -use GlobalPayments\Api\Entities\Exceptions\GatewayException; use GlobalPayments\Api\Entities\Transaction; use GlobalPayments\Api\PaymentMethods\CreditCardData; use GlobalPayments\Api\PaymentMethods\CreditTrackData; use GlobalPayments\Api\PaymentMethods\GiftCard; -use GlobalPayments\Api\Services\BatchService; -use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; -use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\ThreeDSecure; use GlobalPayments\Api\Entities\Enums\Secure3dPaymentDataSource; +use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; +use GlobalPayments\Api\Services\BatchService; + +class TestCards +{ + public static function validCardExpYear() + { + return intval(date('Y')) + 1; + } + + public static function expiredCardExpYear() { + return 2012; + } + + public static function asDebit($card, $pinBlock) + { + $data = new DebitTrackData(); + $data->value = $card->value; + $data->encryptionData = $card->encryptionData; + $data->pinBlock = $pinBlock; + return $data; + } + + public static function asEBTTrack($card, $pinBlock) + { + $data = new EBTTrackData(); + $data->value = $card->value; + $data->entryMethod = $card->entryMethod; + $data->encryptionData = $card->encryptionData; + $data->pinBlock = $pinBlock; + return $data; + } + + public static function asEBTManual($card, $pinBlock) + { + $data = new EBTCardData(); + $data->number = $card->number; + $data->expMonth = $card->expMonth; + $data->expYear = $card->expYear; + $data->pinBlock = $pinBlock; + return $data; + } + + public static function visaManual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '4012002000060016'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '123'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function visaSwipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function visaSwipeEncrypted($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $encryptionData = new EncryptionData(); + $encryptionData->version = '01'; + + $data = new CreditTrackData(); + $data->value = ';'; + $data->entryMethod = $entryMethod; + $data->encryptionData = $encryptionData; + return $data; + } + + public static function masterCardManual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '5473500000000014'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '123'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function masterCardSeries2Manual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '2223000010005780'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '123'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function masterCardSwipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function masterCard24Swipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B2223000010005780^TEST CARD/EMV BIN-2^19121010000000009210?;2223000010005780=19121010000000009210?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function masterCard25Swipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B2223000010005798^TEST CARD/EMV BIN-2^19121010000000003840?;2223000010005798=19121010000000003840?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function masterCardSwipeEncrypted($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $encryptionData = new EncryptionData(); + $encryptionData->version = '01'; + + $data = new CreditTrackData(); + $data->value = ''; + $data->entryMethod = $entryMethod; + $data->encryptionData = $encryptionData; + return $data; + } + + public static function discoverManual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '6011000990156527'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '123'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function discoverSwipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B6011000990156527^DIS TEST CARD^25121011000062111401?;6011000990156527=25121011000062111401?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function discoverSwipeEncrypted($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $encryptionData = new EncryptionData(); + $encryptionData->version = '01'; + + $data = new CreditTrackData(); + $data->value = ''; + $data->entryMethod = $entryMethod; + $data->encryptionData = $encryptionData; + return $data; + } + + public static function amexManual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '372700699251018'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '1234'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function amexSwipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B3727 006992 51018^AMEX TEST CARD^2512990502700?;372700699251018=2512990502700?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function jcbManual($cardPresent = false, $readerPresent = false) + { + $data = new CreditCardData(); + $data->number = '3566007770007321'; + $data->expMonth = 12; + $data->expYear = self::validCardExpYear(); + $data->cvn = '123'; + $data->cardPresent = $cardPresent; + $data->readerPresent = $readerPresent; + return $data; + } + + public static function jcbSwipe($entryMethod = null) + { + if ($entryMethod === null) { + $entryMethod = EntryMethod::SWIPE; + } + + $data = new CreditTrackData(); + $data->value = '%B3566007770007321^JCB TEST CARD^2512101100000000000000000064300000?;3566007770007321=25121011000000076435?'; + $data->entryMethod = $entryMethod; + return $data; + } + + public static function giftCard1Swipe() + { + $data = new GiftCard(); + $data->trackData = '%B5022440000000000098^^391200081613?;5022440000000000098=391200081613?'; + return $data; + } + + public static function giftCard2Manual() + { + $data = new GiftCard(); + $data->number = '5022440000000000007'; + return $data; + } + + public static function gsbManual() + { + $data = new CreditCardData(); + $data->number = '6277220572999800'; + $data->expMonth = '12'; + $data->expYear = self::validCardExpYear(); + return $data; + } +} + + class EcommerceTest extends TestCase { @@ -55,7 +328,7 @@ class EcommerceTest extends TestCase private function config() { - $config = new ServicesConfig(); + $config = new PorticoConfig(); $config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A'; $config->serviceUrl = ($this->enableCryptoUrl) ? 'https://cert.api2-c.heartlandportico.com/': @@ -63,9 +336,9 @@ private function config() return $config; } - protected function setup() + protected function setup() : void { - ServicesContainer::configure($this->config()); + ServicesContainer::configureService($this->config()); $this->publicKey = 'pkapi_cert_jKc1FtuyAydZhZfbB3'; $this->ecommerceInfo = new EcommerceInfo(); @@ -1121,7 +1394,7 @@ public function test014ChargeJcbOneTime() $card = new CreditCardData(); $card->number = '3566007770007321'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $response = $card->charge(13.15) @@ -1688,7 +1961,7 @@ public function test100ChargeVisaEcommerceInfo() ->withCurrency('USD') ->withAmount(13.01) ->withAddress($address) - ->withEcommerceInfo($this->ecommerceInfo) + // ->withEcommerceInfo($this->ecommerceInfo) ->withInvoiceNumber('12345') ->withAllowDuplicates(true) ->execute(); diff --git a/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.php b/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.php index 7c2d29e4..fa3efa6d 100644 --- a/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.php +++ b/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.php @@ -88,7 +88,7 @@ public function test001VerifyVisa() $card = new CreditCardData(); $card->number = '4484958240202792'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->verify() ->withRequestMultiUseToken($this->useTokens) @@ -103,7 +103,7 @@ public function test002VerifyMasterCard() $card = new CreditCardData(); $card->number = '5356083898949891'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->verify() ->withRequestMultiUseToken($this->useTokens) @@ -121,7 +121,7 @@ public function test003VerifyDiscover() $card = new CreditCardData(); $card->number = '6223971100014620'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->verify() ->withAddress($address) @@ -142,7 +142,7 @@ public function test004VerifyAmex() $card = new CreditCardData(); $card->number = '345039962663847'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->verify() ->withAddress($address) @@ -160,7 +160,7 @@ public function test005BalanceInquiryVisa() $card = new CreditCardData(); $card->number = '4664383951958601'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->balanceInquiry()->execute(); @@ -179,7 +179,7 @@ public function test006ChargeVisaToken() $card = new CreditCardData(); $card->number = '4012002000060016'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $response = $card->charge(13.01) ->withCurrency('USD') @@ -203,7 +203,7 @@ public function test007ChargeMasterCardToken() $card = new CreditCardData(); $card->number = '5473500000000014'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $response = $card->charge(13.02) @@ -228,7 +228,7 @@ public function test008ChargeDiscoverToken() $card = new CreditCardData(); $card->number = '6011000990156527'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $response = $card->charge(13.03) @@ -253,7 +253,7 @@ public function test009ChargeAmexToken() $card = new CreditCardData(); $card->number = '372700699251018'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '1234'; $response = $card->charge(13.04) @@ -390,7 +390,7 @@ public function test014ChargeJcb() $card = new CreditCardData(); $card->number = '3566007770007321'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $response = $card->charge(17.05) @@ -1150,7 +1150,7 @@ public function test014ChargeJcbOneTime() $card = new CreditCardData(); $card->number = '3566007770007321'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $response = $card->charge(13.15) diff --git a/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.php b/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.php index e9d0be0d..e615271b 100644 --- a/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.php +++ b/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.php @@ -2,9 +2,11 @@ namespace GlobalPayments\Api\Tests\Integration\Gateways\PorticoConnector\Certifications; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; +use DateTime; +use DateInterval; -use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\Entities\Address; use GlobalPayments\Api\Entities\Customer; @@ -21,8 +23,9 @@ use GlobalPayments\Api\Services\BatchService; use GlobalPayments\Api\Utils\GenerationUtils; use GlobalPayments\Api\Entities\Enums\StoredCredentialInitiator; +use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; -class RecurringTest extends TestCase +final class RecurringTest extends TestCase { /** @var string */ private $todayDate = null; @@ -62,6 +65,8 @@ class RecurringTest extends TestCase private $enableCryptoUrl = true; + private static $scheduleVisaID; + /** * @param string $identifier * @@ -73,11 +78,11 @@ private function getIdentifier($identifier) } /** - * @return ServicesConfig + * @return PorticoConfig */ private function config() { - $config = new ServicesConfig(); + $config = new PorticoConfig(); $config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A'; $config->serviceUrl = ($this->enableCryptoUrl) ? 'https://cert.api2-c.heartlandportico.com/': @@ -85,9 +90,9 @@ private function config() return $config; } - protected function setup() + public function setup() : void { - ServicesContainer::configure($this->config()); + ServicesContainer::configureService($this->config()); $this->todayDate = date('Ymd'); $this->identifierBase = substr( @@ -185,7 +190,7 @@ public function test003AddPaymentCreditVisa() $card = new CreditCardData(); $card->number = '4012002000060016'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $paymentMethod = static::$customerPerson->addPaymentMethod( $this->getIdentifier('CreditV'), @@ -206,7 +211,7 @@ public function test004AddPaymentCreditMasterCard() $card = new CreditCardData(); $card->number = '5473500000000014'; $card->expMonth = '12'; - $card->expYear = '2025'; + $card->expYear = TestCards::validCardExpYear(); $paymentMethod = static::$customerPerson->addPaymentMethod( $this->getIdentifier('CreditMC'), @@ -305,8 +310,10 @@ public function test008AddScheduleCreditVisa() $this->markTestIncomplete(); } + static::$scheduleVisaID = $this->getIdentifier('CreditV'); + $schedule = static::$paymentMethodVisa->addSchedule( - $this->getIdentifier('CreditV') + static::$scheduleVisaID ) ->withStatus('Active') ->withAmount(30.02) @@ -359,7 +366,7 @@ public function test010AddScheduleCheckPPD() ->withStartDate(\DateTime::createFromFormat('Y-m-d', '2027-02-01')) ->withFrequency(ScheduleFrequency::MONTHLY) ->withReprocessingCount(1) - ->withNumberOfPayments(2) + ->withnumberOfPaymentsRemaining(2) ->create(); $this->assertNotNull($schedule); $this->assertNotNull($schedule->key); @@ -426,7 +433,7 @@ public function test013AddScheduleCCheckPPD() ->withStartDate(\DateTime::createFromFormat('Y-m-d', '2027-02-01')) ->withFrequency(ScheduleFrequency::MONTHLY) ->withReprocessingCount(1) - ->withNumberOfPayments(2) + ->withnumberOfPaymentsRemaining(2) ->create(); } @@ -603,4 +610,21 @@ public function test024RecurringBillingVisaWithCOF() $this->assertNotNull($nextResponse); $this->assertEquals('00', $nextResponse->responseCode); } + + public function test025EditStartDateUsingString() + { + $schedule = Schedule::find(static::$scheduleVisaID); + $schedule->startDate = '01022026'; + $schedule->saveChanges(); + } + + public function test026EditStartDateUsingDateTimeObj() + { + $updateTimeValueAsObj = new DateTime(); + $updateTimeValueAsObj->add(new DateInterval('P1Y')); + + $schedule = Schedule::find(static::$scheduleVisaID); + $schedule->startDate = $updateTimeValueAsObj; + $schedule->saveChanges(); + } } diff --git a/test/Integration/Gateways/PorticoConnector/CommercialCardTest.php b/test/Integration/Gateways/PorticoConnector/CommercialCardTest.php index 384993e4..00f9d871 100644 --- a/test/Integration/Gateways/PorticoConnector/CommercialCardTest.php +++ b/test/Integration/Gateways/PorticoConnector/CommercialCardTest.php @@ -4,9 +4,10 @@ use GlobalPayments\Api\Entities\CommercialData; use GlobalPayments\Api\Entities\Enums\TaxType; -use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\PaymentMethods\CreditCardData; +use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; final class CommercialCardTest extends TestCase { @@ -14,23 +15,22 @@ public function setup() : void { $this->card = new CreditCardData(); $this->card->number = '4111111111111111'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); } protected function getConfig() { - $config = new ServicesConfig(); + $config = new PorticoConfig; $config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A'; $config->serviceUrl = 'https://cert.api2.heartlandportico.com'; return $config; } public function testCommercialData1() { // test sending LVL2 data with the orinal transaction - $commercialData = new CommercialData; + $commercialData = new CommercialData(TaxType::SALES_TAX); $commercialData->taxAmount = '1.23'; - $commercialData->taxType = TaxType::SALES_TAX; $commercialData->poNumber = '654564564'; $response = $this->card->charge(112.34) diff --git a/test/Integration/Gateways/PorticoConnector/CreditTest.php b/test/Integration/Gateways/PorticoConnector/CreditTest.php index a9082ad5..7a4f4550 100644 --- a/test/Integration/Gateways/PorticoConnector/CreditTest.php +++ b/test/Integration/Gateways/PorticoConnector/CreditTest.php @@ -11,6 +11,7 @@ use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\Enums\StoredCredentialInitiator; use GlobalPayments\Api\Entities\Transaction; +use GlobalPayments\Api\Tests\Data\TestCards; class CreditTest extends TestCase { @@ -23,7 +24,7 @@ public function setup() : void $this->card = new CreditCardData(); $this->card->number = '4111111111111111'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; $this->card->cardHolderName = 'Joe Smith'; diff --git a/test/Integration/Gateways/PorticoConnector/PorticoReportingTests.php b/test/Integration/Gateways/PorticoConnector/PorticoReportingTests.php index b83adf78..c6053fb0 100644 --- a/test/Integration/Gateways/PorticoConnector/PorticoReportingTests.php +++ b/test/Integration/Gateways/PorticoConnector/PorticoReportingTests.php @@ -29,7 +29,7 @@ public function setup() $this->card = new CreditCardData(); $this->card->number = '4111111111111111'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; $this->card->cardHolderName = 'Joe Smith'; diff --git a/test/Integration/Gateways/PorticoConnector/PorticoTokenManagementTest.php b/test/Integration/Gateways/PorticoConnector/PorticoTokenManagementTest.php index 05109302..c17be63a 100644 --- a/test/Integration/Gateways/PorticoConnector/PorticoTokenManagementTest.php +++ b/test/Integration/Gateways/PorticoConnector/PorticoTokenManagementTest.php @@ -7,6 +7,7 @@ use GlobalPayments\Api\Entities\Exceptions\ApiException; use GlobalPayments\Api\Entities\Exceptions\GatewayException; use GlobalPayments\Api\PaymentMethods\CreditCardData; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; class PorticoReportingTests extends TestCase @@ -21,7 +22,7 @@ public function setup() : void $card = new CreditCardData(); $card->number = '4111111111111111'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $this->token = $card->tokenize()->execute()->token; @@ -44,7 +45,7 @@ public function testUpdateToken() $token = new CreditCardData(); $token->token = $this->token; $token->expMonth = 12; - $token->expYear = 2025; + $token->expYear = TestCards::validCardExpYear(); $this->assertTrue($token->updateTokenExpiry()); diff --git a/test/Integration/Gateways/RealexConnector/ApiTestCase.php b/test/Integration/Gateways/RealexConnector/ApiTestCase.php index 432ce586..d486ea6f 100644 --- a/test/Integration/Gateways/RealexConnector/ApiTestCase.php +++ b/test/Integration/Gateways/RealexConnector/ApiTestCase.php @@ -18,6 +18,7 @@ use GlobalPayments\Api\Entities\Enums\ReasonCode; use GlobalPayments\Api\Entities\Transaction; use GlobalPayments\Api\Entities\Exceptions\ApiException; +use GlobalPayments\Api\Tests\Data\TestCards; use GlobalPayments\Api\Utils\GenerationUtils; use GlobalPayments\Api\Entities\Enums\TransactionModifier; use GlobalPayments\Api\Entities\Enums\EncyptedMobileType; @@ -44,7 +45,7 @@ public function testprocessPaymentAuthorisation() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -86,7 +87,7 @@ public function testprocessPaymentRefund() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -119,7 +120,7 @@ public function testprocessPaymentOtb() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -170,7 +171,7 @@ public function testthreeDSecureAuth() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -217,7 +218,7 @@ public function testtransactionManagementDelayedAuth() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -293,7 +294,7 @@ public function testTransactionManagementRebate() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -376,7 +377,7 @@ public function testfraudManagementDataSubmission() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -430,7 +431,7 @@ public function testfraudManagementHold() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -479,7 +480,7 @@ public function testfraudManagementRelease() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -744,7 +745,7 @@ public function testfraudManagementAVSMatch() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -787,7 +788,7 @@ public function testfraudManagementOffMode() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -841,7 +842,7 @@ public function testfraudManagementDecisionManager() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -957,7 +958,7 @@ public function testAuthorisationWithoutAccountId() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -984,7 +985,7 @@ public function testRefundWithoutAccountId() $card = new CreditCardData(); $card->number = '4263970000005262'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; diff --git a/test/Integration/Gateways/RealexConnector/Certifications/SdkTest.php b/test/Integration/Gateways/RealexConnector/Certifications/SdkTest.php index 05e488d4..5b4ebfa5 100644 --- a/test/Integration/Gateways/RealexConnector/Certifications/SdkTest.php +++ b/test/Integration/Gateways/RealexConnector/Certifications/SdkTest.php @@ -2,7 +2,6 @@ namespace GlobalPayments\Api\Tests\Integration\Gateways\RealexConnector\Certifications; -use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\Entities\Address; use GlobalPayments\Api\Entities\Transaction; @@ -10,6 +9,8 @@ use GlobalPayments\Api\Entities\Enums\CvnPresenceIndicator; use GlobalPayments\Api\Entities\Enums\ReasonCode; use GlobalPayments\Api\PaymentMethods\CreditCardData; +use GlobalPayments\Api\ServiceConfigs\Gateways\GpEcomConfig; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; class RealexSdkCertification extends TestCase @@ -21,7 +22,7 @@ public function tearDown() protected function getBaseConfig() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "api"; $config->sharedSecret = "secret"; @@ -37,7 +38,7 @@ public function getBaseCardData() $card = new CreditCardData(); $card->number = "4263970000005262"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; $card->cardHolderName = "James Mason"; @@ -47,7 +48,7 @@ public function getBaseCardData() public function testAuth006a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -64,7 +65,7 @@ public function testAuth006a() public function testAuth006b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -81,7 +82,7 @@ public function testAuth006b() public function testAuth006c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -98,7 +99,7 @@ public function testAuth006c() public function testAuth006d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -115,7 +116,7 @@ public function testAuth006d() public function testAuth006e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -132,7 +133,7 @@ public function testAuth006e() public function testAuth006f() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -149,7 +150,7 @@ public function testAuth006f() public function testAuth006g() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -166,7 +167,7 @@ public function testAuth006g() public function testAuth006h() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -183,7 +184,7 @@ public function testAuth006h() public function testAuth006i() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -200,7 +201,7 @@ public function testAuth006i() public function testAuth006j() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -217,7 +218,7 @@ public function testAuth006j() public function testAuth006k() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -234,7 +235,7 @@ public function testAuth006k() public function testAuth007a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -251,7 +252,7 @@ public function testAuth007a() public function testAuth007b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -268,7 +269,7 @@ public function testAuth007b() public function testAuth007c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -285,7 +286,7 @@ public function testAuth007c() public function testAuth007d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -302,7 +303,7 @@ public function testAuth007d() public function testAuth007e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -319,7 +320,7 @@ public function testAuth007e() public function testAuth008a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -336,7 +337,7 @@ public function testAuth008a() public function testAuth008b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -353,7 +354,7 @@ public function testAuth008b() public function testAuth008c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -370,7 +371,7 @@ public function testAuth008c() public function testAuth008d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -387,7 +388,7 @@ public function testAuth008d() public function testAuth008e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -406,7 +407,7 @@ public function testAuth009a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -428,7 +429,7 @@ public function testAuth009b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "E"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -450,7 +451,7 @@ public function testAuth009c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOMMERCE"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -467,7 +468,7 @@ public function testAuth009c() public function testAuth009d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -484,7 +485,7 @@ public function testAuth009d() public function testAuth010a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -501,7 +502,7 @@ public function testAuth010a() public function testAuth010b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -518,7 +519,7 @@ public function testAuth010b() public function testAuth010c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -535,7 +536,7 @@ public function testAuth010c() public function testAuth010d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -552,7 +553,7 @@ public function testAuth010d() public function testAuth010e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -569,7 +570,7 @@ public function testAuth010e() public function testAuth011a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -586,7 +587,7 @@ public function testAuth011a() public function testAuth011b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -603,7 +604,7 @@ public function testAuth011b() public function testAuth011c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -623,7 +624,7 @@ public function testAuth011c() public function testAuth011d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -640,7 +641,7 @@ public function testAuth011d() public function testAuth012a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -660,7 +661,7 @@ public function testAuth012a() public function testAuth012b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -680,7 +681,7 @@ public function testAuth012b() public function testAuth012c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -700,7 +701,7 @@ public function testAuth012c() public function testAuth012d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -716,7 +717,7 @@ public function testAuth012d() public function testAuth013a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -736,13 +737,13 @@ public function testAuth013a() public function testAuth013b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "424242000000000000000"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -759,13 +760,13 @@ public function testAuth013b1() public function testAuth013b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "42424242424"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -782,13 +783,13 @@ public function testAuth013b2() public function testAuth013c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4263970000005262#"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -802,7 +803,7 @@ public function testAuth013c() public function testAuth014a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -824,12 +825,12 @@ public function testAuth014b() $this->markTestSkipped('Exception not thrown'); $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -846,12 +847,12 @@ public function testAuth014b() public function testAuth014c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep"; // request @@ -866,12 +867,12 @@ public function testAuth014c() public function testAuth014d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "James~Mason"; // request @@ -886,7 +887,7 @@ public function testAuth014d() public function testAuth015a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -903,7 +904,7 @@ public function testAuth015a() public function testAuth015b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -923,12 +924,12 @@ public function testAuth015b() public function testAuth015c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 20; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -947,7 +948,7 @@ public function testAuth015d() $this->markTestSkipped('Exception not thrown'); $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -964,7 +965,7 @@ public function testAuth015d() public function testAuth016a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -981,7 +982,7 @@ public function testAuth016a() public function testAuth016b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -998,7 +999,7 @@ public function testAuth016b() public function testAuth016c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1015,7 +1016,7 @@ public function testAuth016c() public function testAuth017a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1032,7 +1033,7 @@ public function testAuth017a() public function testAuth018a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1049,7 +1050,7 @@ public function testAuth018a() public function testAuth019a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1069,12 +1070,12 @@ public function testAuth019a() public function testAuth019b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -1089,7 +1090,7 @@ public function testAuth019b1() public function testAuth019b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1109,12 +1110,12 @@ public function testAuth019b2() public function testAuth019c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12345"; // request @@ -1129,13 +1130,13 @@ public function testAuth019c() public function testAuth019d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -1150,7 +1151,7 @@ public function testAuth019d() public function testAuth020a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1167,12 +1168,12 @@ public function testAuth020a1() public function testAuth020a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::ILLEGIBLE; @@ -1188,12 +1189,12 @@ public function testAuth020a2() public function testAuth020a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_ON_CARD; @@ -1209,12 +1210,12 @@ public function testAuth020a3() public function testAuth020a4() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_REQUESTED; @@ -1235,12 +1236,12 @@ public function testAuth020b() $this->markTestSkipped('Exception not thrown'); $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = 5; // request @@ -1255,12 +1256,12 @@ public function testAuth020b() public function testAuth020c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = 0; // request @@ -1275,7 +1276,7 @@ public function testAuth020c() public function testAuth021a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1292,7 +1293,7 @@ public function testAuth021a1() public function testAuth021a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1309,7 +1310,7 @@ public function testAuth021a2() public function testAuth021a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1326,7 +1327,7 @@ public function testAuth021a3() public function testAuth021b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1343,7 +1344,7 @@ public function testAuth021b() public function testAuth021c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1360,7 +1361,7 @@ public function testAuth021c() public function testAuth022a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1377,7 +1378,7 @@ public function testAuth022a() public function testAuth022b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1394,7 +1395,7 @@ public function testAuth022b() public function testAuth022c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1411,7 +1412,7 @@ public function testAuth022c() public function testAuth022d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1428,7 +1429,7 @@ public function testAuth022d() public function testAuth022e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1445,7 +1446,7 @@ public function testAuth022e() public function testAuth023a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1462,7 +1463,7 @@ public function testAuth023a1() public function testAuth023a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1479,7 +1480,7 @@ public function testAuth023a2() public function testAuth023b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1496,7 +1497,7 @@ public function testAuth023b1() public function testAuth023c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1513,7 +1514,7 @@ public function testAuth023c() public function testAuth024a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1530,7 +1531,7 @@ public function testAuth024a1() public function testAuth024a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1547,7 +1548,7 @@ public function testAuth024a2() public function testAuth024a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1564,7 +1565,7 @@ public function testAuth024a3() public function testAuth024b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1581,7 +1582,7 @@ public function testAuth024b() public function testAuth024c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1598,7 +1599,7 @@ public function testAuth024c() public function testAuth025() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1615,7 +1616,7 @@ public function testAuth025() public function testAuth026a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1632,7 +1633,7 @@ public function testAuth026a1() public function testAuth026a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1648,7 +1649,7 @@ public function testAuth026a2() public function testAuth026b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1664,7 +1665,7 @@ public function testAuth026b() public function testAuth026c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1681,7 +1682,7 @@ public function testAuth026c1() public function testAuth026c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1698,7 +1699,7 @@ public function testAuth026c2() public function testAuth027a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1716,7 +1717,7 @@ public function testAuth027a() public function testAuth028a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1734,7 +1735,7 @@ public function testAuth028a() public function testAuth028b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1754,7 +1755,7 @@ public function testAuth028b() public function testAuth028c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1775,7 +1776,7 @@ public function testAuth028c() public function testAuth028d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1793,7 +1794,7 @@ public function testAuth028d() public function testAuth029a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1811,7 +1812,7 @@ public function testAuth029a() public function testAuth029b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1831,7 +1832,7 @@ public function testAuth029b() public function testAuth029c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1852,7 +1853,7 @@ public function testAuth029c() public function testAuth029d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1870,7 +1871,7 @@ public function testAuth029d() public function testAuth030a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1888,7 +1889,7 @@ public function testAuth030a() public function testAuth030b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1908,7 +1909,7 @@ public function testAuth030b() public function testAuth030c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1929,7 +1930,7 @@ public function testAuth030c() public function testAuth030d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1947,7 +1948,7 @@ public function testAuth030d() public function testAuth031a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1965,7 +1966,7 @@ public function testAuth031a() public function testAuth031b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -1985,7 +1986,7 @@ public function testAuth031b() public function testAuth031c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -2006,7 +2007,7 @@ public function testAuth031c1() public function testAuth031c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -2024,7 +2025,7 @@ public function testAuth031c2() public function testAuth032a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2053,7 +2054,7 @@ public function testAuth032a() public function testAuth033a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2080,7 +2081,7 @@ public function testAuth033a() public function testAuth033b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2102,7 +2103,7 @@ public function testAuth033b1() public function testAuth033b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -2127,7 +2128,7 @@ public function testAuth033b2() public function testAuth033c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2152,7 +2153,7 @@ public function testAuth033c1() public function testAuth033c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -2174,7 +2175,7 @@ public function testAuth033c2() public function testAuth034a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2201,7 +2202,7 @@ public function testAuth034a() public function testAuth034b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -2223,7 +2224,7 @@ public function testAuth034b1() public function testAuth034b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2248,7 +2249,7 @@ public function testAuth034b2() public function testAuth034c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2273,7 +2274,7 @@ public function testAuth034c1() public function testAuth034c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -2295,7 +2296,7 @@ public function testAuth034c2() public function testAuth035a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -2312,7 +2313,7 @@ public function testAuth035a() public function testAuth035b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -2331,7 +2332,7 @@ public function testAuth055a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2366,7 +2367,7 @@ public function testValidation002a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2401,7 +2402,7 @@ public function testValidation002b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2436,7 +2437,7 @@ public function testValidation002c1() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2471,7 +2472,7 @@ public function testValidation002c2() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2509,7 +2510,7 @@ public function testValidation002d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2525,7 +2526,7 @@ public function testValidation002d() $card = $this->getBaseCardData(); $card->number = "V002625938386848"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -2547,7 +2548,7 @@ public function testValidation002e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2585,7 +2586,7 @@ public function testValidation002f() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2601,7 +2602,7 @@ public function testValidation002f() $card = $this->getBaseCardData(); $card->number = " 4002 6259 3838 6848"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -2623,7 +2624,7 @@ public function testValidation002g() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2661,7 +2662,7 @@ public function testValidation002h() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2677,7 +2678,7 @@ public function testValidation002h() $card = $this->getBaseCardData(); $card->number = ""; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -2699,7 +2700,7 @@ public function testValidation003a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2734,7 +2735,7 @@ public function testValidation003b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2772,7 +2773,7 @@ public function testValidation003c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2787,7 +2788,7 @@ public function testValidation003c() // create card $card = $this->getBaseCardData(); $card->expMonth = 20; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -2812,7 +2813,7 @@ public function testValidation003d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2827,7 +2828,7 @@ public function testValidation003d() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -2852,7 +2853,7 @@ public function testValidation003e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2867,7 +2868,7 @@ public function testValidation003e() // create card $card = $this->getBaseCardData(); $card->expMonth = 11; - $card->expYear = 5; + $card->expYear = 5; // magic number? // request $response = $card->charge(100.01) @@ -2889,7 +2890,7 @@ public function testValidation003f() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2924,7 +2925,7 @@ public function testValidation003g() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -2939,7 +2940,7 @@ public function testValidation003g() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 20; + $card->expYear = 20; // magic number? // request $response = $card->charge(100.01) @@ -2961,7 +2962,7 @@ public function testValidation003h() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3001,7 +3002,7 @@ public function testValidation003i() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3036,7 +3037,7 @@ public function testValidation004a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3074,7 +3075,7 @@ public function testValidation004b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3089,7 +3090,7 @@ public function testValidation004b() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -3115,7 +3116,7 @@ public function testValidation004c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3130,7 +3131,7 @@ public function testValidation004c() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12345"; // request @@ -3153,7 +3154,7 @@ public function testValidation004d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3169,7 +3170,7 @@ public function testValidation004d() $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -3195,7 +3196,7 @@ public function testValidation004e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3211,7 +3212,7 @@ public function testValidation004e() $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -3233,7 +3234,7 @@ public function testValidation004f() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3248,7 +3249,7 @@ public function testValidation004f() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = 0; // request @@ -3271,7 +3272,7 @@ public function testValidation004g() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3286,7 +3287,7 @@ public function testValidation004g() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = CvnPresenceIndicator::ILLEGIBLE; // request @@ -3309,7 +3310,7 @@ public function testValidation004h() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3324,7 +3325,7 @@ public function testValidation004h() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_ON_CARD; // request @@ -3347,7 +3348,7 @@ public function testValidation004i() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3362,7 +3363,7 @@ public function testValidation004i() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_REQUESTED; // request @@ -3388,7 +3389,7 @@ public function testValidation005a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3403,7 +3404,7 @@ public function testValidation005a() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); $card->cvn = "1234"; // request @@ -3426,7 +3427,7 @@ public function testValidation005b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3464,7 +3465,7 @@ public function testValidation005c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3479,7 +3480,7 @@ public function testValidation005c() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -3505,7 +3506,7 @@ public function testValidation005d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3520,7 +3521,7 @@ public function testValidation005d() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -3545,7 +3546,7 @@ public function testValidation005e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3560,7 +3561,7 @@ public function testValidation005e() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -3585,7 +3586,7 @@ public function testValidation005f() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3600,7 +3601,7 @@ public function testValidation005f() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); $card->cvn = "1234"; // request @@ -3626,7 +3627,7 @@ public function testValidation005g() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3641,7 +3642,7 @@ public function testValidation005g() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -3666,7 +3667,7 @@ public function testValidation005h() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3681,7 +3682,7 @@ public function testValidation005h() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -3704,7 +3705,7 @@ public function testValidation006a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3739,7 +3740,7 @@ public function testValidation006b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3777,7 +3778,7 @@ public function testValidation006c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3792,7 +3793,7 @@ public function testValidation006c() // create card $card = $this->getBaseCardData(); $card->expMonth = 11; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -3817,7 +3818,7 @@ public function testValidation006d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3832,7 +3833,7 @@ public function testValidation006d() // create card $card = $this->getBaseCardData(); $card->expMonth = 11; - $card->expYear = 5; + $card->expYear = 5; //magic number? // request $response = $card->charge(100.01) @@ -3857,7 +3858,7 @@ public function testValidation006e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3872,7 +3873,7 @@ public function testValidation006e() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -3895,7 +3896,7 @@ public function testValidation007a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3911,7 +3912,7 @@ public function testValidation007a() $card = $this->getBaseCardData(); $card->number = "5425230000004415"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -3933,7 +3934,7 @@ public function testValidation007b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3949,7 +3950,7 @@ public function testValidation007b() $card = $this->getBaseCardData(); $card->number = "5425230000004415"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -3974,7 +3975,7 @@ public function testValidation007d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -3990,7 +3991,7 @@ public function testValidation007d() $card = $this->getBaseCardData(); $card->number = "5425230000004415"; $card->expMonth = 11; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -4015,7 +4016,7 @@ public function testValidation007e() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4031,7 +4032,7 @@ public function testValidation007e() $card = $this->getBaseCardData(); $card->number = "5425230000004415"; $card->expMonth = 11; - $card->expYear = 5; + $card->expYear = 5; // magic number? // request $response = $card->charge(100.01) @@ -4056,7 +4057,7 @@ public function testValidation007f() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4072,7 +4073,7 @@ public function testValidation007f() $card = $this->getBaseCardData(); $card->number = "5425230000004415"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -4095,7 +4096,7 @@ public function testValidation008b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4111,7 +4112,7 @@ public function testValidation008b() $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // request @@ -4137,7 +4138,7 @@ public function testValidation008c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4153,7 +4154,7 @@ public function testValidation008c() $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 11; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); $card->cvn = "1234"; // request @@ -4179,7 +4180,7 @@ public function testValidation008d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4195,7 +4196,7 @@ public function testValidation008d() $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 11; - $card->expYear = 5; + $card->expYear = 5; // magic number? $card->cvn = "1234"; // request @@ -4221,7 +4222,7 @@ public function testValidation009b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4237,7 +4238,7 @@ public function testValidation009b() $card = $this->getBaseCardData(); $card->number = "30384800000000"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->charge(100.01) @@ -4262,7 +4263,7 @@ public function testValidation009c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4278,7 +4279,7 @@ public function testValidation009c() $card = $this->getBaseCardData(); $card->number = "30450100000000"; $card->expMonth = 11; - $card->expYear = 2015; + $card->expYear = TestCards::expiredCardExpYear(); // request $response = $card->charge(100.01) @@ -4303,7 +4304,7 @@ public function testValidation009d() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4319,7 +4320,7 @@ public function testValidation009d() $card = $this->getBaseCardData(); $card->number = "30450100000000"; $card->expMonth = 11; - $card->expYear = 5; + $card->expYear = 5; // magic number? // request $response = $card->charge(100.01) @@ -4344,7 +4345,7 @@ public function testAVS001a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4359,7 +4360,7 @@ public function testAVS001a() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1"; // request @@ -4385,7 +4386,7 @@ public function testAVS001b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4400,7 +4401,7 @@ public function testAVS001b() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "2"; // request @@ -4426,7 +4427,7 @@ public function testAVS001c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4441,7 +4442,7 @@ public function testAVS001c() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "3"; // request @@ -4467,7 +4468,7 @@ public function testAVS001d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4480,7 +4481,7 @@ public function testAVS001d() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "4"; // request @@ -4506,7 +4507,7 @@ public function testAVS001e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4521,7 +4522,7 @@ public function testAVS001e() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "5"; // request @@ -4547,7 +4548,7 @@ public function testAVS001f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4562,7 +4563,7 @@ public function testAVS001f() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "6"; // request @@ -4588,7 +4589,7 @@ public function testAVS001g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4603,7 +4604,7 @@ public function testAVS001g() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "7"; // request @@ -4629,7 +4630,7 @@ public function testAVS003a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4644,7 +4645,7 @@ public function testAVS003a() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "8"; // request @@ -4670,7 +4671,7 @@ public function testAVS003b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4685,7 +4686,7 @@ public function testAVS003b() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "9"; // request @@ -4711,7 +4712,7 @@ public function testAVS003c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4726,7 +4727,7 @@ public function testAVS003c() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "10"; // request @@ -4752,7 +4753,7 @@ public function testAVS003d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4767,7 +4768,7 @@ public function testAVS003d() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "11"; // request @@ -4793,7 +4794,7 @@ public function testAVS003e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4808,7 +4809,7 @@ public function testAVS003e() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12"; // request @@ -4834,7 +4835,7 @@ public function testAVS003f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4849,7 +4850,7 @@ public function testAVS003f() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "13"; // request @@ -4875,7 +4876,7 @@ public function testAVS003g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4888,7 +4889,7 @@ public function testAVS003g() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "14"; // request @@ -4914,7 +4915,7 @@ public function testAVS003h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -4927,7 +4928,7 @@ public function testAVS003h() // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "15"; // request @@ -4950,7 +4951,7 @@ public function testSettleSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -4977,7 +4978,7 @@ public function testSettle006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5004,7 +5005,7 @@ public function testSettle006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5031,7 +5032,7 @@ public function testSettle006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5058,7 +5059,7 @@ public function testSettle006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5085,7 +5086,7 @@ public function testSettle006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5112,7 +5113,7 @@ public function testSettle006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5139,7 +5140,7 @@ public function testSettle006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5166,7 +5167,7 @@ public function testSettle006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5193,7 +5194,7 @@ public function testSettle006i() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5220,7 +5221,7 @@ public function testSettle006k() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5247,7 +5248,7 @@ public function testSettle007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5274,7 +5275,7 @@ public function testSettle007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5301,7 +5302,7 @@ public function testSettle007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5328,7 +5329,7 @@ public function testSettle007d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5355,7 +5356,7 @@ public function testSettle007e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5382,7 +5383,7 @@ public function testSettle008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5409,7 +5410,7 @@ public function testSettle008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5436,7 +5437,7 @@ public function testSettle008c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5463,7 +5464,7 @@ public function testSettle008d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5490,7 +5491,7 @@ public function testSettle008e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5517,7 +5518,7 @@ public function testSettle009a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5544,7 +5545,7 @@ public function testSettle009b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5574,7 +5575,7 @@ public function testSettle009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOm"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5604,7 +5605,7 @@ public function testSettle009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECO#"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5631,7 +5632,7 @@ public function testSettle010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5658,7 +5659,7 @@ public function testSettle010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5685,7 +5686,7 @@ public function testSettle010e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5712,7 +5713,7 @@ public function testSettle011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5739,7 +5740,7 @@ public function testSettle011b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5766,7 +5767,7 @@ public function testSettle011c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5793,7 +5794,7 @@ public function testSettle011d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5820,7 +5821,7 @@ public function testSettle012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5847,7 +5848,7 @@ public function testSettle012b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5877,7 +5878,7 @@ public function testSettle012c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5907,7 +5908,7 @@ public function testSettle012d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5934,7 +5935,7 @@ public function testSettle012e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5964,7 +5965,7 @@ public function testSettle012f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -5991,7 +5992,7 @@ public function testSettle013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6021,7 +6022,7 @@ public function testSettle013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6051,7 +6052,7 @@ public function testSettle013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6078,7 +6079,7 @@ public function testSettle013d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6104,7 +6105,7 @@ public function testSettle015a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6131,7 +6132,7 @@ public function testSettle014a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6158,7 +6159,7 @@ public function testSettle014b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6185,7 +6186,7 @@ public function testSettle014c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6212,7 +6213,7 @@ public function testSettle014d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6239,7 +6240,7 @@ public function testSettle016a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6266,7 +6267,7 @@ public function testSettle016b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6292,7 +6293,7 @@ public function testSettle016c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6319,7 +6320,7 @@ public function testSettle016d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6346,7 +6347,7 @@ public function testSettle017a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6377,7 +6378,7 @@ public function testSettle017b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6404,7 +6405,7 @@ public function testVoidSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6430,7 +6431,7 @@ public function testVoid006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6456,7 +6457,7 @@ public function testVoid006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6482,7 +6483,7 @@ public function testVoid006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6508,7 +6509,7 @@ public function testVoid006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6534,7 +6535,7 @@ public function testVoid006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6560,7 +6561,7 @@ public function testVoid006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6586,7 +6587,7 @@ public function testVoid006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6612,7 +6613,7 @@ public function testVoid006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6638,7 +6639,7 @@ public function testVoid006i() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6664,7 +6665,7 @@ public function testVoid006k() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6690,7 +6691,7 @@ public function testVoid007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6716,7 +6717,7 @@ public function testVoid007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6742,7 +6743,7 @@ public function testVoid007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6768,7 +6769,7 @@ public function testVoid007d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6794,7 +6795,7 @@ public function testVoid007e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6820,7 +6821,7 @@ public function testVoid008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6846,7 +6847,7 @@ public function testVoid008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6872,7 +6873,7 @@ public function testVoid008c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6898,7 +6899,7 @@ public function testVoid008d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6927,7 +6928,7 @@ public function testVoid009e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6953,7 +6954,7 @@ public function testVoid009a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -6979,7 +6980,7 @@ public function testVoid009b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7008,7 +7009,7 @@ public function testVoid009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOm"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7037,7 +7038,7 @@ public function testVoid009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECO#"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7063,7 +7064,7 @@ public function testVoid010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7089,7 +7090,7 @@ public function testVoid010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7115,7 +7116,7 @@ public function testVoid010e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7141,7 +7142,7 @@ public function testVoid011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7167,7 +7168,7 @@ public function testVoid011b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7193,7 +7194,7 @@ public function testVoid011c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7219,7 +7220,7 @@ public function testVoid011d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7245,7 +7246,7 @@ public function testVoid012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7271,7 +7272,7 @@ public function testVoid012b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7297,7 +7298,7 @@ public function testVoid012c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7323,7 +7324,7 @@ public function testVoid012d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7349,7 +7350,7 @@ public function testVoid013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7375,7 +7376,7 @@ public function testVoid014a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7401,7 +7402,7 @@ public function testVoid014b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7427,7 +7428,7 @@ public function testVoid014c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7453,7 +7454,7 @@ public function testVoid014d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7479,7 +7480,7 @@ public function testVoid015a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7505,7 +7506,7 @@ public function testVoid015b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7531,7 +7532,7 @@ public function testRebateSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7558,7 +7559,7 @@ public function testRebate006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7585,7 +7586,7 @@ public function testRebate006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7612,7 +7613,7 @@ public function testRebate006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7639,7 +7640,7 @@ public function testRebate006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7666,7 +7667,7 @@ public function testRebate006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7693,7 +7694,7 @@ public function testRebate006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7720,7 +7721,7 @@ public function testRebate006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7747,7 +7748,7 @@ public function testRebate006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7774,7 +7775,7 @@ public function testRebate007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7801,7 +7802,7 @@ public function testRebate007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7828,7 +7829,7 @@ public function testRebate007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7855,7 +7856,7 @@ public function testRebate007d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7882,7 +7883,7 @@ public function testRebate007e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7909,7 +7910,7 @@ public function testRebate008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7936,7 +7937,7 @@ public function testRebate008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7963,7 +7964,7 @@ public function testRebate008c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -7990,7 +7991,7 @@ public function testRebate008d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8017,7 +8018,7 @@ public function testRebate008e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8044,7 +8045,7 @@ public function testRebate009a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8074,7 +8075,7 @@ public function testRebate009b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8104,7 +8105,7 @@ public function testRebate009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOm"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8134,7 +8135,7 @@ public function testRebate009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECO#"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8161,7 +8162,7 @@ public function testRebate010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8188,7 +8189,7 @@ public function testRebate010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8215,7 +8216,7 @@ public function testRebate010e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8242,7 +8243,7 @@ public function testRebate011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8272,7 +8273,7 @@ public function testRebate011b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8302,7 +8303,7 @@ public function testRebate011c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8332,7 +8333,7 @@ public function testRebate011d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8358,7 +8359,7 @@ public function testRebate012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8385,7 +8386,7 @@ public function testRebate012b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8415,7 +8416,7 @@ public function testRebate012c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8445,7 +8446,7 @@ public function testRebate012d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8472,7 +8473,7 @@ public function testRebate012e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8502,7 +8503,7 @@ public function testRebate012f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8529,7 +8530,7 @@ public function testRebate013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8556,7 +8557,7 @@ public function testRebate013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8583,7 +8584,7 @@ public function testRebate013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8610,7 +8611,7 @@ public function testRebate013d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8637,7 +8638,7 @@ public function testRebate014a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8664,7 +8665,7 @@ public function testRebate014b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8691,7 +8692,7 @@ public function testRebate014c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8718,7 +8719,7 @@ public function testRebate014d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8745,7 +8746,7 @@ public function testRebate015a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8772,7 +8773,7 @@ public function testRebate016a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8799,7 +8800,7 @@ public function testRebate016b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8825,7 +8826,7 @@ public function testRebate016c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8852,7 +8853,7 @@ public function testRebate016d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8879,7 +8880,7 @@ public function testRebate017a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8910,7 +8911,7 @@ public function testRebate017b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -8937,12 +8938,12 @@ public function testOTBSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -8959,12 +8960,12 @@ public function testOTB006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -8981,12 +8982,12 @@ public function testOTB006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9003,12 +9004,12 @@ public function testOTB006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9025,12 +9026,12 @@ public function testOTB006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9047,12 +9048,12 @@ public function testOTB006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9069,12 +9070,12 @@ public function testOTB006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9091,12 +9092,12 @@ public function testOTB006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9113,12 +9114,12 @@ public function testOTB006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9135,12 +9136,12 @@ public function testOTB006i() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9157,12 +9158,12 @@ public function testOTB006k() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9179,12 +9180,12 @@ public function testOTB006l() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9201,12 +9202,12 @@ public function testOTB007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9223,12 +9224,12 @@ public function testOTB007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9245,12 +9246,12 @@ public function testOTB007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9267,12 +9268,12 @@ public function testOTB007d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9289,12 +9290,12 @@ public function testOTB007e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9311,12 +9312,12 @@ public function testOTB008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9333,12 +9334,12 @@ public function testOTB008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9355,12 +9356,12 @@ public function testOTB008c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9377,12 +9378,12 @@ public function testOTB008d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9399,12 +9400,12 @@ public function testOTB008e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9421,12 +9422,12 @@ public function testOTB009a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9443,12 +9444,12 @@ public function testOTB009b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9465,12 +9466,12 @@ public function testOTB009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9487,12 +9488,12 @@ public function testOTB009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9509,12 +9510,12 @@ public function testOTB010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9531,12 +9532,12 @@ public function testOTB010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9553,12 +9554,12 @@ public function testOTB010e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9575,12 +9576,12 @@ public function testOTB012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9597,12 +9598,12 @@ public function testOTB012b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9619,12 +9620,12 @@ public function testOTB012c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9641,12 +9642,12 @@ public function testOTB012d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9663,12 +9664,12 @@ public function testOTB012e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9685,12 +9686,12 @@ public function testOTB013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9707,12 +9708,12 @@ public function testOTB013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->verify() @@ -9731,12 +9732,12 @@ public function testOTB013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermeloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon"; // request @@ -9753,12 +9754,12 @@ public function testOTB013d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9775,12 +9776,12 @@ public function testOTB014a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9797,12 +9798,12 @@ public function testOTB014b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9822,12 +9823,12 @@ public function testOTB014c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 18; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9847,7 +9848,7 @@ public function testOTB014d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -9869,12 +9870,12 @@ public function testOTB015a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9891,12 +9892,12 @@ public function testOTB015b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9913,12 +9914,12 @@ public function testOTB015c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9935,12 +9936,12 @@ public function testOTB016a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9957,12 +9958,12 @@ public function testOTB017a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -9982,12 +9983,12 @@ public function testOTB017b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cardHolderName = "Peter Watermelon"; @@ -10008,12 +10009,12 @@ public function testOTB017c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1.23457E+18"; $card->cardHolderName = "Peter Watermelon"; @@ -10031,13 +10032,13 @@ public function testOTB017d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2019; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cardHolderName = "Peter Watermelon"; @@ -10058,12 +10059,12 @@ public function testOTB017f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "7"; $card->cardHolderName = "Peter Watermelon"; @@ -10084,12 +10085,12 @@ public function testOTB017g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "7"; $card->cardHolderName = "Peter Watermelon"; @@ -10107,12 +10108,12 @@ public function testOTB018a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10133,12 +10134,12 @@ public function testOTB018b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10155,12 +10156,12 @@ public function testCreditSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10177,12 +10178,12 @@ public function testCredit006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10199,12 +10200,12 @@ public function testCredit006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10221,12 +10222,12 @@ public function testCredit006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10243,12 +10244,12 @@ public function testCredit006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10265,12 +10266,12 @@ public function testCredit006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10287,12 +10288,12 @@ public function testCredit006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10309,12 +10310,12 @@ public function testCredit006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10331,12 +10332,12 @@ public function testCredit006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10353,12 +10354,12 @@ public function testCredit007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10375,12 +10376,12 @@ public function testCredit007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10397,12 +10398,12 @@ public function testCredit007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10419,12 +10420,12 @@ public function testCredit007d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10441,12 +10442,12 @@ public function testCredit007e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10463,12 +10464,12 @@ public function testCredit008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10485,12 +10486,12 @@ public function testCredit008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10507,12 +10508,12 @@ public function testCredit008c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10529,12 +10530,12 @@ public function testCredit008d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10551,12 +10552,12 @@ public function testCredit008e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10573,12 +10574,12 @@ public function testCredit009a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10595,12 +10596,12 @@ public function testCredit009b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10617,12 +10618,12 @@ public function testCredit009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10638,12 +10639,12 @@ public function testCredit009d() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10660,12 +10661,12 @@ public function testCredit010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10682,12 +10683,12 @@ public function testCredit010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10704,12 +10705,12 @@ public function testCredit010e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10726,12 +10727,12 @@ public function testCredit011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10748,12 +10749,12 @@ public function testCredit012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10770,12 +10771,12 @@ public function testCredit012b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10792,12 +10793,12 @@ public function testCredit012c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10814,12 +10815,12 @@ public function testCredit013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10836,12 +10837,12 @@ public function testCredit013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); // request $response = $card->refund(1) @@ -10860,12 +10861,12 @@ public function testCredit013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo"; // request @@ -10882,12 +10883,12 @@ public function testCredit014a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10904,12 +10905,12 @@ public function testCredit014b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 1813; + $card->expYear = 1813; // magic number? $card->cardHolderName = "Peter Watermelon"; // request @@ -10926,12 +10927,12 @@ public function testCredit014c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 18; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10948,7 +10949,7 @@ public function testCredit014d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -10970,12 +10971,12 @@ public function testCredit015a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -10992,12 +10993,12 @@ public function testCredit015b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11014,12 +11015,12 @@ public function testCredit015c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11036,12 +11037,12 @@ public function testCredit016a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11058,12 +11059,12 @@ public function testCredit017a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11080,12 +11081,12 @@ public function testCredit017b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11105,12 +11106,12 @@ public function testCredit017c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123456789"; $card->cardHolderName = "Peter Watermelon"; @@ -11128,13 +11129,13 @@ public function testCredit017d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cardHolderName = "Peter Watermelon"; @@ -11155,13 +11156,13 @@ public function testCredit017f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4242424242424240"; $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "7"; $card->cardHolderName = "Peter Watermelon"; @@ -11182,12 +11183,12 @@ public function testCredit017g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12#"; $card->cardHolderName = "Peter Watermelon"; @@ -11205,12 +11206,12 @@ public function testCredit018a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11227,12 +11228,12 @@ public function testCredit018b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11249,12 +11250,12 @@ public function testCredit018c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11271,12 +11272,12 @@ public function testCredit018d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11293,12 +11294,12 @@ public function testCredit019a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11315,12 +11316,12 @@ public function testCredit019b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11337,12 +11338,12 @@ public function testCredit019c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11359,12 +11360,12 @@ public function testCredit020a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11385,12 +11386,12 @@ public function testCredit020b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11407,12 +11408,12 @@ public function testCredit021a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11429,12 +11430,12 @@ public function testCredit021b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11454,12 +11455,12 @@ public function testCredit021c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11479,12 +11480,12 @@ public function testCredit021d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11501,12 +11502,12 @@ public function testCredit021e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11526,12 +11527,12 @@ public function testCredit021f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11548,12 +11549,12 @@ public function testCredit022a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11573,12 +11574,12 @@ public function testCredit022b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11598,12 +11599,12 @@ public function testCredit022c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11623,12 +11624,12 @@ public function testCredit022d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2018; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "Peter Watermelon"; // request @@ -11644,7 +11645,7 @@ public function testHoldSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11671,7 +11672,7 @@ public function testHold006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11698,7 +11699,7 @@ public function testHold006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11725,7 +11726,7 @@ public function testHold006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11752,7 +11753,7 @@ public function testHold006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11779,7 +11780,7 @@ public function testHold006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11806,7 +11807,7 @@ public function testHold006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11833,7 +11834,7 @@ public function testHold006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11860,7 +11861,7 @@ public function testHold006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11887,7 +11888,7 @@ public function testHold006i() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11914,7 +11915,7 @@ public function testHold006k() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11941,7 +11942,7 @@ public function testHold006l() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11968,7 +11969,7 @@ public function testHold007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -11995,7 +11996,7 @@ public function testHold007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12022,7 +12023,7 @@ public function testHold007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12051,7 +12052,7 @@ public function testHold007d() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12070,7 +12071,7 @@ public function testHold007e() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12087,7 +12088,7 @@ public function testHold008a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12114,7 +12115,7 @@ public function testHold008b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12143,7 +12144,7 @@ public function testHold008c() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12162,7 +12163,7 @@ public function testHold008d() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12181,7 +12182,7 @@ public function testHold008e() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12198,7 +12199,7 @@ public function testHold009c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12228,7 +12229,7 @@ public function testHold009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12249,7 +12250,7 @@ public function testHold009e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12267,7 +12268,7 @@ public function testHold010a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12294,7 +12295,7 @@ public function testHold010b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12324,7 +12325,7 @@ public function testHold010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -12342,7 +12343,7 @@ public function testHold010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12369,7 +12370,7 @@ public function testHold011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12396,7 +12397,7 @@ public function testHold011b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12423,7 +12424,7 @@ public function testHold011c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12449,7 +12450,7 @@ public function testHold011d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12476,7 +12477,7 @@ public function testHold012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12507,7 +12508,7 @@ public function testHold012b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12534,7 +12535,7 @@ public function testHold013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12564,7 +12565,7 @@ public function testHold013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12594,7 +12595,7 @@ public function testHold013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12621,7 +12622,7 @@ public function testReleaseSample() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12656,7 +12657,7 @@ public function testRelease006a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12691,7 +12692,7 @@ public function testRelease006b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12726,7 +12727,7 @@ public function testRelease006c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12761,7 +12762,7 @@ public function testRelease006d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12796,7 +12797,7 @@ public function testRelease006e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12831,7 +12832,7 @@ public function testRelease006f() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12866,7 +12867,7 @@ public function testRelease006g() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12901,7 +12902,7 @@ public function testRelease006h() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12936,7 +12937,7 @@ public function testRelease006i() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -12971,7 +12972,7 @@ public function testRelease006k() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13006,7 +13007,7 @@ public function testRelease006l() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13041,7 +13042,7 @@ public function testRelease007a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13076,7 +13077,7 @@ public function testRelease007b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13111,7 +13112,7 @@ public function testRelease007c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13148,7 +13149,7 @@ public function testRelease007d() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13167,7 +13168,7 @@ public function testRelease007e() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13186,7 +13187,7 @@ public function testRelease008c() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13205,7 +13206,7 @@ public function testRelease008d() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13224,7 +13225,7 @@ public function testRelease008e() { $config = $this->getBaseConfig(); $config->timeout = 5000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13244,7 +13245,7 @@ public function testRelease009d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13265,7 +13266,7 @@ public function testRelease009e() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13283,7 +13284,7 @@ public function testRelease010a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13310,7 +13311,7 @@ public function testRelease010b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13340,7 +13341,7 @@ public function testRelease010c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); $saleResponse = Transaction::fromId(null); @@ -13358,7 +13359,7 @@ public function testRelease010d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13385,7 +13386,7 @@ public function testRelease011a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13412,7 +13413,7 @@ public function testRelease011b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13439,7 +13440,7 @@ public function testRelease011c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13465,7 +13466,7 @@ public function testRelease011d() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13492,7 +13493,7 @@ public function testRelease012a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13523,7 +13524,7 @@ public function testRelease012b() $config->sharedSecret = 'secreto'; $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13550,7 +13551,7 @@ public function testRelease013a() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13580,7 +13581,7 @@ public function testRelease013b() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "EC"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13610,7 +13611,7 @@ public function testRelease013c() $config = $this->getBaseConfig(); $config->timeout = 5000; $config->channel = "ECOOOOOOOOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13635,7 +13636,7 @@ public function testRelease013c() public function testManual006a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13660,7 +13661,7 @@ public function testManual006a() public function testManual006b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13685,7 +13686,7 @@ public function testManual006b() public function testManual006c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13710,7 +13711,7 @@ public function testManual006c() public function testManual006d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13735,7 +13736,7 @@ public function testManual006d() public function testManual006e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13760,7 +13761,7 @@ public function testManual006e() public function testManual006f() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13785,7 +13786,7 @@ public function testManual006f() public function testManual006g() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13810,7 +13811,7 @@ public function testManual006g() public function testManual006h() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13835,7 +13836,7 @@ public function testManual006h() public function testManual006i() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13860,7 +13861,7 @@ public function testManual006i() public function testManual006j() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13885,7 +13886,7 @@ public function testManual006j() public function testManual006k() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13910,7 +13911,7 @@ public function testManual006k() public function testManual007a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13935,7 +13936,7 @@ public function testManual007a() public function testManual007b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13960,7 +13961,7 @@ public function testManual007b() public function testManual007c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -13985,7 +13986,7 @@ public function testManual007c() public function testManual007d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14010,7 +14011,7 @@ public function testManual007d() public function testManual007e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14035,7 +14036,7 @@ public function testManual007e() public function testManual008a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14060,7 +14061,7 @@ public function testManual008a() public function testManual008b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14085,7 +14086,7 @@ public function testManual008b() public function testManual008c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14110,7 +14111,7 @@ public function testManual008c() public function testManual008d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14135,7 +14136,7 @@ public function testManual008d() public function testManual008e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14162,7 +14163,7 @@ public function testManual009a() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOM"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14192,7 +14193,7 @@ public function testManual009b() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "E"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14222,7 +14223,7 @@ public function testManual009c() $config = $this->getBaseConfig(); $config->timeout = 20000; $config->channel = "ECOMMERCE"; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14247,7 +14248,7 @@ public function testManual009c() public function testManual009d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14272,7 +14273,7 @@ public function testManual009d() public function testManual010a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14297,7 +14298,7 @@ public function testManual010a() public function testManual010b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14322,7 +14323,7 @@ public function testManual010b() public function testManual010c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14347,7 +14348,7 @@ public function testManual010c() public function testManual010d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14372,7 +14373,7 @@ public function testManual010d() public function testManual010e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14397,7 +14398,7 @@ public function testManual010e() public function testManual011a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14422,7 +14423,7 @@ public function testManual011a() public function testManual011b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14447,7 +14448,7 @@ public function testManual011b() public function testManual011c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14475,7 +14476,7 @@ public function testManual011c() public function testManual011d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14500,7 +14501,7 @@ public function testManual011d() public function testManual012a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14528,7 +14529,7 @@ public function testManual012a() public function testManual012b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14556,7 +14557,7 @@ public function testManual012b() public function testManual012c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14584,7 +14585,7 @@ public function testManual012c() public function testManual012d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14600,7 +14601,7 @@ public function testManual012d() public function testManual013a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14625,7 +14626,7 @@ public function testManual013a() public function testManual013b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14650,7 +14651,7 @@ public function testManual013b1() public function testManual013b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14675,7 +14676,7 @@ public function testManual013b2() public function testManual013c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14700,7 +14701,7 @@ public function testManual013c() public function testManual014a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14725,12 +14726,12 @@ public function testManual014a() public function testManual014b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // build transaction $saleResponse = $card->charge(100.01) @@ -14755,12 +14756,12 @@ public function testManual014b() public function testManual014c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep"; // build transaction @@ -14783,12 +14784,12 @@ public function testManual014c() public function testManual014d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = "James~Mason"; // build transaction @@ -14811,7 +14812,7 @@ public function testManual014d() public function testManual015a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14836,7 +14837,7 @@ public function testManual015a() public function testManual015b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14864,12 +14865,12 @@ public function testManual015b() public function testManual015c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 20; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); // build transaction $saleResponse = $card->charge(100.01) @@ -14894,7 +14895,7 @@ public function testManual015c() public function testManual015d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14921,7 +14922,7 @@ public function testManual015d() public function testManual016a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14946,7 +14947,7 @@ public function testManual016a() public function testManual016b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14971,7 +14972,7 @@ public function testManual016b() public function testManual016c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -14996,7 +14997,7 @@ public function testManual016c() public function testManual017a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15021,7 +15022,7 @@ public function testManual017a() public function testManual018a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15046,7 +15047,7 @@ public function testManual018a() public function testManual019a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15074,12 +15075,12 @@ public function testManual019a() public function testManual019b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // build transaction @@ -15105,13 +15106,13 @@ public function testManual019b1() public function testManual019b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); // build transaction $saleResponse = $card->charge(100.01) @@ -15136,12 +15137,12 @@ public function testManual019b2() public function testManual019c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12345"; // build transaction @@ -15164,13 +15165,13 @@ public function testManual019c() public function testManual019d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374101000000608"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; // build transaction @@ -15193,7 +15194,7 @@ public function testManual019d() public function testManual020a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15218,12 +15219,12 @@ public function testManual020a1() public function testManual020a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::ILLEGIBLE; @@ -15247,12 +15248,12 @@ public function testManual020a2() public function testManual020a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_ON_CARD; @@ -15276,12 +15277,12 @@ public function testManual020a3() public function testManual020a4() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_REQUESTED; @@ -15305,12 +15306,12 @@ public function testManual020a4() public function testManual020b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvnPresenceIndicator = 5; // build transaction @@ -15333,12 +15334,12 @@ public function testManual020b() public function testManual020c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = 0; @@ -15362,7 +15363,7 @@ public function testManual020c() public function testManual021a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15387,7 +15388,7 @@ public function testManual021a1() public function testManual021a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15412,7 +15413,7 @@ public function testManual021a2() public function testManual021a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15437,7 +15438,7 @@ public function testManual021a3() public function testManual021b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15462,7 +15463,7 @@ public function testManual021b() public function testManual021c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15487,7 +15488,7 @@ public function testManual021c() public function testManual022a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15512,7 +15513,7 @@ public function testManual022a() public function testManual022b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15537,7 +15538,7 @@ public function testManual022b() public function testManual022c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15562,7 +15563,7 @@ public function testManual022c() public function testManual022d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15587,7 +15588,7 @@ public function testManual022d() public function testManual022e() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15612,7 +15613,7 @@ public function testManual022e() public function testManual023a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15637,7 +15638,7 @@ public function testManual023a1() public function testManual023a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15662,7 +15663,7 @@ public function testManual023a2() public function testManual023b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15687,7 +15688,7 @@ public function testManual023b1() public function testManual023c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15712,7 +15713,7 @@ public function testManual023c() public function testManual024a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15737,7 +15738,7 @@ public function testManual024a1() public function testManual024a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15762,7 +15763,7 @@ public function testManual024a2() public function testManual024a3() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15787,7 +15788,7 @@ public function testManual024a3() public function testManual024b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15812,7 +15813,7 @@ public function testManual024b() public function testManual024c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15837,7 +15838,7 @@ public function testManual024c() public function testManual025() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15862,7 +15863,7 @@ public function testManual025() public function testManual026a1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15887,7 +15888,7 @@ public function testManual026a1() public function testManual026a2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15911,7 +15912,7 @@ public function testManual026a2() public function testManual026b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15935,7 +15936,7 @@ public function testManual026b() public function testManual026c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15960,7 +15961,7 @@ public function testManual026c1() public function testManual026c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -15985,7 +15986,7 @@ public function testManual026c2() public function testManual027a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16011,7 +16012,7 @@ public function testManual027a() public function testManual028a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16037,7 +16038,7 @@ public function testManual028a() public function testManual028b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16065,7 +16066,7 @@ public function testManual028b() public function testManual028c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16094,7 +16095,7 @@ public function testManual028c() public function testManual028d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16120,7 +16121,7 @@ public function testManual028d() public function testManual029a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16146,7 +16147,7 @@ public function testManual029a() public function testManual029b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16174,7 +16175,7 @@ public function testManual029b() public function testManual029c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16203,7 +16204,7 @@ public function testManual029c() public function testManual029d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16229,7 +16230,7 @@ public function testManual029d() public function testManual030a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16255,7 +16256,7 @@ public function testManual030a() public function testManual030b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16283,7 +16284,7 @@ public function testManual030b() public function testManual030c() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16312,7 +16313,7 @@ public function testManual030c() public function testManual030d() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16338,7 +16339,7 @@ public function testManual030d() public function testManual031a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16364,7 +16365,7 @@ public function testManual031a() public function testManual031b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16389,7 +16390,7 @@ public function testManual031b() public function testManual031c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16415,7 +16416,7 @@ public function testManual031c1() public function testManual031c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16441,7 +16442,7 @@ public function testManual031c2() public function testManual032a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16478,7 +16479,7 @@ public function testManual032a() public function testManual033a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16513,7 +16514,7 @@ public function testManual033a() public function testManual033b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16543,7 +16544,7 @@ public function testManual033b1() public function testManual033b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -16573,7 +16574,7 @@ public function testManual033b2() public function testManual033c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16603,7 +16604,7 @@ public function testManual033c1() public function testManual033c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -16633,7 +16634,7 @@ public function testManual033c2() public function testManual034a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16668,7 +16669,7 @@ public function testManual034a() public function testManual034b1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -16698,7 +16699,7 @@ public function testManual034b1() public function testManual034b2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16728,7 +16729,7 @@ public function testManual034b2() public function testManual034c1() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // billing address $billingAddress = new Address(); @@ -16758,7 +16759,7 @@ public function testManual034c1() public function testManual034c2() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // shipping address $shippingAddress = new Address(); @@ -16788,7 +16789,7 @@ public function testManual034c2() public function testManual035a() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16813,7 +16814,7 @@ public function testManual035a() public function testManual035b() { $config = $this->getBaseConfig(); - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -16839,13 +16840,13 @@ public function testverifyenrolled014a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001038443335"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16862,13 +16863,13 @@ public function testverifyenrolled014b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001038488884"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16885,13 +16886,13 @@ public function testverifyenrolled014c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001036298889"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16908,13 +16909,13 @@ public function testverifyenrolled014d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001036853337"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16931,13 +16932,13 @@ public function testverifyenrolled014e() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16954,13 +16955,13 @@ public function testverifyenrolled014f() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037167778"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -16977,13 +16978,13 @@ public function testverifyenrolled014g() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17000,13 +17001,13 @@ public function testverifyenrolled014h() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037484447"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17023,13 +17024,13 @@ public function testverifyenrolled014i() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037490006"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17049,13 +17050,13 @@ public function testverifyenrolled015a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000198�"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17074,13 +17075,13 @@ public function testverifyenrolled015b() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000149"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17099,13 +17100,13 @@ public function testverifyenrolled015c() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000172"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17124,13 +17125,13 @@ public function testverifyenrolled015d() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000297"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17149,13 +17150,13 @@ public function testverifyenrolled015e() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000131"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17174,13 +17175,13 @@ public function testverifyenrolled015f() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000206"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17199,13 +17200,13 @@ public function testverifyenrolled015g() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000131"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17224,13 +17225,13 @@ public function testverifyenrolled015h() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000214"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17249,13 +17250,13 @@ public function testverifyenrolled015i() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "5100000000000164"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17275,13 +17276,13 @@ public function testverifyenrolled016a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "370537726695896�"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17300,13 +17301,13 @@ public function testverifyenrolled016b() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "344598846104303"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17325,13 +17326,13 @@ public function testverifyenrolled016c() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "342911579886552"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17350,13 +17351,13 @@ public function testverifyenrolled016d() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "377775599797356"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17375,13 +17376,13 @@ public function testverifyenrolled016e() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "371810438025523"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17400,13 +17401,13 @@ public function testverifyenrolled016f() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "374973180958759"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17425,13 +17426,13 @@ public function testverifyenrolled016g() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "371810438025523"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17450,13 +17451,13 @@ public function testverifyenrolled016h() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "376515222233960"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17475,13 +17476,13 @@ public function testverifyenrolled016i() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "372749236937027"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17498,13 +17499,13 @@ public function testverifyenrolled017a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17521,13 +17522,13 @@ public function testverifyenrolled017b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17544,13 +17545,13 @@ public function testverifyenrolled017c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17567,13 +17568,13 @@ public function testverifyenrolled017d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17590,13 +17591,13 @@ public function testverifyenrolled017e() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17613,13 +17614,13 @@ public function testverifyenrolled017f() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17636,13 +17637,13 @@ public function testverifyenrolled017g() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17659,13 +17660,13 @@ public function testverifyenrolled017h() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17682,13 +17683,13 @@ public function testverifyenrolled017i() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17705,13 +17706,13 @@ public function testverifyenrolled017j() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17728,13 +17729,13 @@ public function testverifyenrolled017k() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17751,13 +17752,13 @@ public function testverifyenrolled018a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17774,13 +17775,13 @@ public function testverifyenrolled018b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17797,13 +17798,13 @@ public function testverifyenrolled018c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17820,13 +17821,13 @@ public function testverifyenrolled018d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17843,13 +17844,13 @@ public function testverifyenrolled018e() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17866,13 +17867,13 @@ public function testverifyenrolled019a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17889,13 +17890,13 @@ public function testverifyenrolled019b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17912,13 +17913,13 @@ public function testverifyenrolled019c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17935,13 +17936,13 @@ public function testverifyenrolled019d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17958,13 +17959,13 @@ public function testverifyenrolled019e() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -17981,13 +17982,13 @@ public function testverifyenrolled020b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18004,13 +18005,13 @@ public function testverifyenrolled020c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18027,13 +18028,13 @@ public function testverifyenrolled020d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18050,13 +18051,13 @@ public function testverifyenrolled020e() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18073,13 +18074,13 @@ public function testverifyenrolled021a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18096,13 +18097,13 @@ public function testverifyenrolled021b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18119,13 +18120,13 @@ public function testverifyenrolled021c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18142,13 +18143,13 @@ public function testverifyenrolled021d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18165,13 +18166,13 @@ public function testverifyenrolled022a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18188,13 +18189,13 @@ public function testverifyenrolled022b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18211,13 +18212,13 @@ public function testverifyenrolled022c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18234,13 +18235,13 @@ public function testverifyenrolled022d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18256,13 +18257,13 @@ public function testverifyenrolled023a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18279,13 +18280,13 @@ public function testverifyenrolled023b1() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18305,13 +18306,13 @@ public function testverifyenrolled023b2() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "42424242424"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18331,13 +18332,13 @@ public function testverifyenrolled023c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4263970000005262#"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18354,13 +18355,13 @@ public function testverifyenrolled024a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->CvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18380,13 +18381,13 @@ public function testverifyenrolled024b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18406,13 +18407,13 @@ public function testverifyenrolled024c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; $card->cardHolderName = "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep"; @@ -18430,13 +18431,13 @@ public function testverifyenrolled024d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; $card->cardHolderName = "James~Mason"; @@ -18454,13 +18455,13 @@ public function testverifyenrolled025a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18477,13 +18478,13 @@ public function testverifyenrolled025b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18503,13 +18504,13 @@ public function testverifyenrolled025c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 20; - $card->expYear = 2012; + $card->expYear = TestCards::expiredCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18529,7 +18530,7 @@ public function testverifyenrolled025d() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); @@ -18550,13 +18551,13 @@ public function testverifyenrolled026a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18573,13 +18574,13 @@ public function testverifyenrolled026b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18596,13 +18597,13 @@ public function testverifyenrolled026c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18619,13 +18620,13 @@ public function testverifyenrolled027a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18642,13 +18643,13 @@ public function testverifyenrolled028a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18665,13 +18666,13 @@ public function testverifyenrolled029a() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18691,13 +18692,13 @@ public function testverifyenrolled029b1() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18717,13 +18718,13 @@ public function testverifyenrolled029b2() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "371810438025523"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18743,13 +18744,13 @@ public function testverifyenrolled029c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "12345"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18768,13 +18769,13 @@ public function testverifyenrolled029d() $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "371810438025523"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "1234"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18791,13 +18792,13 @@ public function testverifyenrolled030a1() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = CvnPresenceIndicator::PRESENT; @@ -18814,13 +18815,13 @@ public function testverifyenrolled030a2() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::ILLEGIBLE; @@ -18837,13 +18838,13 @@ public function testverifyenrolled030a3() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_ON_CARD; @@ -18860,13 +18861,13 @@ public function testverifyenrolled030a4() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = ""; $card->cvnPresenceIndicator = CvnPresenceIndicator::NOT_REQUESTED; @@ -18886,13 +18887,13 @@ public function testverifyenrolled030b() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = 5; @@ -18909,13 +18910,13 @@ public function testverifyenrolled030c() { $config = $this->getBaseConfig(); $config->timeout = 60000; - ServicesContainer::configure($config); + ServicesContainer::configureService($config); // create card $card = $this->getBaseCardData(); $card->number = "4012001037141112"; $card->expMonth = 12; - $card->expYear = 2020; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = "123"; $card->cvnPresenceIndicator = 0; diff --git a/test/Integration/Gateways/RealexConnector/CreditTest.php b/test/Integration/Gateways/RealexConnector/CreditTest.php index 4102ced8..104c718c 100644 --- a/test/Integration/Gateways/RealexConnector/CreditTest.php +++ b/test/Integration/Gateways/RealexConnector/CreditTest.php @@ -6,6 +6,7 @@ use GlobalPayments\Api\Services\CreditService; use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\Enums\DccProcessor; use GlobalPayments\Api\Entities\Enums\DccRateType; @@ -21,7 +22,7 @@ public function setup() $card = new CreditCardData(); $card->number = '4111111111111111'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $card->cardHolderName = 'Joe Smith'; $this->card = $card; diff --git a/test/Integration/Gateways/RealexConnector/Hpp/RealexHppClient.php b/test/Integration/Gateways/RealexConnector/Hpp/RealexHppClient.php index dc7bfd17..8dd1d89a 100644 --- a/test/Integration/Gateways/RealexConnector/Hpp/RealexHppClient.php +++ b/test/Integration/Gateways/RealexConnector/Hpp/RealexHppClient.php @@ -6,6 +6,7 @@ use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\Entities\Address; use GlobalPayments\Api\Entities\Customer; +use GlobalPayments\Api\Tests\Data\TestCards; use GlobalPayments\Api\Utils\GenerationUtils; use GlobalPayments\Api\Entities\Exceptions\ApiException; use GlobalPayments\Api\Builders\AuthorizationBuilder; @@ -56,7 +57,7 @@ public function sendRequest($jsonData, $hppVersion = '') $card = new CreditCardData(); $card->number = '4006097467207025'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; diff --git a/test/Integration/Gateways/RealexConnector/HppTest.php b/test/Integration/Gateways/RealexConnector/HppTest.php index 3e6a88ae..8b407e01 100644 --- a/test/Integration/Gateways/RealexConnector/HppTest.php +++ b/test/Integration/Gateways/RealexConnector/HppTest.php @@ -4,20 +4,14 @@ use GlobalPayments\Api\Entities\Address; use GlobalPayments\Api\Services\HostedService; -use GlobalPayments\Api\ServicesConfig; -use GlobalPayments\Api\ServicesContainer; use GlobalPayments\Api\HostedPaymentConfig; use GlobalPayments\Api\Entities\HostedPaymentData; use GlobalPayments\Api\Entities\Enums\HppVersion; use GlobalPayments\Api\Entities\Enums\RecurringSequence; use GlobalPayments\Api\Entities\Enums\RecurringType; -use GlobalPayments\Api\Entities\Enums\DccProcessor; -use GlobalPayments\Api\Entities\Enums\DccRateType; -use GlobalPayments\Api\Entities\DccRateData; -use GlobalPayments\Api\PaymentMethods\CreditCardData; -use GlobalPayments\Api\Utils\GenerationUtils; use GlobalPayments\Api\Entities\Enums\AddressType; use GlobalPayments\Api\Entities\Enums\FraudFilterMode; +use GlobalPayments\Api\ServiceConfigs\Gateways\GpEcomConfig; use GlobalPayments\Api\Tests\Integration\Gateways\RealexConnector\Hpp\RealexHppClient; use PHPUnit\Framework\TestCase; @@ -32,7 +26,7 @@ class HppTest extends TestCase public function basicSetup() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "hpp"; $config->sharedSecret = "secret"; @@ -46,7 +40,7 @@ public function basicSetup() public function testCreditAuth() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "hpp"; $config->sharedSecret = "secret"; @@ -84,7 +78,7 @@ public function testCreditAuth() public function testCreditSale() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "hpp"; $config->sharedSecret = "secret"; @@ -125,7 +119,7 @@ public function testCreditSale() public function testCreditVerify() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "hpp"; $config->sharedSecret = "secret"; @@ -219,7 +213,7 @@ public function testVerifyWithAmount() public function testCardStorageCreatePayer() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "3dsecure"; $config->refundPassword = "refund"; @@ -260,7 +254,7 @@ public function testCardStorageCreatePayer() public function testCardStorageDisplayStoredCard() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "3dsecure"; $config->refundPassword = "refund"; @@ -303,7 +297,7 @@ public function testCardStorageDisplayStoredCard() public function testContinuousAuthorityRequest() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "3dsecure"; $config->refundPassword = "refund"; @@ -341,7 +335,7 @@ public function testContinuousAuthorityRequest() public function testEnableDynamicCurrencyConversionRequest() { //set config for DCC - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -371,7 +365,7 @@ public function testEnableDynamicCurrencyConversionRequest() public function testDisableDynamicCurrencyConversionRequest() { //set config for DCC - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -402,7 +396,7 @@ public function testDisableDynamicCurrencyConversionRequest() public function testFraudManagementRequest() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "3dsecure"; $config->refundPassword = "refund"; @@ -460,7 +454,7 @@ public function testFraudManagementRequest() public function testBasicAuthHppVersion1() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -486,7 +480,7 @@ public function testBasicAuthHppVersion1() public function testBasicAuthHppVersion2() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -512,7 +506,7 @@ public function testBasicAuthHppVersion2() public function testBasicSale() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -538,7 +532,7 @@ public function testBasicSale() public function testBasicHostedPaymentDataHppVersion1() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -573,7 +567,7 @@ public function testBasicHostedPaymentDataHppVersion1() public function testBasicHostedPaymentDataHppVersion2() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "MerchantId"; $config->accountId = "internet"; $config->refundPassword = "refund"; @@ -608,7 +602,7 @@ public function testBasicHostedPaymentDataHppVersion2() public function testParseResponse() { - $config = new ServicesConfig(); + $config = new GpEcomConfig(); $config->merchantId = "heartlandgpsandbox"; $config->accountId = "hpp"; $config->sharedSecret = "secret"; diff --git a/test/Integration/Gateways/RealexConnector/Realex3dSecureTests.php b/test/Integration/Gateways/RealexConnector/Realex3dSecureTests.php index 104641dc..d409af78 100644 --- a/test/Integration/Gateways/RealexConnector/Realex3dSecureTests.php +++ b/test/Integration/Gateways/RealexConnector/Realex3dSecureTests.php @@ -6,6 +6,7 @@ use GlobalPayments\Api\Services\CreditService; use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\MerchantDataCollection; use GlobalPayments\Api\Entities\ThreeDSecure; @@ -60,7 +61,7 @@ public function testMerchantDataWithHiddenValues() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'James Mason'; $enrolled = $card->verifyEnrolled(100, 'USD'); @@ -128,7 +129,7 @@ public function testFullCycleWithMerchantData() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(1, 'USD'); @@ -166,7 +167,7 @@ public function testFullCycleWithNoMerchantData() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'James Mason'; $amount = 100; @@ -207,7 +208,7 @@ public function testVerifyEnrolledTrue() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(1, 'USD'); @@ -223,7 +224,7 @@ public function testVerifyEnrolledFalse() $card = new CreditCardData(); $card->number = 4012001038443335; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(1, 'USD'); @@ -285,7 +286,7 @@ public function testAuthorize3dSecure() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'Philip Marlowe'; $card->threeDSecure = $secureEcom; @@ -302,7 +303,7 @@ public function testCardHolderNotEnrolled() $card = new CreditCardData(); $card->number = 4012001038443335; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -323,7 +324,7 @@ public function testUnableToVerifyEnrollment() $card = new CreditCardData(); $card->number = 4012001038488884; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -346,7 +347,7 @@ public function testInvalidResponseFromEnrollmentServer() $card = new CreditCardData(); $card->number = 4012001036298889; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $card->verifyEnrolled(10, 'USD'); @@ -357,7 +358,7 @@ public function testCardHolderIsEnrolledACSAuthFailed() $card = new CreditCardData(); $card->number = 4012001036853337; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -388,7 +389,7 @@ public function testCardHolderIsEnrolledACSAcknowledged() $card = new CreditCardData(); $card->number = 4012001037167778; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -418,7 +419,7 @@ public function testCardHolderIsEnrolledACSFailed() $card = new CreditCardData(); $card->number = 4012001037461114; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -449,7 +450,7 @@ public function testCardHolderIsEnrolledACSUnavailable() $card = new CreditCardData(); $card->number = 4012001037484447; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); @@ -482,7 +483,7 @@ public function testCardHolderIsEnrolledACSInvalid() $card = new CreditCardData(); $card->number = 4012001037490006; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $enrolled = $card->verifyEnrolled(10, 'USD'); diff --git a/test/Integration/Gateways/RealexConnector/RecurringTest.php b/test/Integration/Gateways/RealexConnector/RecurringTest.php index 52e06fca..83e573c3 100644 --- a/test/Integration/Gateways/RealexConnector/RecurringTest.php +++ b/test/Integration/Gateways/RealexConnector/RecurringTest.php @@ -7,6 +7,7 @@ use GlobalPayments\Api\Entities\Exceptions\GatewayException; use GlobalPayments\Api\Entities\Customer; use GlobalPayments\Api\Entities\Address; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\PaymentMethods\RecurringPaymentMethod; use GlobalPayments\Api\PaymentMethods\CreditCardData; @@ -107,7 +108,7 @@ public function testcardStorageStoreCard() $card = new CreditCardData(); $card->number = "4012001037141112"; $card->expMonth = 10; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $card->cardHolderName = 'James Mason'; @@ -206,7 +207,7 @@ public function testContinuousAuthorityFirst() $card = new CreditCardData(); $card->number = '5425230000004415'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '131'; $card->cardHolderName = 'James Mason'; @@ -300,7 +301,7 @@ public function testcardStorageUpdateCard() $paymentMethod->paymentMethod = new CreditCardData(); $paymentMethod->paymentMethod->number = "5425230000004415"; $paymentMethod->paymentMethod->expMonth = 10; - $paymentMethod->paymentMethod->expYear = 2020; + $paymentMethod->paymentMethod->expYear = TestCards::validCardExpYear(); $paymentMethod->paymentMethod->cardHolderName = "Philip Marlowe"; $response = $paymentMethod->SaveChanges(); diff --git a/test/Integration/Gateways/RealexConnector/Secure3dServiceTests.php b/test/Integration/Gateways/RealexConnector/Secure3dServiceTests.php index 50e6e543..d36db6e2 100644 --- a/test/Integration/Gateways/RealexConnector/Secure3dServiceTests.php +++ b/test/Integration/Gateways/RealexConnector/Secure3dServiceTests.php @@ -14,6 +14,7 @@ use GlobalPayments\Api\PaymentMethods\DebitTrackData; use GlobalPayments\Api\PaymentMethods\RecurringPaymentMethod; use GlobalPayments\Api\Services\Secure3dService; +use GlobalPayments\Api\Tests\Data\TestCards; use GlobalPayments\Api\Tests\Integration\Gateways\RealexConnector\ThreeDSecureAcsClient; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Entities\Address; @@ -51,7 +52,7 @@ public function setup() : void $this->card = new CreditCardData(); $this->card->number = 4263970000005262; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cardHolderName = 'John Smith'; // stored card @@ -108,7 +109,7 @@ public function testFullCycle_v1() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cardHolderName = 'John Smith'; $secureEcom = Secure3dService::checkEnrollment($card) @@ -750,7 +751,7 @@ public function testCheckVersion_Not_Enrolled() $card = new CreditCardData(); $card->number = 4012001037141112; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $secureEcom = Secure3dService::checkEnrollment($card) ->execute(Secure3dVersion::ANY); $this->assertNotNull($secureEcom); diff --git a/test/Integration/Gateways/Terminals/PAX/PaxCreditTests.php b/test/Integration/Gateways/Terminals/PAX/PaxCreditTests.php index faae44cc..85566d17 100644 --- a/test/Integration/Gateways/Terminals/PAX/PaxCreditTests.php +++ b/test/Integration/Gateways/Terminals/PAX/PaxCreditTests.php @@ -6,6 +6,7 @@ use GlobalPayments\Api\Terminals\Enums\ConnectionModes; use GlobalPayments\Api\Terminals\Enums\DeviceType; use GlobalPayments\Api\Services\DeviceService; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Tests\Integration\Gateways\Terminals\RequestIdProvider; use GlobalPayments\Api\PaymentMethods\CreditCardData; @@ -27,7 +28,7 @@ public function setup() $this->card = new CreditCardData(); $this->card->number = '4111111111111111'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; $this->card->cardHolderName = 'Joe Smith'; diff --git a/test/Integration/Gateways/Terminals/PAX/PaxReportTests.php b/test/Integration/Gateways/Terminals/PAX/PaxReportTests.php index ff380a80..9b6c925c 100644 --- a/test/Integration/Gateways/Terminals/PAX/PaxReportTests.php +++ b/test/Integration/Gateways/Terminals/PAX/PaxReportTests.php @@ -6,6 +6,7 @@ use GlobalPayments\Api\Terminals\Enums\ConnectionModes; use GlobalPayments\Api\Terminals\Enums\DeviceType; use GlobalPayments\Api\Services\DeviceService; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Tests\Integration\Gateways\Terminals\RequestIdProvider; use GlobalPayments\Api\Terminals\PAX\Entities\Enums\PaxSearchCriteria; @@ -29,7 +30,7 @@ public function setup() $card = new CreditCardData(); $card->number = '4111111111111111'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $card->cardHolderName = 'Joe Smith'; diff --git a/test/Integration/Gateways/Terminals/PAX/vrf/PaxVerificationTests.php b/test/Integration/Gateways/Terminals/PAX/vrf/PaxVerificationTests.php index b2d00118..f89247cb 100644 --- a/test/Integration/Gateways/Terminals/PAX/vrf/PaxVerificationTests.php +++ b/test/Integration/Gateways/Terminals/PAX/vrf/PaxVerificationTests.php @@ -5,6 +5,7 @@ use GlobalPayments\Api\Terminals\Enums\ConnectionModes; use GlobalPayments\Api\Terminals\Enums\DeviceType; use GlobalPayments\Api\Services\DeviceService; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; use GlobalPayments\Api\Tests\Integration\Gateways\Terminals\RequestIdProvider; use GlobalPayments\Api\PaymentMethods\CreditCardData; @@ -31,7 +32,7 @@ public function setup() $this->card = new CreditCardData(); $this->card->number = '5473500000000014'; $this->card->expMonth = 12; - $this->card->expYear = 2025; + $this->card->expYear = TestCards::validCardExpYear(); $this->card->cvn = '123'; $this->card->cardHolderName = 'Joe Smith'; diff --git a/test/Integration/Gateways/TransITConnector/Certification/DirectMarketingMOTO_3.php b/test/Integration/Gateways/TransITConnector/Certification/DirectMarketingMOTO_3.php index d7be5130..c678285c 100644 --- a/test/Integration/Gateways/TransITConnector/Certification/DirectMarketingMOTO_3.php +++ b/test/Integration/Gateways/TransITConnector/Certification/DirectMarketingMOTO_3.php @@ -2,7 +2,7 @@ namespace GlobalPayments\Api\Tests\Integration\Gateways\TransITConnector\Certification; -use GlobalPayments\Api\AcceptorConfig; +use GlobalPayments\Api\ServiceConfigs\AcceptorConfig; use GlobalPayments\Api\Entities\AdditionalTaxDetails; use GlobalPayments\Api\Entities\CommercialData; use GlobalPayments\Api\Entities\Address; @@ -22,16 +22,17 @@ use GlobalPayments\Api\Entities\Enums\TaxCategory; use GlobalPayments\Api\Entities\StoredCredential; use GlobalPayments\Api\Entities\Transaction; +use GlobalPayments\Api\ServiceConfigs\Gateways\TransitConfig; use GlobalPayments\Api\Services\BatchService; use PHPUnit\Framework\TestCase; final class DirectMarketingMOTO_3 extends TestCase { public function setup() : void { - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); } public function getConfig() { - $config = new ServicesConfig(); + $config = new TransitConfig(); $config->merchantId = '887000003226'; $config->username = 'TA5622118'; $config->password = 'f8mapGqWrE^rVaA9'; @@ -150,7 +151,7 @@ public function test07MasterCardSale() { } public function test08JCBSale() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getJCB()->charge(13.00) ->withCurrency('USD') @@ -162,7 +163,7 @@ public function test08JCBSale() { } public function test09VisaSale() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getVisa1()->charge(32.49) ->withCurrency('USD') @@ -175,7 +176,7 @@ public function test09VisaSale() { } public function test10DiscoverCUPSale() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getDiscoverCUP()->charge(7.05) ->withCurrency('USD') @@ -187,7 +188,7 @@ public function test10DiscoverCUPSale() { } public function test11VisaSale() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getVisa1()->charge(11.12) ->withCurrency('USD') @@ -200,7 +201,7 @@ public function test11VisaSale() { } public function test12AMEXSale() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getAmex()->charge(4.00) ->withCurrency('USD') @@ -232,7 +233,7 @@ public function test14MasterCardVerify() { } public function test15AMEXVerify() { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getAmex()->verify() ->withAddress($this->getAVSData()) @@ -480,7 +481,7 @@ public function test24VisaMultiCapture () { } public function test25MCMultiCapture () { - ServicesContainer::configure($this->getMailConfig()); + ServicesContainer::configureService($this->getMailConfig()); $response = $this->getMCUnclassifiedTIC()->authorize(50.00) ->withCurrency('USD') @@ -571,7 +572,7 @@ public function test33CloseBatch () { public function getVisa1 () { $card = new CreditCardData; $card->number = 4012000098765439; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -583,7 +584,7 @@ public function getVisa1 () { public function getVisa2 () { $card = new CreditCardData; $card->number = 4012881888818888; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -595,7 +596,7 @@ public function getVisa2 () { public function getMCUnclassifiedTIC () { $card = new CreditCardData; $card->number = 5146315000000055; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -607,7 +608,7 @@ public function getMCUnclassifiedTIC () { public function getMCSwipeTIC () { $card = new CreditCardData; $card->number = 5146312200000035; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -619,7 +620,7 @@ public function getMCSwipeTIC () { public function getMCKeyedTIC () { $card = new CreditCardData; $card->number = 5146312620000045; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -631,7 +632,7 @@ public function getMCKeyedTIC () { public function getMC2BIN () { $card = new CreditCardData; $card->number = 2223000048400011; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -643,7 +644,7 @@ public function getMC2BIN () { public function getAmex () { $card = new CreditCardData; $card->number = 371449635392376; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 9997; $card->cardType = CardType::AMEX; @@ -655,7 +656,7 @@ public function getAmex () { public function getDiscover () { $card = new CreditCardData; $card->number = 6011000993026909; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -667,7 +668,7 @@ public function getDiscover () { public function getDiscoverCUP () { $card = new CreditCardData; $card->number = 6282000123842342; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -679,7 +680,7 @@ public function getDiscoverCUP () { public function getDiscoverCUP2 () { $card = new CreditCardData; $card->number = 6221261111112650; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -691,7 +692,7 @@ public function getDiscoverCUP2 () { public function getDiners () { $card = new CreditCardData; $card->number = 3055155515160018; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DINERS; @@ -703,7 +704,7 @@ public function getDiners () { public function getJCB () { $card = new CreditCardData; $card->number = 3530142019945859; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::JCB; diff --git a/test/Integration/Gateways/TransITConnector/Certification/Ecommerce_3.php b/test/Integration/Gateways/TransITConnector/Certification/Ecommerce_3.php index 2e19053a..14f3ca79 100644 --- a/test/Integration/Gateways/TransITConnector/Certification/Ecommerce_3.php +++ b/test/Integration/Gateways/TransITConnector/Certification/Ecommerce_3.php @@ -658,7 +658,7 @@ public function test35CloseBatch () { public function getVisa1 () { $card = new CreditCardData; $card->number = 4012000098765439; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -668,7 +668,7 @@ public function getVisa1 () { public function getVisa2 () { $card = new CreditCardData; $card->number = 4012881888818888; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -678,7 +678,7 @@ public function getVisa2 () { public function getMCUnclassifiedTIC () { $card = new CreditCardData; $card->number = 5146315000000055; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -688,7 +688,7 @@ public function getMCUnclassifiedTIC () { public function getMCSwipeTIC () { $card = new CreditCardData; $card->number = 5146312200000035; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -698,7 +698,7 @@ public function getMCSwipeTIC () { public function getMCKeyedTIC () { $card = new CreditCardData; $card->number = 5146312620000045; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -708,7 +708,7 @@ public function getMCKeyedTIC () { public function getMC2BIN () { $card = new CreditCardData; $card->number = 2223000048400011; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -718,7 +718,7 @@ public function getMC2BIN () { public function getAmex () { $card = new CreditCardData; $card->number = 371449635392376; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 9997; $card->cardType = CardType::AMEX; @@ -728,7 +728,7 @@ public function getAmex () { public function getDiscover () { $card = new CreditCardData; $card->number = 6011000993026909; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -738,7 +738,7 @@ public function getDiscover () { public function getDiscoverCUP () { $card = new CreditCardData; $card->number = 6282000123842342; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -748,7 +748,7 @@ public function getDiscoverCUP () { public function getDiscoverCUP2 () { $card = new CreditCardData; $card->number = 6221261111112650; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -758,7 +758,7 @@ public function getDiscoverCUP2 () { public function getDiners () { $card = new CreditCardData; $card->number = 3055155515160018; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DINERS; @@ -768,7 +768,7 @@ public function getDiners () { public function getJCB () { $card = new CreditCardData; $card->number = 3530142019945859; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::JCB; diff --git a/test/Integration/Gateways/TransITConnector/Certification/Token_Request_Only.php b/test/Integration/Gateways/TransITConnector/Certification/Token_Request_Only.php index d28156ed..d13e822e 100644 --- a/test/Integration/Gateways/TransITConnector/Certification/Token_Request_Only.php +++ b/test/Integration/Gateways/TransITConnector/Certification/Token_Request_Only.php @@ -126,7 +126,7 @@ public function test08GenerateDinersMUT() { public function getVisa1 () { $card = new CreditCardData; $card->number = 4012000098765439; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -138,7 +138,7 @@ public function getVisa1 () { public function getVisa2 () { $card = new CreditCardData; $card->number = 4012881888818888; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 999; $card->cardType = CardType::VISA; @@ -150,7 +150,7 @@ public function getVisa2 () { public function getMCUnclassifiedTIC () { $card = new CreditCardData; $card->number = 5146315000000055; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -162,7 +162,7 @@ public function getMCUnclassifiedTIC () { public function getMCSwipeTIC () { $card = new CreditCardData; $card->number = 5146312200000035; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -174,7 +174,7 @@ public function getMCSwipeTIC () { public function getMCKeyedTIC () { $card = new CreditCardData; $card->number = 5146312620000045; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -186,7 +186,7 @@ public function getMCKeyedTIC () { public function getMC2BIN () { $card = new CreditCardData; $card->number = 2223000048400011; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 998; $card->cardType = CardType::MASTERCARD; @@ -198,7 +198,7 @@ public function getMC2BIN () { public function getAmex () { $card = new CreditCardData; $card->number = 371449635392376; - $card->expYear = 25; + $card->expYear = 25; // magic number $card->expMonth = 12; $card->cvn = 9997; $card->cardType = CardType::AMEX; @@ -210,7 +210,7 @@ public function getAmex () { public function getDiscover () { $card = new CreditCardData; $card->number = 6011000993026909; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -222,7 +222,7 @@ public function getDiscover () { public function getDiscoverCUP () { $card = new CreditCardData; $card->number = 6282000123842342; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -234,7 +234,7 @@ public function getDiscoverCUP () { public function getDiscoverCUP2 () { $card = new CreditCardData; $card->number = 6221261111112650; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DISCOVER; @@ -246,7 +246,7 @@ public function getDiscoverCUP2 () { public function getDiners () { $card = new CreditCardData; $card->number = 3055155515160018; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::DINERS; @@ -258,7 +258,7 @@ public function getDiners () { public function getJCB () { $card = new CreditCardData; $card->number = 3530142019945859; - $card->expYear = 20; + $card->expYear = 20; // magic number $card->expMonth = 12; $card->cvn = 996; $card->cardType = CardType::JCB; diff --git a/test/Integration/Gateways/TransITConnector/CommercialCardTest.php b/test/Integration/Gateways/TransITConnector/CommercialCardTest.php index 0033a9a8..9bac8fe0 100644 --- a/test/Integration/Gateways/TransITConnector/CommercialCardTest.php +++ b/test/Integration/Gateways/TransITConnector/CommercialCardTest.php @@ -16,6 +16,7 @@ use GlobalPayments\Api\PaymentMethods\CreditCardData; use GlobalPayments\Api\Entities\Enums\GatewayProvider; use GlobalPayments\Api\Entities\Enums\TaxCategory; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; final class CommercialCardTest extends TestCase { @@ -47,7 +48,7 @@ protected function getVisaManual() { $visaManual = new CreditCardData(); $visaManual->number = '4012000098765439'; $visaManual->expMonth = 12; - $visaManual->expYear = 2020; + $visaManual->expYear = TestCards::validCardExpYear(); $visaManual->cvn = '999'; return $visaManual; } @@ -56,7 +57,7 @@ protected function getMasterCardManual() { $masterCardManual = new CreditCardData(); $masterCardManual->number = '5146315000000055'; $masterCardManual->expMonth = 12; - $masterCardManual->expYear = 2020; + $masterCardManual->expYear = TestCards::validCardExpYear(); $masterCardManual->cvn = '998'; return $masterCardManual; } @@ -65,7 +66,7 @@ protected function getAmexManual() { $amexManual = new CreditCardData(); $amexManual->number = "371449635392376"; $amexManual->expMonth = 12; - $amexManual->expYear = 2020; + $amexManual->expYear = TestCards::validCardExpYear(); $amexManual->cvn = "9997"; return $amexManual; } diff --git a/test/Unit/Builders/AuthorizationBuilder/ValidationTest.php b/test/Unit/Builders/AuthorizationBuilder/ValidationTest.php index 24f8c30f..26a8968b 100644 --- a/test/Unit/Builders/AuthorizationBuilder/ValidationTest.php +++ b/test/Unit/Builders/AuthorizationBuilder/ValidationTest.php @@ -5,6 +5,7 @@ use GlobalPayments\Api\PaymentMethods\CreditCardData; use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; class ValidationTest extends TestCase @@ -17,7 +18,7 @@ public function setup() $card = new CreditCardData(); $card->number = '4111111111111111'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $card->cardHolderName = 'Joe Smith'; $this->card = $card; diff --git a/test/Unit/Gateways/RealexConnector/CreditTest.php b/test/Unit/Gateways/RealexConnector/CreditTest.php index 3530166b..99242b1c 100644 --- a/test/Unit/Gateways/RealexConnector/CreditTest.php +++ b/test/Unit/Gateways/RealexConnector/CreditTest.php @@ -5,6 +5,7 @@ use GlobalPayments\Api\PaymentMethods\CreditCardData; use GlobalPayments\Api\ServicesConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\Api\Tests\Data\TestCards; use PHPUnit\Framework\TestCase; class CreditTest extends TestCase @@ -16,12 +17,12 @@ public function setup() $card = new CreditCardData(); $card->number = '4111111111111111'; $card->expMonth = 12; - $card->expYear = 2025; + $card->expYear = TestCards::validCardExpYear(); $card->cvn = '123'; $card->cardHolderName = 'Joe Smith'; $this->card = $card; - ServicesContainer::configure($this->getConfig()); + ServicesContainer::configureService($this->getConfig()); } /**