-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for new (sia.eu) Poštová banka's iTerminal service sand…
…box and production (ITERMINAL2 introduced)
- Loading branch information
Showing
12 changed files
with
176 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Chaching. | ||
* | ||
* (c) 2020 BACKBONE, s.r.o. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Chaching\Drivers; | ||
|
||
|
||
class PBiTerminal2 extends \Chaching\Driver | ||
{ | ||
public function request(Array $attributes) | ||
{ | ||
static $request = NULL; | ||
|
||
if ($request === NULL) | ||
{ | ||
$request = new \Chaching\Drivers\PBiTerminal2\Request( | ||
$this->authorization, $attributes, $this->options | ||
); | ||
} | ||
|
||
return $request; | ||
} | ||
|
||
public function response(Array $attributes) | ||
{ | ||
static $response = NULL; | ||
|
||
if ($response === NULL) | ||
{ | ||
$response = new \Chaching\Drivers\PBiTerminal2\Response( | ||
$this->authorization, $attributes, $this->options | ||
); | ||
} | ||
|
||
return $response; | ||
} | ||
|
||
public function refund(Array $attributes) | ||
{ | ||
static $refund = NULL; | ||
|
||
if ($refund === NULL) | ||
{ | ||
$refund = new \Chaching\Drivers\PBiTerminal2\Refund( | ||
$this->authorization, $attributes, $this->options | ||
); | ||
} | ||
|
||
return $refund; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Chaching. | ||
* | ||
* (c) 2021 BACKBONE, s.r.o. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Chaching\Drivers\PBiTerminal2; | ||
|
||
use \Chaching\Chaching; | ||
use \Chaching\Drivers\PBiTerminal\Refund as PBiTerminalRefund; | ||
|
||
|
||
class Refund extends PBiTerminalRefund | ||
{ | ||
protected function request_server_url() | ||
{ | ||
return ($this->environment === Chaching::SANDBOX) | ||
? 'https://vpos.te.sia.eu:8443/ecomm/MerchantHandler' | ||
: 'https://vpos.sia.eu:8443/ecomm/MerchantHandler'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Chaching. | ||
* | ||
* (c) 2021 BACKBONE, s.r.o. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Chaching\Drivers\PBiTerminal2; | ||
|
||
use \Chaching\Chaching; | ||
use \Chaching\Drivers\PBiTerminal\Request as PBiTerminalRequest; | ||
|
||
|
||
class Request extends PBiTerminalRequest | ||
{ | ||
protected function request_server_url() | ||
{ | ||
return ($this->environment === Chaching::SANDBOX) | ||
? 'https://vpos.te.sia.eu:8443/ecomm/MerchantHandler' | ||
: 'https://vpos.sia.eu:8443/ecomm/MerchantHandler'; | ||
} | ||
|
||
protected function request_client_url() | ||
{ | ||
return ($this->environment === Chaching::SANDBOX) | ||
? 'https://vpos.te.sia.eu/ecomm/ClientHandler' | ||
: 'https://vpos.sia.eu/ecomm/ClientHandler'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Chaching. | ||
* | ||
* (c) 2021 BACKBONE, s.r.o. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Chaching\Drivers\PBiTerminal2; | ||
|
||
use \Chaching\Chaching; | ||
use \Chaching\Drivers\PBiTerminal\Response as PBiTerminalResponse; | ||
|
||
|
||
class Response extends PBiTerminalResponse | ||
{ | ||
protected function request_server_url() | ||
{ | ||
return ($this->environment === Chaching::SANDBOX) | ||
? 'https://vpos.te.sia.eu:8443/ecomm/MerchantHandler' | ||
: 'https://vpos.sia.eu:8443/ecomm/MerchantHandler'; | ||
} | ||
} | ||
|
||
|