From 53781f45cdb6f5ff2c23ad512e1b350453ed28b8 Mon Sep 17 00:00:00 2001 From: georgetudor Date: Fri, 1 Sep 2017 16:43:49 +0300 Subject: [PATCH] missing currency in reverse() method when proto>1 the reverse() method was missing the currency in the message when protocol version > 1 --- src/Borica/Request.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Borica/Request.php b/src/Borica/Request.php index 5d86737..20c2dc6 100644 --- a/src/Borica/Request.php +++ b/src/Borica/Request.php @@ -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)); @@ -353,4 +357,4 @@ private function validateOrderID($id) throw new LengthException('The order id should be between 1 and 15 symbols.'); } } -} \ No newline at end of file +}