Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve zero fractions in JSON encoding on Hmac generator #205

Merged
merged 9 commits into from
Dec 4, 2024
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.

Loading