Mollie Payments for WooCommerce - Version 5.3.2

Version Description

  • 04-11-2019 =

  • Fix - WooCommerce Session is not available before a specific action has been preformed causing null pointer exceptions in backend

Download this release

Release Info

Developer wido
Plugin Icon wp plugin Mollie Payments for WooCommerce
Version 5.3.2
Comparing to
See all releases

Code changes from version 5.3.1 to 5.3.2

includes/mollie-api-php/vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitb9d9e22242fec492b0c00057c2b37715::getLoader();
includes/mollie-api-php/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit42ba6b9fccd44e6582bb4dfeab7736a9
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire42ba6b9fccd44e6582bb4dfeab7736a9($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire42ba6b9fccd44e6582bb4dfeab7736a9($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitb9d9e22242fec492b0c00057c2b37715
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitb9d9e22242fec492b0c00057c2b37715', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitb9d9e22242fec492b0c00057c2b37715', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitb9d9e22242fec492b0c00057c2b37715::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitb9d9e22242fec492b0c00057c2b37715::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequireb9d9e22242fec492b0c00057c2b37715($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequireb9d9e22242fec492b0c00057c2b37715($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
includes/mollie-api-php/vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
@@ -64,8 +64,8 @@ class ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9
64
  public static function getInitializer(ClassLoader $loader)
65
  {
66
  return \Closure::bind(function () use ($loader) {
67
- $loader->prefixLengthsPsr4 = ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9::$prefixLengthsPsr4;
68
- $loader->prefixDirsPsr4 = ComposerStaticInit42ba6b9fccd44e6582bb4dfeab7736a9::$prefixDirsPsr4;
69
 
70
  }, null, ClassLoader::class);
71
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitb9d9e22242fec492b0c00057c2b37715
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
64
  public static function getInitializer(ClassLoader $loader)
65
  {
66
  return \Closure::bind(function () use ($loader) {
67
+ $loader->prefixLengthsPsr4 = ComposerStaticInitb9d9e22242fec492b0c00057c2b37715::$prefixLengthsPsr4;
68
+ $loader->prefixDirsPsr4 = ComposerStaticInitb9d9e22242fec492b0c00057c2b37715::$prefixDirsPsr4;
69
 
70
  }, null, ClassLoader::class);
71
  }
includes/mollie/wc/plugin.php CHANGED
@@ -9,7 +9,7 @@ class Mollie_WC_Plugin
9
  {
10
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
11
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
12
- const PLUGIN_VERSION = '5.3.1';
13
 
14
  const DB_VERSION = '1.0';
15
  const DB_VERSION_PARAM_NAME = 'mollie-db-version';
@@ -200,7 +200,10 @@ class Mollie_WC_Plugin
200
  add_action(
201
  'woocommerce_after_order_object_save',
202
  function () {
203
- mollieWooCommerceSession()->__unset(self::APPLE_PAY_METHOD_ALLOWED_KEY);
 
 
 
204
  }
205
  );
206
 
@@ -490,6 +493,10 @@ class Mollie_WC_Plugin
490
  {
491
  $wooCommerceSession = mollieWooCommerceSession();
492
 
 
 
 
 
493
  if (is_admin()) {
494
  return $gateways;
495
  }
9
  {
10
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
11
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
12
+ const PLUGIN_VERSION = '5.3.2';
13
 
14
  const DB_VERSION = '1.0';
15
  const DB_VERSION_PARAM_NAME = 'mollie-db-version';
200
  add_action(
201
  'woocommerce_after_order_object_save',
202
  function () {
203
+ $mollieWooCommerceSession = mollieWooCommerceSession();
204
+ if ($mollieWooCommerceSession instanceof WC_Session) {
205
+ $mollieWooCommerceSession->__unset(self::APPLE_PAY_METHOD_ALLOWED_KEY);
206
+ }
207
  }
208
  );
209
 
493
  {
494
  $wooCommerceSession = mollieWooCommerceSession();
495
 
496
+ if (!$wooCommerceSession instanceof WC_Session) {
497
+ return $gateways;
498
+ }
499
+
500
  if (is_admin()) {
501
  return $gateways;
502
  }
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: 5.3.1
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
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: 5.3.2
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
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: 5.2
6
- Stable tag: 5.3.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -181,11 +181,15 @@ Automatic updates should work like a charm; as always though, ensure you backup
181
 
182
  == Changelog ==
183
 
 
 
 
 
184
  = 5.3.1 - 04-11-2019 =
185
 
186
  * Fix - Apple Pay payment method appear temporary in checkout page even if the device does not support Apple Pay
187
  * Fix - Refunding per line items is not possible when the refund amount field is disabled in WooCommerce order edit page
188
- * Fix - Compatibility with Php 7.4
189
 
190
  = 5.3.0 - 21-08-2019 =
191
 
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: 5.2
6
+ Stable tag: 5.3.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
181
 
182
  == Changelog ==
183
 
184
+ = 5.3.2 - 04-11-2019 =
185
+
186
+ * Fix - WooCommerce Session is not available before a specific action has been preformed causing null pointer exceptions in backend
187
+
188
  = 5.3.1 - 04-11-2019 =
189
 
190
  * Fix - Apple Pay payment method appear temporary in checkout page even if the device does not support Apple Pay
191
  * Fix - Refunding per line items is not possible when the refund amount field is disabled in WooCommerce order edit page
192
+ * Fix - Compatibility with PHP 7.4
193
 
194
  = 5.3.0 - 21-08-2019 =
195