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", 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' );