Version Description
16-09-2020 =
Feature - Cancel order on payment expiration
Download this release
Release Info
Developer | carmen222 |
Plugin | Mollie Payments for WooCommerce |
Version | 5.9.0 |
Comparing to | |
See all releases |
Code changes from version 5.8.3 to 5.9.0
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.
|
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.9.0
|
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.5
|
6 |
-
Stable tag: 5.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -181,6 +181,10 @@ Automatic updates should work like a charm; as always though, ensure you backup
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
184 |
= 5.8.3 - 09-09-2020 =
|
185 |
|
186 |
* Fix - Apple Pay button is disabled if Apple Pay gateways is disabled
|
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.5
|
6 |
+
Stable tag: 5.9.0
|
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.9.0 - 16-09-2020 =
|
185 |
+
|
186 |
+
* Feature - Cancel order on payment expiration
|
187 |
+
|
188 |
= 5.8.3 - 09-09-2020 =
|
189 |
|
190 |
* Fix - Apple Pay button is disabled if Apple Pay gateways is disabled
|
src/Mollie/WC/Gateway/Abstract.php
CHANGED
@@ -565,8 +565,12 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
|
|
565 |
];
|
566 |
|
567 |
Mollie_WC_Plugin::debug( $apiCallLog );
|
568 |
-
|
569 |
$payment_object = Mollie_WC_Plugin::getApiHelper()->getApiClient( $test_mode )->orders->create( $data );
|
|
|
|
|
|
|
|
|
570 |
}
|
571 |
catch ( Mollie\Api\Exceptions\ApiException $e ) {
|
572 |
|
565 |
];
|
566 |
|
567 |
Mollie_WC_Plugin::debug( $apiCallLog );
|
568 |
+
$paymentOrder = $payment_object;
|
569 |
$payment_object = Mollie_WC_Plugin::getApiHelper()->getApiClient( $test_mode )->orders->create( $data );
|
570 |
+
if($settings_helper->getOrderStatusCancelledPayments() == 'cancelled'){
|
571 |
+
$orderWithPayments = Mollie_WC_Plugin::getApiHelper()->getApiClient( $test_mode )->orders->get( $payment_object->id, [ "embed" => "payments" ] );
|
572 |
+
$paymentOrder->updatePaymentDataWithOrderData($orderWithPayments, $order_id);
|
573 |
+
}
|
574 |
}
|
575 |
catch ( Mollie\Api\Exceptions\ApiException $e ) {
|
576 |
|
src/Mollie/WC/Payment/Order.php
CHANGED
@@ -1081,7 +1081,7 @@ class Mollie_WC_Payment_Order extends Mollie_WC_Payment_Object {
|
|
1081 |
* @param Mollie\Api\Resources\Order $order
|
1082 |
* @param int $orderId
|
1083 |
*/
|
1084 |
-
|
1085 |
{
|
1086 |
$paymentCollection = $order->payments();
|
1087 |
foreach ($paymentCollection as $payment) {
|
1081 |
* @param Mollie\Api\Resources\Order $order
|
1082 |
* @param int $orderId
|
1083 |
*/
|
1084 |
+
public function updatePaymentDataWithOrderData($order, $orderId)
|
1085 |
{
|
1086 |
$paymentCollection = $order->payments();
|
1087 |
foreach ($paymentCollection as $payment) {
|
src/Mollie/WC/Plugin.php
CHANGED
@@ -8,7 +8,7 @@ class Mollie_WC_Plugin
|
|
8 |
{
|
9 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
10 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
11 |
-
const PLUGIN_VERSION = '5.
|
12 |
|
13 |
const DB_VERSION = '1.0';
|
14 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
8 |
{
|
9 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
10 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
11 |
+
const PLUGIN_VERSION = '5.9.0';
|
12 |
|
13 |
const DB_VERSION = '1.0';
|
14 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit00a4865173be8721e59207920e1ead7f::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitcf4c3ed11e400692c94a01b4717420ac
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
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\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitcf4c3ed11e400692c94a01b4717420ac
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit00a4865173be8721e59207920e1ead7f
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit00a4865173be8721e59207920e1ead7f', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit00a4865173be8721e59207920e1ead7f', '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\ComposerStaticInit00a4865173be8721e59207920e1ead7f::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\ComposerStaticInit00a4865173be8721e59207920e1ead7f::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire00a4865173be8721e59207920e1ead7f($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire00a4865173be8721e59207920e1ead7f($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
@@ -295,10 +295,10 @@ class ComposerStaticInitcf4c3ed11e400692c94a01b4717420ac
|
|
295 |
public static function getInitializer(ClassLoader $loader)
|
296 |
{
|
297 |
return \Closure::bind(function () use ($loader) {
|
298 |
-
$loader->prefixLengthsPsr4 =
|
299 |
-
$loader->prefixDirsPsr4 =
|
300 |
-
$loader->prefixesPsr0 =
|
301 |
-
$loader->classMap =
|
302 |
|
303 |
}, null, ClassLoader::class);
|
304 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit00a4865173be8721e59207920e1ead7f
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
295 |
public static function getInitializer(ClassLoader $loader)
|
296 |
{
|
297 |
return \Closure::bind(function () use ($loader) {
|
298 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit00a4865173be8721e59207920e1ead7f::$prefixLengthsPsr4;
|
299 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit00a4865173be8721e59207920e1ead7f::$prefixDirsPsr4;
|
300 |
+
$loader->prefixesPsr0 = ComposerStaticInit00a4865173be8721e59207920e1ead7f::$prefixesPsr0;
|
301 |
+
$loader->classMap = ComposerStaticInit00a4865173be8721e59207920e1ead7f::$classMap;
|
302 |
|
303 |
}, null, ClassLoader::class);
|
304 |
}
|