diff --git a/includes/compat/class-wc-stripe-subscriptions-legacy-sepa-token-update.php b/includes/compat/class-wc-stripe-subscriptions-legacy-sepa-token-update.php index a3d65b89e..b294942ae 100644 --- a/includes/compat/class-wc-stripe-subscriptions-legacy-sepa-token-update.php +++ b/includes/compat/class-wc-stripe-subscriptions-legacy-sepa-token-update.php @@ -124,7 +124,7 @@ private function set_subscription_updated_payment_method( WC_Subscription $subsc $source_id = $subscription->get_meta( self::SOURCE_ID_META_KEY ); // Bail out if the subscription is already using a pm_. - if ( 0 === strpos( $source_id, 'src_' ) ) { + if ( 0 !== strpos( $source_id, 'src_' ) ) { throw new \Exception( sprintf( 'The subscription is not using a Stripe Source for renewals.', $subscription->get_id() ) ); }