Mollie Payments for WooCommerce - Version 4.0.0-beta3

Version Description

  • 02-07-2018 =

IMPORTANT Version 4.0 requires PHP 5.6 or higher. If you are using an older PHP version, please read this article: PHP & Mollie API v2.

  • Fix "Call to undefined function get_current_screen()" that can happen on some screens

  • Multicurrency support for WooCommerce added

  • New payment methods EPS and GiroPay added

  • Updated payment method logo's (better quality SVG's)

  • Updated Mollie API PHP to 2.0.5

  • Add support for failed regular payments (already had support for failed renewal payments)

  • In WooCommerce order edit view, add direct link to payment in Mollie Dashboard

  • Add notice to use bank transfer via Mollie, not default BACS gateway

  • Add support for new refunds and chargebacks processing (that are initiated in Mollie Dashboard)

Download this release

Release Info

Developer davdebcom
Plugin Icon wp plugin Mollie Payments for WooCommerce
Version 4.0.0-beta3
Comparing to
See all releases

Code changes from version 4.0.0-beta2 to 4.0.0-beta3

assets/images/{regiobank .svg → regiobank%20.svg} RENAMED
File without changes
includes/mollie/wc/plugin.php CHANGED
@@ -245,6 +245,7 @@ class Mollie_WC_Plugin
245
  if (!$gateway)
246
  {
247
  self::setHttpResponseCode(404);
 
248
  self::debug(__METHOD__ . ": Could not find gateway for order $order_id.");
249
  return;
250
  }
@@ -328,8 +329,21 @@ class Mollie_WC_Plugin
328
 
329
  $gateways = array_merge( $gateways, self::$GATEWAYS );
330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  // Remove old MisterCash (only) from WooCommerce Payment settings
332
- if ( is_admin() && ! empty( get_current_screen()->base ) && get_current_screen()->base == 'woocommerce_page_wc-settings' ) {
333
  if ( ( $key = array_search( 'Mollie_WC_Gateway_MisterCash', $gateways ) ) !== false ) {
334
  unset( $gateways[ $key ] );
335
  }
245
  if (!$gateway)
246
  {
247
  self::setHttpResponseCode(404);
248
+
249
  self::debug(__METHOD__ . ": Could not find gateway for order $order_id.");
250
  return;
251
  }
329
 
330
  $gateways = array_merge( $gateways, self::$GATEWAYS );
331
 
332
+ // Return if function get_current_screen() is not defined
333
+ if ( ! function_exists( 'get_current_screen' ) ) {
334
+ return $gateways;
335
+ }
336
+
337
+ // Try getting get_current_screen()
338
+ $current_screen = get_current_screen();
339
+
340
+ // Return if get_current_screen() isn't set
341
+ if ( ! $current_screen ) {
342
+ return $gateways;
343
+ }
344
+
345
  // Remove old MisterCash (only) from WooCommerce Payment settings
346
+ if ( is_admin() && ! empty( $current_screen->base ) && $current_screen->base == 'woocommerce_page_wc-settings' ) {
347
  if ( ( $key = array_search( 'Mollie_WC_Gateway_MisterCash', $gateways ) ) !== false ) {
348
  unset( $gateways[ $key ] );
349
  }
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: 4.0.0-beta2
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: 4.0.0-beta3
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, 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: 4.0.0-beta2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -169,6 +169,23 @@ Automatic updates should work like a charm; as always though, ensure you backup
169
 
170
  == Changelog ==
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  = 4.0.0-beta2 - 02/07/2018 =
173
 
174
  IMPORTANT
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: 4.0.0-beta3
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
169
 
170
  == Changelog ==
171
 
172
+ = 4.0.0-beta3 - 02-07-2018 =
173
+
174
+ IMPORTANT
175
+ Version 4.0 requires PHP 5.6 or higher. If you are using an older PHP version, please read this article: [PHP & Mollie API v2](https://github.com/mollie/WooCommerce/wiki/PHP-&-Mollie-API-v2).
176
+
177
+ * Fix "Call to undefined function get_current_screen()" that can happen on some screens
178
+
179
+ * [Multicurrency support for WooCommerce added](https://www.mollie.com/en/features/multicurrency/)
180
+ * [New payment methods EPS and GiroPay added](https://www.mollie.com/en/news/post/introducing-two-new-payment-methods-eps-and-giropay)
181
+ * Updated payment method logo's (better quality SVG's)
182
+ * Updated Mollie API PHP to 2.0.5
183
+
184
+ * Add support for failed regular payments (already had support for failed renewal payments)
185
+ * In WooCommerce order edit view, add direct link to payment in Mollie Dashboard
186
+ * Add notice to use bank transfer via Mollie, not default BACS gateway
187
+ * Add support for new refunds and chargebacks processing (that are initiated in Mollie Dashboard)
188
+
189
  = 4.0.0-beta2 - 02/07/2018 =
190
 
191
  IMPORTANT