Version Description
- 18/06/2018 =
IMPORTANT Starting with version 4.0, this plugin will require PHP 5.6. If you are using an older version, please read this article: PHP & Mollie API v2. We expect to launch version 4.0 in June 2018.
- Add warning that version 4.0 will require PHP 5.6
- Update 'Required PHP' tag to PHP 5.6
- Removes fatal error for thank you page without valid order (Issue #212 by NielsdeBlaauw)
Download this release
Release Info
Developer | davdebcom |
Plugin | Mollie Payments for WooCommerce |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.4 to 3.0.5
- includes/mollie/wc/plugin.php +1 -1
- mollie-payments-for-woocommerce.php +33 -1
- readme.txt +11 -2
includes/mollie/wc/plugin.php
CHANGED
@@ -7,7 +7,7 @@ class Mollie_WC_Plugin
|
|
7 |
{
|
8 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
9 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
10 |
-
const PLUGIN_VERSION = '3.0.
|
11 |
|
12 |
const DB_VERSION = '1.0';
|
13 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
7 |
{
|
8 |
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
|
9 |
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
|
10 |
+
const PLUGIN_VERSION = '3.0.5';
|
11 |
|
12 |
const DB_VERSION = '1.0';
|
13 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
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: 3.0.
|
7 |
* Author: Mollie
|
8 |
* Author URI: https://www.mollie.com
|
9 |
* Requires at least: 3.8
|
@@ -35,6 +35,19 @@ if ( ! defined( 'M4W_PLUGIN_DIR' ) ) {
|
|
35 |
define( 'M4W_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
/**
|
39 |
* Check if WooCommerce is active and of a supported version
|
40 |
*/
|
@@ -89,6 +102,25 @@ function mollie_wc_plugin_activation_hook ()
|
|
89 |
|
90 |
register_activation_hook(__FILE__, 'mollie_wc_plugin_activation_hook');
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
function mollie_wc_plugin_inactive() {
|
93 |
|
94 |
$nextScheduledTime = wp_next_scheduled( 'pending_payment_confirmation_check' );
|
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: 3.0.5
|
7 |
* Author: Mollie
|
8 |
* Author URI: https://www.mollie.com
|
9 |
* Requires at least: 3.8
|
35 |
define( 'M4W_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
36 |
}
|
37 |
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Pro-actively check and communicate PHP version incompatibility for Mollie Payments for WooCommerce 4.0
|
41 |
+
*/
|
42 |
+
function mollie_wc_check_php_version() {
|
43 |
+
if ( ! version_compare( PHP_VERSION, '5.6.0', ">=" ) ) {
|
44 |
+
remove_action( 'init', 'mollie_wc_plugin_init' );
|
45 |
+
add_action( 'admin_notices', 'mollie_wc_plugin_inactive_php' );
|
46 |
+
return;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
add_action( 'plugins_loaded', 'mollie_wc_check_php_version' );
|
50 |
+
|
51 |
/**
|
52 |
* Check if WooCommerce is active and of a supported version
|
53 |
*/
|
102 |
|
103 |
register_activation_hook(__FILE__, 'mollie_wc_plugin_activation_hook');
|
104 |
|
105 |
+
function mollie_wc_plugin_inactive_php() {
|
106 |
+
|
107 |
+
$nextScheduledTime = wp_next_scheduled( 'pending_payment_confirmation_check' );
|
108 |
+
if ( $nextScheduledTime ) {
|
109 |
+
wp_unschedule_event( $nextScheduledTime, 'pending_payment_confirmation_check' );
|
110 |
+
}
|
111 |
+
|
112 |
+
if ( ! is_admin() ) {
|
113 |
+
return false;
|
114 |
+
}
|
115 |
+
|
116 |
+
echo '<div class="error"><p>';
|
117 |
+
echo sprintf( esc_html__( 'Mollie Payments for WooCommerce 4.0 will require at least PHP 5.6.0. Your PHP version is outdated. Upgrade your PHP version and view %sthis FAQ%s.', 'mollie-payments-for-woocommerce' ), '<a href="https://github.com/mollie/WooCommerce/wiki/PHP-&-Mollie-API-v2" target="_blank">', '</a>' );
|
118 |
+
echo '</p></div>';
|
119 |
+
|
120 |
+
return false;
|
121 |
+
|
122 |
+
}
|
123 |
+
|
124 |
function mollie_wc_plugin_inactive() {
|
125 |
|
126 |
$nextScheduledTime = wp_next_scheduled( 'pending_payment_confirmation_check' );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: daanvm, davdebcom, l.vangunst, ndijkstra, robin-mollie
|
|
3 |
Tags: mollie, payments, woocommerce, payment gateway, e-commerce, credit card, ideal, sofort, bancontact, bitcoin, direct debit, subscriptions
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 3.0.
|
7 |
-
Requires PHP: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -163,6 +163,15 @@ Automatic updates should work like a charm; as always though, ensure you backup
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= 3.0.4 - 24/05/2018 =
|
167 |
|
168 |
* Fix - Limit order status update for cancelled and expired payments if another non-Mollie payment gateway also started payment processing (and is active) for that order, prevents expired and cancelled Mollie payments from cancelling the order
|
3 |
Tags: mollie, payments, woocommerce, payment gateway, e-commerce, credit card, ideal, sofort, bancontact, bitcoin, direct debit, subscriptions
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 3.0.5
|
7 |
+
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
+
= 3.0.5 - 18/06/2018 =
|
167 |
+
|
168 |
+
IMPORTANT
|
169 |
+
Starting with version 4.0, this plugin will require PHP 5.6. If you are using an older version, please read this article: [PHP & Mollie API v2](https://github.com/mollie/WooCommerce/wiki/PHP-&-Mollie-API-v2). We expect to launch version 4.0 in June 2018.
|
170 |
+
|
171 |
+
* Add warning that version 4.0 will require PHP 5.6
|
172 |
+
* Update 'Required PHP' tag to PHP 5.6
|
173 |
+
* Removes fatal error for thank you page without valid order (Issue #212 by NielsdeBlaauw)
|
174 |
+
|
175 |
= 3.0.4 - 24/05/2018 =
|
176 |
|
177 |
* Fix - Limit order status update for cancelled and expired payments if another non-Mollie payment gateway also started payment processing (and is active) for that order, prevents expired and cancelled Mollie payments from cancelling the order
|