Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit d069a50

Browse files
committed
fix: Fix wrong service urls
1 parent 426c7e4 commit d069a50

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Message/AbstractResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ abstract class AbstractResponse extends OmnipayAbstractResponse implements Redir
2525
/**
2626
* @var string
2727
*/
28-
protected $productionEndpoint = 'https://payment.datatrans.biz/upp/jsp/upStart.jsp';
28+
protected $productionEndpoint = 'https://pay.datatrans.com/upp/jsp/upStart.jsp';
2929

3030
/**
3131
* @var string
3232
*/
33-
protected $testEndpoint = 'https://pay.datatrans.com/upp/jsp/upStart.jsp';
33+
protected $testEndpoint = 'https://pay.sandbox.datatrans.com/upp/jsp/upStart.jsp';
3434

3535
/*** STATUS CODES ****/
3636
/**

src/Message/XmlRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ abstract class XmlRequest extends AbstractRequest
2727
*
2828
* @var string
2929
*/
30-
protected $apiBaseProdUrl = 'https://api.sandbox.datatrans.com/upp/jsp';
30+
protected $apiBaseProdUrl = 'https://api.datatrans.com/upp/jsp';
3131
/**
3232
* The XML API Endpoint Base URL
3333
*
3434
* @var string
3535
*/
36-
protected $apiBaseTestUrl = 'https://pay.sandbox.datatrans.com/upp/jsp';
36+
protected $apiBaseTestUrl = 'https://api.sandbox.datatrans.com/upp/jsp';
3737

3838
/**
3939
* defines the endpoint for a specific api

tests/GatewayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testPurchase()
5151
$this->assertTrue($response->isRedirect());
5252
$this->assertEquals('POST', $response->getRedirectMethod());
5353
$this->assertEquals($data, $response->getRedirectData());
54-
$this->assertStringStartsWith('https://pay.datatrans.com/upp/jsp/upStart.jsp', $response->getRedirectUrl());
54+
$this->assertStringStartsWith('https://pay.sandbox.datatrans.com/upp/jsp/upStart.jsp', $response->getRedirectUrl());
5555
}
5656

5757
public function testCompletePurchaseSuccess()

0 commit comments

Comments
 (0)