Skip to content

Commit

Permalink
Set default version of the protocol to 1.1
Browse files Browse the repository at this point in the history
The 2.0 version is used for special types of apps, described in the
docs. The 1.1 version allows for specifying the currency of the
transaction, so that’s why I’m setting it as a default.
  • Loading branch information
mirovit committed Feb 25, 2016
1 parent 0fba23a commit a3f0ca9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Borica/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct($terminalID, $privateKey, $privateKeyPassword = '',
* @param string $oneTimeTicket
* @return string
*/
public function register($protocolVersion = '2.0', $oneTimeTicket = null)
public function register($protocolVersion = '1.1', $oneTimeTicket = null)
{
$message = self::REGISTER_TRANSACTION;
$message .= $this->getDate();
Expand Down Expand Up @@ -78,7 +78,7 @@ public function register($protocolVersion = '2.0', $oneTimeTicket = null)
* @param string $protocolVersion
* @return string
*/
public function status($protocolVersion = '2.0')
public function status($protocolVersion = '1.1')
{
$message = self::REGISTER_TRANSACTION;
$message .= $this->getDate();
Expand All @@ -104,7 +104,7 @@ public function status($protocolVersion = '2.0')
* @param string $protocolVersion
* @return string
*/
public function registerDelayedRequest($protocolVersion = '2.0')
public function registerDelayedRequest($protocolVersion = '1.1')
{
$message = self::DELAYED_AUTHORIZATION_REQUEST;
$message .= $this->getDate();
Expand All @@ -130,7 +130,7 @@ public function registerDelayedRequest($protocolVersion = '2.0')
* @param string $protocolVersion
* @return string
*/
public function completeDelayedRequest($protocolVersion = '2.0')
public function completeDelayedRequest($protocolVersion = '1.1')
{
$message = self::DELAYED_AUTHORIZATION_COMPLETE;
$message .= $this->getDate();
Expand All @@ -156,7 +156,7 @@ public function completeDelayedRequest($protocolVersion = '2.0')
* @param string $protocolVersion
* @return string
*/
public function reverseDelayedRequest($protocolVersion = '2.0')
public function reverseDelayedRequest($protocolVersion = '1.1')
{
$message = self::DELAYED_AUTHORIZATION_REVERSAL;
$message .= $this->getDate();
Expand All @@ -182,7 +182,7 @@ public function reverseDelayedRequest($protocolVersion = '2.0')
* @param string $protocolVersion
* @return string
*/
public function reverse($protocolVersion = '2.0')
public function reverse($protocolVersion = '1.1')
{
$message = self::REVERSAL;
$message .= $this->getDate();
Expand Down

0 comments on commit a3f0ca9

Please sign in to comment.