From 738e455be6fd9984e1b49eda5dbcb2d69a99726f Mon Sep 17 00:00:00 2001 From: Chin Leung Date: Tue, 16 Feb 2021 10:38:19 -0500 Subject: [PATCH] Updated endpoints --- src/Client.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Client.php b/src/Client.php index 9dcabcc..856f788 100644 --- a/src/Client.php +++ b/src/Client.php @@ -14,7 +14,7 @@ class Client * * @var string */ - protected $endpoint = 'https://api.convergepay.com/VirtualMerchantDemo/processxml.do'; + protected $endpoint = 'https://api.convergepay.com/VirtualMerchant/processxml.do'; /** * The merchant id of the account. @@ -63,11 +63,7 @@ public function __construct(string $id, string $user, string $pin, bool $demo = */ protected function demo(): void { - $this->endpoint = str_replace( - 'api.convergepay', - 'api.demo.convergepay', - $this->endpoint - ); + $this->endpoint = 'https://api.demo.convergepay.com/VirtualMerchantDemo/processxml.do'; } /**