From 087a327a6a704ab8e415fa0056dc8798d545bbb3 Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Wed, 4 Dec 2024 16:16:00 +0100 Subject: [PATCH 1/2] add JSON_PRESERVE_ZERO_FRACTION to json_encode options --- src/Handlers/HMAC/Hmac.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handlers/HMAC/Hmac.php b/src/Handlers/HMAC/Hmac.php index 5b3befb..09d1636 100644 --- a/src/Handlers/HMAC/Hmac.php +++ b/src/Handlers/HMAC/Hmac.php @@ -51,7 +51,7 @@ public function base64Data($data = null) if (is_array($data)) { $data = mb_convert_encoding( - json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), + json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION), 'UTF-8', 'auto' ); From 50d703c39a059afdff50f9b620418c0d6c184b8b Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Wed, 4 Dec 2024 16:18:28 +0100 Subject: [PATCH 2/2] update version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7cd2cc9..f2fdcac 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "buckaroo/sdk", "description": "Buckaroo payment SDK", "license": "MIT", - "version": "1.17.0", + "version": "1.17.1", "type": "library", "require": { "php": "^8.1",