Skip to content

Commit

Permalink
Merge branch 'refs/heads/release/7.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Jun 3, 2024
2 parents 7c805da + 7e2bcb0 commit ecb0f9d
Show file tree
Hide file tree
Showing 20 changed files with 1,457 additions and 899 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
5 changes: 3 additions & 2 deletions 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
* Author: Mollie
* Author URI: https://www.mollie.com
* Requires at least: 5.0
Expand All @@ -12,8 +12,9 @@
* Domain Path: /languages
* License: GPLv2 or later
* WC requires at least: 3.9
* WC tested up to: 8.7
* WC tested up to: 8.9
* 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 ecb0f9d

Please sign in to comment.