Skip to content

Commit

Permalink
Merge pull request mollie#911 from mollie/release/7.5.3
Browse files Browse the repository at this point in the history
Release/7.5.4-beta
  • Loading branch information
mmaymo authored May 28, 2024
2 parents bda9155 + 2403477 commit 5c2a361
Show file tree
Hide file tree
Showing 18 changed files with 1,446 additions and 896 deletions.
430 changes: 0 additions & 430 deletions changelog.txt

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"email": "[email protected]"
},
{
"name": "Inpsyde Gmbh",
"email": "hello@inpsyde.com"
"name": "Syde Gmbh",
"email": "hello@syde.com"
}
],
"require": {
Expand Down
150 changes: 0 additions & 150 deletions deploy.sh

This file was deleted.

6 changes: 5 additions & 1 deletion inc/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ function mollieWooCommerceFormatCurrencyValue($value, $currency)
if (in_array($currency, $currenciesWithNoDecimals)) {
return number_format($value, 0, '.', '');
}

// trying to avoid floating point issues
$value = $value * 1000;
$value = (int) $value / 1000; //drop the last decimal after the third
$value = round($value, 3);
$value = round($value, 2, PHP_ROUND_HALF_DOWN); //round down, as seems woo like it :)
return number_format($value, 2, '.', '');
}

Expand Down
3 changes: 2 additions & 1 deletion mollie-payments-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mollie Payments for WooCommerce
* Plugin URI: https://www.mollie.com
* Description: Accept payments in WooCommerce with the official Mollie plugin
* Version: 7.5.3
* Version: 7.5.4-beta
* Author: Mollie
* Author URI: https://www.mollie.com
* Requires at least: 5.0
Expand All @@ -14,6 +14,7 @@
* WC requires at least: 3.9
* WC tested up to: 8.7
* Requires PHP: 7.2
* Requires Plugins: woocommerce
*/
declare(strict_types=1);

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"authors": [
{
"name": "Inpsyde GmbH",
"homepage": "https://inpsyde.com/",
"email": "hallo@inpsyde.com",
"name": "Syde GmbH",
"homepage": "https://syde.com/",
"email": "hello@syde.com",
"role": "Company"
},
{
Expand Down
77 changes: 0 additions & 77 deletions playwright.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions public/images/alma.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5c2a361

Please sign in to comment.