From e525761bd050107cdcfc1d2e8b532038e264aebf Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 13 Jul 2021 11:10:28 +0200 Subject: [PATCH] remove unneded metada causing error --- src/Mollie/WC/Gateway/AbstractSubscription.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Mollie/WC/Gateway/AbstractSubscription.php b/src/Mollie/WC/Gateway/AbstractSubscription.php index 20a073348..0d2bfaba8 100644 --- a/src/Mollie/WC/Gateway/AbstractSubscription.php +++ b/src/Mollie/WC/Gateway/AbstractSubscription.php @@ -210,8 +210,6 @@ public function scheduled_subscription_payment( $renewal_total, WC_Order $renewa $subscriptions = wcs_get_subscriptions_for_renewal_order( $renewal_order->get_id() ); $subscription = array_pop( $subscriptions ); // Just need one valid subscription $subscription_mollie_payment_id = $subscription->get_meta( '_mollie_payment_id' ); - $subcriptionParentOrder = $subscription->get_parent(); - $mandateId = isset($subcriptionParentOrder)? $subcriptionParentOrder->get_meta('_mollie_mandate_id') : null; if ( ! empty( $subscription_mollie_payment_id ) && ! empty( $subscription ) ) { $customer_id = $this->restore_mollie_customer_id_and_mandate( $customer_id, $subscription_mollie_payment_id, $subscription ); @@ -227,7 +225,6 @@ public function scheduled_subscription_payment( $renewal_total, WC_Order $renewa try { do_action(Mollie_WC_Plugin::PLUGIN_ID . '_create_payment', $data, $renewal_order); - $payment = null; $mollieApiClient = Mollie_WC_Plugin::getApiHelper()->getApiClient($test_mode); $validMandate = false; try