Mollie Payments for WooCommerce - Version 4.0.0-beta5

Version Description

  • 03-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.

  • Check that a locale (language code) is supported by Mollie before trying to create a payment
  • Fix "Couldn't create * payment", when other plugins (like WPML) use another locale format then the Mollie API (ISO 15897)
  • Fix "Couldn't create * payment", temporarily disable sending the address details to Mollie for fraud detection, payments not allowed if one of the fields is missing
  • 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-beta5
Comparing to
See all releases

Code changes from version 4.0.0-beta4 to 4.0.0-beta5

includes/mollie/wc/helper/settings.php CHANGED
@@ -81,10 +81,40 @@ class Mollie_WC_Helper_Settings
81
  *
82
  * @return string
83
  */
84
- public function getCurrentLocale ()
85
- {
86
- return apply_filters('wpml_current_language', get_locale());
87
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
  /**
90
  * Store customer details at Mollie
81
  *
82
  * @return string
83
  */
84
+ public function getCurrentLocale() {
85
+ $locale = apply_filters( 'wpml_current_language', get_locale() );
86
+
87
+ // TODO: check API changelog to make sure there haven't been changes to this list.
88
+ $valid_locales = array (
89
+ 'en_US',
90
+ 'nl_NL',
91
+ 'nl_BE',
92
+ 'fr_FR',
93
+ 'fr_BE',
94
+ 'de_DE',
95
+ 'de_AT',
96
+ 'de_CH',
97
+ 'es_ES',
98
+ 'ca_ES',
99
+ 'pt_PT',
100
+ 'it_IT',
101
+ 'nb_NO',
102
+ 'sv_SE',
103
+ 'fi_FI',
104
+ 'da_DK',
105
+ 'is_IS',
106
+ 'hu_HU',
107
+ 'pl_PL',
108
+ 'lv_LV',
109
+ 'lt_LT'
110
+ );
111
+
112
+ if ( in_array( $locale, $valid_locales ) ) {
113
+ return $locale;
114
+ }
115
+
116
+ return '';
117
+ }
118
 
119
  /**
120
  * Store customer details at Mollie
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-beta4
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-beta5
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-beta4
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,26 @@ Automatic updates should work like a charm; as always though, ensure you backup
169
 
170
  == Changelog ==
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  = 4.0.0-beta4 - 03-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-beta5
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-beta5 - 03-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
+ * Check that a locale (language code) is supported by Mollie before trying to create a payment
178
+ * Fix "Couldn't create * payment", when other plugins (like WPML) use another locale format then the Mollie API (ISO 15897)
179
+ * Fix "Couldn't create * payment", temporarily disable sending the address details to Mollie for fraud detection, payments not allowed if one of the fields is missing
180
+ * Fix "Call to undefined function get_current_screen()" that can happen on some screens
181
+
182
+ * [Multicurrency support for WooCommerce added](https://www.mollie.com/en/features/multicurrency/)
183
+ * [New payment methods EPS and GiroPay added](https://www.mollie.com/en/news/post/introducing-two-new-payment-methods-eps-and-giropay)
184
+ * Updated payment method logo's (better quality SVG's)
185
+ * Updated Mollie API PHP to 2.0.5
186
+
187
+ * Add support for failed regular payments (already had support for failed renewal payments)
188
+ * In WooCommerce order edit view, add direct link to payment in Mollie Dashboard
189
+ * Add notice to use bank transfer via Mollie, not default BACS gateway
190
+ * Add support for new refunds and chargebacks processing (that are initiated in Mollie Dashboard)
191
+
192
  = 4.0.0-beta4 - 03-07-2018 =
193
 
194
  IMPORTANT