From a4c37cbacdfef7e1b66a73922194dcad426a55a2 Mon Sep 17 00:00:00 2001 From: Thomas Faurbye Nielsen Date: Tue, 5 Jul 2016 11:13:02 +0200 Subject: [PATCH] Updating payu latam to use new sandbox domain --- src/Message/Latam/AbstractRequest.php | 2 +- tests/Message/Latam/PurchaseRequestTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Message/Latam/AbstractRequest.php b/src/Message/Latam/AbstractRequest.php index cec6638..1bc3b8b 100644 --- a/src/Message/Latam/AbstractRequest.php +++ b/src/Message/Latam/AbstractRequest.php @@ -9,7 +9,7 @@ abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest { protected $liveEndpoint = "https://gateway.payulatam.com/ppp-web-gateway/"; - protected $testEndpoint = "https://stg.gateway.payulatam.com/ppp-web-gateway/"; + protected $testEndpoint = "https://sandbox.gateway.payulatam.com/ppp-web-gateway/"; public function getEndpoint() { diff --git a/tests/Message/Latam/PurchaseRequestTest.php b/tests/Message/Latam/PurchaseRequestTest.php index 007b056..c8b582e 100644 --- a/tests/Message/Latam/PurchaseRequestTest.php +++ b/tests/Message/Latam/PurchaseRequestTest.php @@ -56,7 +56,7 @@ public function testGetData() $this->assertInstanceOf("Omnipay\\PayU\\Message\\Latam\\PurchaseResponse", $response); $this->assertTrue($response->isRedirect()); $content = $response->getRedirectResponse()->getContent(); - $this->assertContains("action=\"https://stg.", $content); + $this->assertContains("action=\"https://sandbox.", $content); } }