Skip to content

Commit

Permalink
Merge pull request #204 from buckaroo-it/develop
Browse files Browse the repository at this point in the history
Release v1.17.0
  • Loading branch information
vildanbina authored Nov 21, 2024
2 parents 99a5072 + 0b28723 commit 0cebe5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "buckaroo/sdk",
"description": "Buckaroo payment SDK",
"license": "MIT",
"version": "1.16.0",
"version": "1.17.0",
"type": "library",
"require": {
"php": "^8.1",
Expand Down
6 changes: 5 additions & 1 deletion src/Handlers/HMAC/Hmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public function base64Data($data = null)
{
if (is_array($data))
{
$data = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION);
$data = mb_convert_encoding(
json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
'UTF-8',
'auto'
);
}

$md5 = md5($data, true);
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ class Company extends Person
protected string $companyName;
protected bool $vatApplicable;
protected string $vatNumber;
protected string $chamberOfCommerce;
protected ?string $chamberOfCommerce;
}

0 comments on commit 0cebe5b

Please sign in to comment.