Mollie Payments for WooCommerce - Version 7.3.3

Version Description

  • 21-09-2022 =

  • Fix - Subscription renewal charged twice

  • Fix - Credit card components not loading on update

Download this release

Release Info

Developer carmen222
Plugin Icon wp plugin Mollie Payments for WooCommerce
Version 7.3.3
Comparing to
See all releases

Code changes from version 7.3.2 to 7.3.3

mollie-payments-for-woocommerce.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://www.mollie.com
5
  * Description: Accept payments in WooCommerce with the official Mollie plugin
6
- * Version: 7.3.2
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 5.0
@@ -12,7 +12,7 @@
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
14
  * WC requires at least: 3.0
15
- * WC tested up to: 6.5
16
  * Requires PHP: 7.2
17
  */
18
  declare(strict_types=1);
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://www.mollie.com
5
  * Description: Accept payments in WooCommerce with the official Mollie plugin
6
+ * Version: 7.3.3
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 5.0
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
14
  * WC requires at least: 3.0
15
+ * WC tested up to: 6.9
16
  * Requires PHP: 7.2
17
  */
18
  declare(strict_types=1);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: daanvm, danielhuesken, davdebcom, dinamiko, inpsyde, l.vangunst, n
3
  Tags: mollie, payments, payment gateway, woocommerce, credit card, ideal, bancontact, klarna, sofort, giropay, woocommerce subscriptions
4
  Requires at least: 3.8
5
  Tested up to: 6.0
6
- Stable tag: 7.3.2
7
  Requires PHP: 7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -185,6 +185,11 @@ Automatic updates should work like a charm; as always though, ensure you backup
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
188
  = 7.3.2 - 14-09-2022 =
189
 
190
  * Fix - Warning stops transaction when debugging on production
3
  Tags: mollie, payments, payment gateway, woocommerce, credit card, ideal, bancontact, klarna, sofort, giropay, woocommerce subscriptions
4
  Requires at least: 3.8
5
  Tested up to: 6.0
6
+ Stable tag: 7.3.3
7
  Requires PHP: 7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
185
 
186
  == Changelog ==
187
 
188
+ = 7.3.3 - 21-09-2022 =
189
+
190
+ * Fix - Subscription renewal charged twice
191
+ * Fix - Credit card components not loading on update
192
+
193
  = 7.3.2 - 14-09-2022 =
194
 
195
  * Fix - Warning stops transaction when debugging on production
src/Gateway/GatewayModule.php CHANGED
@@ -154,7 +154,7 @@ class GatewayModule implements ServiceModule, ExecutableModule
154
  });
155
 
156
  add_filter('woocommerce_payment_gateways', function ($gateways) use ($container) {
157
- $mollieGateways = $this->instantiatePaymentMethodGateways($container);
158
  return array_merge($gateways, $mollieGateways);
159
  });
160
  add_filter('woocommerce_payment_gateways', [$this, 'maybeDisableApplePayGateway'], 20);
154
  });
155
 
156
  add_filter('woocommerce_payment_gateways', function ($gateways) use ($container) {
157
+ $mollieGateways = $container->get('gateway.instances');
158
  return array_merge($gateways, $mollieGateways);
159
  });
160
  add_filter('woocommerce_payment_gateways', [$this, 'maybeDisableApplePayGateway'], 20);
src/PaymentMethods/Creditcard.php CHANGED
@@ -38,7 +38,9 @@ class Creditcard extends AbstractPaymentMethod implements PaymentMethodI
38
 
39
  public function hasPaymentFields(): bool
40
  {
41
- $componentsEnabled = $this->settings['mollie_components_enabled'] ?? false;
 
 
42
  return $componentsEnabled ? $componentsEnabled === 'yes' : $this->defaultComponentsEnabled() === 'yes';
43
  }
44
 
38
 
39
  public function hasPaymentFields(): bool
40
  {
41
+ $optionName = 'mollie_wc_gateway_creditcard_settings';
42
+ $settings = get_option($optionName, false);
43
+ $componentsEnabled = $settings['mollie_components_enabled'] ?? false;
44
  return $componentsEnabled ? $componentsEnabled === 'yes' : $this->defaultComponentsEnabled() === 'yes';
45
  }
46