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'; } /**