From 8c15b41250a76103d8841c0df993e64e9f350c78 Mon Sep 17 00:00:00 2001 From: sabineabele Date: Mon, 9 May 2022 16:47:28 +0300 Subject: [PATCH 1/3] Update wordline url --- src/Requests/AbstractRequest.php | 4 ++-- src/Responses/AbstractResponse.php | 4 ++-- tests/GatewayTest.php | 4 ++-- tests/Messages/AbstractRequestTest.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Requests/AbstractRequest.php b/src/Requests/AbstractRequest.php index 84957c6..7835e12 100644 --- a/src/Requests/AbstractRequest.php +++ b/src/Requests/AbstractRequest.php @@ -23,12 +23,12 @@ abstract class AbstractRequest extends CommonAbstractRequest /** * @var string */ - protected $testServerEndpoint = 'https://secureshop-test.firstdata.lv:8443/ecomm/MerchantHandler'; + protected $testServerEndpoint = 'https://securepaymentpage-test.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; /** * @var string */ - protected $liveServerEndpoint = 'https://secureshop.firstdata.lv:8443/ecomm/MerchantHandler'; + protected $liveServerEndpoint = 'https://securepaymentpage.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; /** diff --git a/src/Responses/AbstractResponse.php b/src/Responses/AbstractResponse.php index d825e31..6f0144e 100644 --- a/src/Responses/AbstractResponse.php +++ b/src/Responses/AbstractResponse.php @@ -28,12 +28,12 @@ abstract class AbstractResponse extends CommonAbstractResponse /** * @var string */ - protected $testClientEndpoint = 'https://secureshop-test.firstdata.lv/ecomm/ClientHandler'; + protected $testClientEndpoint = 'https://securepaymentpage-test.baltic.worldline-solutions.com/ecomm/ClientHandler'; /** * @var string */ - protected $liveClientEndpoint = 'https://secureshop.firstdata.lv/ecomm/ClientHandler'; + protected $liveClientEndpoint = 'https://securepaymentpage.baltic.worldline-solutions.com/ecomm/ClientHandler'; /** * @var bool diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 778103b..cdca15b 100644 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -136,7 +136,7 @@ public function testPurchaseSuccess() $this->assertEquals(array(), $response->getRedirectData()); $this->assertEquals('0AmRNR/ntNUZpeTkHSCGVw1wivc=', $response->getTransactionReference()); $this->assertEquals('GET', $response->getRedirectMethod()); - $this->assertEquals('https://secureshop-test.firstdata.lv/ecomm/ClientHandler?trans_id=0AmRNR%2FntNUZpeTkHSCGVw1wivc%3D', $response->getRedirectUrl()); + $this->assertEquals('https://securepaymentpage-test.baltic.worldline-solutions.com/ecomm/ClientHandler?trans_id=0AmRNR%2FntNUZpeTkHSCGVw1wivc%3D', $response->getRedirectUrl()); } public function testPurchaseFailed() @@ -291,7 +291,7 @@ public function testAuthorize() $this->assertEquals(array(), $response->getRedirectData()); $this->assertEquals('BBmRNR/ntNUZpeTkHSCGVw1wivc=', $response->getTransactionReference()); $this->assertEquals('GET', $response->getRedirectMethod()); - $this->assertEquals('https://secureshop-test.firstdata.lv/ecomm/ClientHandler?trans_id=BBmRNR%2FntNUZpeTkHSCGVw1wivc%3D', $response->getRedirectUrl()); + $this->assertEquals('https://securepaymentpage-test.baltic.worldline-solutions.com/ecomm/ClientHandler?trans_id=BBmRNR%2FntNUZpeTkHSCGVw1wivc%3D', $response->getRedirectUrl()); } public function testAuthorizeFailed() diff --git a/tests/Messages/AbstractRequestTest.php b/tests/Messages/AbstractRequestTest.php index a39b891..01e62ef 100644 --- a/tests/Messages/AbstractRequestTest.php +++ b/tests/Messages/AbstractRequestTest.php @@ -69,7 +69,7 @@ public function testSendData() // test actual headers we are sending $headers = array( - 'Host' => ['secureshop.firstdata.lv:8443'], + 'Host' => ['securepaymentpage.baltic.worldline-solutions.com:8443'], 'Content-Type' => ['application/x-www-form-urlencoded'] ); $this->assertSame($headers, $httpRequest->getHeaders()); From 89f45fb9607d6a60c68f928c68f0ba4f6333ac9d Mon Sep 17 00:00:00 2001 From: sabineabele Date: Mon, 9 May 2022 16:58:40 +0300 Subject: [PATCH 2/3] Supress line length error --- src/Requests/AbstractRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Requests/AbstractRequest.php b/src/Requests/AbstractRequest.php index 7835e12..c3003a3 100644 --- a/src/Requests/AbstractRequest.php +++ b/src/Requests/AbstractRequest.php @@ -22,11 +22,13 @@ abstract class AbstractRequest extends CommonAbstractRequest { /** * @var string + * phpcs:ignore */ protected $testServerEndpoint = 'https://securepaymentpage-test.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; /** * @var string + * phpcs:ignore */ protected $liveServerEndpoint = 'https://securepaymentpage.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; From 22a0645d5e9f1c32509688a6a5b5c578365950ba Mon Sep 17 00:00:00 2001 From: sabineabele Date: Mon, 9 May 2022 17:06:54 +0300 Subject: [PATCH 3/3] Supress line length error --- src/Requests/AbstractRequest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Requests/AbstractRequest.php b/src/Requests/AbstractRequest.php index c3003a3..0683ac1 100644 --- a/src/Requests/AbstractRequest.php +++ b/src/Requests/AbstractRequest.php @@ -22,15 +22,13 @@ abstract class AbstractRequest extends CommonAbstractRequest { /** * @var string - * phpcs:ignore */ - protected $testServerEndpoint = 'https://securepaymentpage-test.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; + protected $testServerEndpoint = 'https://securepaymentpage-test.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; //phpcs:ignore /** * @var string - * phpcs:ignore */ - protected $liveServerEndpoint = 'https://securepaymentpage.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; + protected $liveServerEndpoint = 'https://securepaymentpage.baltic.worldline-solutions.com:8443/ecomm/MerchantHandler'; //phpcs:ignore /**