Skip to content

Commit aaf8a90

Browse files
committed
Update Live and Test URLs as per Opayo requirements
1 parent 2925574 commit aaf8a90

15 files changed

+19
-19
lines changed

src/Message/AbstractRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ abstract class AbstractRequest extends OmnipayAbstractRequest implements Constan
5858
/**
5959
* @var string Endpoint base URLs.
6060
*/
61-
protected $liveEndpoint = 'https://live.sagepay.com/gateway/service';
62-
protected $testEndpoint = 'https://test.sagepay.com/gateway/service';
61+
protected $liveEndpoint = 'https://live.opayo.eu.elavon.com/gateway/service';
62+
protected $testEndpoint = 'https://sandbox.opayo.eu.elavon.com/gateway/service';
6363

6464
/**
6565
* Convenience method to switch iframe mode on or off.

src/Message/Form/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Response extends AbstractResponse implements RedirectResponseInterface, Co
1515
/**
1616
* @var string Endpoint base URLs.
1717
*/
18-
protected $liveEndpoint = 'https://live.sagepay.com/gateway/service/vspform-register.vsp';
19-
protected $testEndpoint = 'https://test.sagepay.com/gateway/service/vspform-register.vsp';
18+
protected $liveEndpoint = 'https://live.opayo.eu.elavon.com/gateway/service/vspform-register.vsp';
19+
protected $testEndpoint = 'https://sandbox.opayo.eu.elavon.com/gateway/service/vspform-register.vsp';
2020

2121
/**
2222
* Always a redirect, so not yet successful.

tests/DirectGatewayTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testAuthorize3dSecure()
9090
$this->assertTrue($response->isRedirect());
9191
$this->assertNull($response->getTransactionReference());
9292
$this->assertNull($response->getMessage());
93-
$this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
93+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
9494

9595
$redirectData = $response->getRedirectData();
9696
$this->assertSame('065379457749061954', $redirectData['MD']);
@@ -132,7 +132,7 @@ public function testPurchase3dSecure()
132132
$this->assertTrue($response->isRedirect());
133133
$this->assertNull($response->getTransactionReference());
134134
$this->assertNull($response->getMessage());
135-
$this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
135+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
136136

137137
$redirectData = $response->getRedirectData();
138138
$this->assertSame('065379457749061954', $redirectData['MD']);

tests/FormGatewayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testAuthorizeSuccess()
7373

7474
// Live (non-test) endpoint.
7575
$this->assertSame(
76-
'https://live.sagepay.com/gateway/service/vspform-register.vsp',
76+
'https://live.opayo.eu.elavon.com/gateway/service/vspform-register.vsp',
7777
$response->getRedirectUrl()
7878
);
7979

tests/Message/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testDirectPurchase3dSecure()
5959
$this->assertTrue($response->isRedirect());
6060
$this->assertNull($response->getTransactionReference());
6161
$this->assertNull($response->getMessage());
62-
$this->assertSame('https://test.sagepay.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
62+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/Simulator/3DAuthPage.asp', $response->getRedirectUrl());
6363

6464
$redirectData = $response->getRedirectData();
6565
$this->assertSame('065379457749061954', $redirectData['MD']);

tests/Message/ServerAuthorizeResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testServerPurchaseSuccess()
2323
$this->assertTrue($response->isRedirect());
2424
$this->assertSame('{"SecurityKey":"IK776BWNHN","VPSTxId":"{1E7D9C70-DBE2-4726-88EA-D369810D801D}","VendorTxCode":"123456"}', $response->getTransactionReference());
2525
$this->assertSame('Server transaction registered successfully.', $response->getMessage());
26-
$this->assertSame('https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl());
26+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl());
2727
$this->assertSame('GET', $response->getRedirectMethod());
2828
$this->assertSame([], $response->getRedirectData());
2929
}

tests/Message/ServerTokenRegistrationResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testTokenRegistrationSuccess()
2323
$this->assertTrue($response->isRedirect());
2424
$this->assertSame('{"SecurityKey":"IK776BWNHN","VPSTxId":"{1E7D9C70-DBE2-4726-88EA-D369810D801D}","VendorTxCode":"123456"}', $response->getTransactionReference());
2525
$this->assertSame('Server transaction registered successfully.', $response->getMessage());
26-
$this->assertSame('https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl());
26+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}', $response->getRedirectUrl());
2727
$this->assertSame('GET', $response->getRedirectMethod());
2828
$this->assertSame([], $response->getRedirectData());
2929
}

tests/Message/SharedAbortRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function testGetEndpoint()
3636
{
3737
$url = $this->request->getEndpoint();
3838

39-
$this->assertSame('https://test.sagepay.com/gateway/service/abort.vsp', $url);
39+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/gateway/service/abort.vsp', $url);
4040
}
4141
}

tests/Message/SharedRefundRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function testGetEndpoint()
3636
{
3737
$url = $this->request->getEndpoint();
3838

39-
$this->assertSame('https://test.sagepay.com/gateway/service/refund.vsp', $url);
39+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/gateway/service/refund.vsp', $url);
4040
}
4141
}

tests/Message/SharedVoidRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public function testGetEndpoint()
3939
{
4040
$url = $this->request->getEndpoint();
4141

42-
$this->assertSame('https://test.sagepay.com/gateway/service/void.vsp', $url);
42+
$this->assertSame('https://sandbox.opayo.eu.elavon.com/gateway/service/void.vsp', $url);
4343
}
4444
}

0 commit comments

Comments
 (0)