Skip to content

Commit 0cebe5b

Browse files
authored
Merge pull request #204 from buckaroo-it/develop
Release v1.17.0
2 parents 99a5072 + 0b28723 commit 0cebe5b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "buckaroo/sdk",
33
"description": "Buckaroo payment SDK",
44
"license": "MIT",
5-
"version": "1.16.0",
5+
"version": "1.17.0",
66
"type": "library",
77
"require": {
88
"php": "^8.1",

src/Handlers/HMAC/Hmac.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ public function base64Data($data = null)
5050
{
5151
if (is_array($data))
5252
{
53-
$data = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION);
53+
$data = mb_convert_encoding(
54+
json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
55+
'UTF-8',
56+
'auto'
57+
);
5458
}
5559

5660
$md5 = md5($data, true);

src/Models/Company.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ class Company extends Person
2525
protected string $companyName;
2626
protected bool $vatApplicable;
2727
protected string $vatNumber;
28-
protected string $chamberOfCommerce;
28+
protected ?string $chamberOfCommerce;
2929
}

0 commit comments

Comments
 (0)