Skip to content

Commit 5c2a361

Browse files
authored
Merge pull request #911 from mollie/release/7.5.3
Release/7.5.4-beta
2 parents bda9155 + 2403477 commit 5c2a361

File tree

18 files changed

+1446
-896
lines changed

18 files changed

+1446
-896
lines changed

changelog.txt

Lines changed: 0 additions & 430 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"email": "info@mollie.com"
1212
},
1313
{
14-
"name": "Inpsyde Gmbh",
15-
"email": "hello@inpsyde.com"
14+
"name": "Syde Gmbh",
15+
"email": "hello@syde.com"
1616
}
1717
],
1818
"require": {

deploy.sh

Lines changed: 0 additions & 150 deletions
This file was deleted.

inc/utils.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ function mollieWooCommerceFormatCurrencyValue($value, $currency)
186186
if (in_array($currency, $currenciesWithNoDecimals)) {
187187
return number_format($value, 0, '.', '');
188188
}
189-
189+
// trying to avoid floating point issues
190+
$value = $value * 1000;
191+
$value = (int) $value / 1000; //drop the last decimal after the third
192+
$value = round($value, 3);
193+
$value = round($value, 2, PHP_ROUND_HALF_DOWN); //round down, as seems woo like it :)
190194
return number_format($value, 2, '.', '');
191195
}
192196

mollie-payments-for-woocommerce.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Mollie Payments for WooCommerce
44
* Plugin URI: https://www.mollie.com
55
* Description: Accept payments in WooCommerce with the official Mollie plugin
6-
* Version: 7.5.3
6+
* Version: 7.5.4-beta
77
* Author: Mollie
88
* Author URI: https://www.mollie.com
99
* Requires at least: 5.0
@@ -14,6 +14,7 @@
1414
* WC requires at least: 3.9
1515
* WC tested up to: 8.7
1616
* Requires PHP: 7.2
17+
* Requires Plugins: woocommerce
1718
*/
1819
declare(strict_types=1);
1920

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
],
1111
"authors": [
1212
{
13-
"name": "Inpsyde GmbH",
14-
"homepage": "https://inpsyde.com/",
15-
"email": "hallo@inpsyde.com",
13+
"name": "Syde GmbH",
14+
"homepage": "https://syde.com/",
15+
"email": "hello@syde.com",
1616
"role": "Company"
1717
},
1818
{

playwright.config.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

public/images/alma.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)