diff --git a/src/Subscriptions/SubscriptionsModule.php b/src/Subscriptions/SubscriptionsModule.php index c86d4552..d1ddd8a9 100644 --- a/src/Subscriptions/SubscriptionsModule.php +++ b/src/Subscriptions/SubscriptionsModule.php @@ -138,6 +138,11 @@ public function complement_subscription_by_payment( $payment ) { * @return void */ public function payment_status_update( $payment ) { + // Payment method changes do not affect the subscription status. + if ( 'subscription_payment_method_change' === $payment->get_source() ) { + return; + } + foreach ( $payment->get_subscriptions() as $subscription ) { // Status. $status_before = $subscription->get_status();