Version Description
13-07-2021 =
Fix - Unneeded metadata causing error
Download this release
Release Info
| Developer | carmen222 |
| Plugin | |
| Version | 6.5.2 |
| Comparing to | |
| See all releases | |
Code changes from version 6.5.1 to 6.5.2
mollie-payments-for-woocommerce.php
CHANGED
|
@@ -3,16 +3,16 @@
|
|
| 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: 6.5.
|
| 7 |
* Author: Mollie
|
| 8 |
* Author URI: https://www.mollie.com
|
| 9 |
* Requires at least: 5.0
|
| 10 |
-
* Tested up to: 5.
|
| 11 |
* Text Domain: mollie-payments-for-woocommerce
|
| 12 |
* Domain Path: /languages
|
| 13 |
* License: GPLv2 or later
|
| 14 |
* WC requires at least: 3.0
|
| 15 |
-
* WC tested up to: 5.
|
| 16 |
* Requires PHP: 7.2
|
| 17 |
*/
|
| 18 |
|
| 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: 6.5.2
|
| 7 |
* Author: Mollie
|
| 8 |
* Author URI: https://www.mollie.com
|
| 9 |
* Requires at least: 5.0
|
| 10 |
+
* Tested up to: 5.8
|
| 11 |
* Text Domain: mollie-payments-for-woocommerce
|
| 12 |
* Domain Path: /languages
|
| 13 |
* License: GPLv2 or later
|
| 14 |
* WC requires at least: 3.0
|
| 15 |
+
* WC tested up to: 5.5
|
| 16 |
* Requires PHP: 7.2
|
| 17 |
*/
|
| 18 |
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: daanvm, danielhuesken, davdebcom, dinamiko, inpsyde, l.vangunst, ndijkstra, robin-mollie, wido, carmen222
|
| 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.
|
| 6 |
-
Stable tag: 6.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 |
= 6.5.1 - 12-07-2021 =
|
| 185 |
|
| 186 |
* Fix - Subscription renewal failing
|
| 2 |
Contributors: daanvm, danielhuesken, davdebcom, dinamiko, inpsyde, l.vangunst, ndijkstra, robin-mollie, wido, carmen222
|
| 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.8
|
| 6 |
+
Stable tag: 6.5.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 |
+
= 6.5.2 - 13-07-2021 =
|
| 185 |
+
|
| 186 |
+
* Fix - Unneeded metadata causing error
|
| 187 |
+
|
| 188 |
= 6.5.1 - 12-07-2021 =
|
| 189 |
|
| 190 |
* Fix - Subscription renewal failing
|
src/Mollie/WC/Gateway/AbstractSubscription.php
CHANGED
|
@@ -210,8 +210,6 @@ abstract class Mollie_WC_Gateway_AbstractSubscription extends Mollie_WC_Gateway_
|
|
| 210 |
$subscriptions = wcs_get_subscriptions_for_renewal_order( $renewal_order->get_id() );
|
| 211 |
$subscription = array_pop( $subscriptions ); // Just need one valid subscription
|
| 212 |
$subscription_mollie_payment_id = $subscription->get_meta( '_mollie_payment_id' );
|
| 213 |
-
$subcriptionParentOrder = $subscription->get_parent();
|
| 214 |
-
$mandateId = isset($subcriptionParentOrder)? $subcriptionParentOrder->get_meta('_mollie_mandate_id') : null;
|
| 215 |
|
| 216 |
if ( ! empty( $subscription_mollie_payment_id ) && ! empty( $subscription ) ) {
|
| 217 |
$customer_id = $this->restore_mollie_customer_id_and_mandate( $customer_id, $subscription_mollie_payment_id, $subscription );
|
|
@@ -227,7 +225,6 @@ abstract class Mollie_WC_Gateway_AbstractSubscription extends Mollie_WC_Gateway_
|
|
| 227 |
try
|
| 228 |
{
|
| 229 |
do_action(Mollie_WC_Plugin::PLUGIN_ID . '_create_payment', $data, $renewal_order);
|
| 230 |
-
$payment = null;
|
| 231 |
$mollieApiClient = Mollie_WC_Plugin::getApiHelper()->getApiClient($test_mode);
|
| 232 |
$validMandate = false;
|
| 233 |
try
|
| 210 |
$subscriptions = wcs_get_subscriptions_for_renewal_order( $renewal_order->get_id() );
|
| 211 |
$subscription = array_pop( $subscriptions ); // Just need one valid subscription
|
| 212 |
$subscription_mollie_payment_id = $subscription->get_meta( '_mollie_payment_id' );
|
|
|
|
|
|
|
| 213 |
|
| 214 |
if ( ! empty( $subscription_mollie_payment_id ) && ! empty( $subscription ) ) {
|
| 215 |
$customer_id = $this->restore_mollie_customer_id_and_mandate( $customer_id, $subscription_mollie_payment_id, $subscription );
|
| 225 |
try
|
| 226 |
{
|
| 227 |
do_action(Mollie_WC_Plugin::PLUGIN_ID . '_create_payment', $data, $renewal_order);
|
|
|
|
| 228 |
$mollieApiClient = Mollie_WC_Plugin::getApiHelper()->getApiClient($test_mode);
|
| 229 |
$validMandate = false;
|
| 230 |
try
|
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 = '6.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 = '6.5.2';
|
| 12 |
|
| 13 |
const DB_VERSION = '1.0';
|
| 14 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
