Skip to content

Commit

Permalink
Merge pull request #560 from mollie/MOL-419
Browse files Browse the repository at this point in the history
remove unneded metada causing error
  • Loading branch information
mmaymo authored Jul 13, 2021
2 parents d6ff6d7 + e525761 commit e9e85dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Mollie/WC/Gateway/AbstractSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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
Expand Down

0 comments on commit e9e85dc

Please sign in to comment.