Skip to content

Commit

Permalink
Merge pull request #205 from buckaroo-it/BA-628-fix/utf8-encoding-in-…
Browse files Browse the repository at this point in the history
…base64data-

Preserve zero fractions in JSON encoding on Hmac generator
  • Loading branch information
vildanbina authored Dec 4, 2024
2 parents 0b28723 + 50d703c commit bb16315
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 135 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.17.0",
"version": "1.17.1",
"type": "library",
"require": {
"php": "^8.1",
Expand Down
22 changes: 0 additions & 22 deletions example/transactions/sofort.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Handlers/HMAC/Hmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down
2 changes: 0 additions & 2 deletions src/PaymentMethods/PaymentMethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use Buckaroo\PaymentMethods\Alipay\Alipay;
use Buckaroo\PaymentMethods\In3Old\In3Old;
use Buckaroo\PaymentMethods\Paypal\Paypal;
use Buckaroo\PaymentMethods\Sofort\Sofort;
use Buckaroo\PaymentMethods\Thunes\Thunes;
use Buckaroo\PaymentMethods\Belfius\Belfius;
use Buckaroo\PaymentMethods\Billink\Billink;
Expand Down Expand Up @@ -112,7 +111,6 @@ class PaymentMethodFactory
EPS::class => ['eps'],
ExternalPayment::class => ['externalpayment'],
Emandates::class => ['emandates'],
Sofort::class => ['sofort', 'sofortueberweisung'],
Marketplaces::class => ['marketplaces'],
NoServiceSpecifiedPayment::class => ['noservice'],
Payconiq::class => ['payconiq'],
Expand Down
47 changes: 0 additions & 47 deletions src/PaymentMethods/Sofort/Sofort.php

This file was deleted.

62 changes: 0 additions & 62 deletions tests/Buckaroo/Payments/SofortTest.php

This file was deleted.

0 comments on commit bb16315

Please sign in to comment.