We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b96d116 commit cfccc0bCopy full SHA for cfccc0b
1 file changed
src/Subscriptions/SubscriptionsModule.php
@@ -138,6 +138,11 @@ public function complement_subscription_by_payment( $payment ) {
138
* @return void
139
*/
140
public function payment_status_update( $payment ) {
141
+ // Payment method changes do not affect the subscription status.
142
+ if ( 'subscription_payment_method_change' === $payment->get_source() ) {
143
+ return;
144
+ }
145
+
146
foreach ( $payment->get_subscriptions() as $subscription ) {
147
// Status.
148
$status_before = $subscription->get_status();
0 commit comments