Skip to content

Commit

Permalink
Updated endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung authored Feb 16, 2021
1 parent 62c6b52 commit 738e455
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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';
}

/**
Expand Down

0 comments on commit 738e455

Please sign in to comment.