Skip to content

Commit

Permalink
Merge branch 'develop' into update/sources-tokens-to-payment-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
a-danae committed Jul 9, 2024
2 parents 129912e + d5354b2 commit 39f1892
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) );
}

Expand Down

0 comments on commit 39f1892

Please sign in to comment.