Skip to content

Commit

Permalink
Merge pull request #1 from georgetudor/patch-1
Browse files Browse the repository at this point in the history
missing currency in reverse() method when proto>1
  • Loading branch information
mirovit authored Sep 3, 2017
2 parents a3f0ca9 + 53781f4 commit 4e5499c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Borica/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ public function reverse($protocolVersion = '1.1')
$message .= $this->getLanguage();
$message .= $this->verifyProtocolVersion($protocolVersion) ? $protocolVersion : '1.0';

if ($protocolVersion != '1.0') {
$message .= $this->getCurrency();
}

$message = $this->signMessage($message);

return "{$this->getGatewayURL()}manageTransaction?eBorica=" . urlencode(base64_encode($message));
Expand Down Expand Up @@ -353,4 +357,4 @@ private function validateOrderID($id)
throw new LengthException('The order id should be between 1 and 15 symbols.');
}
}
}
}

0 comments on commit 4e5499c

Please sign in to comment.