From bc1c4ffb19bf1a655330f6007364b76a826849a2 Mon Sep 17 00:00:00 2001 From: David Parker Date: Wed, 21 Feb 2024 08:49:52 -0500 Subject: [PATCH] Stripe past-due subs are active --- classes/gateways/class.pmprogateway_stripe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/gateways/class.pmprogateway_stripe.php b/classes/gateways/class.pmprogateway_stripe.php index f18d472c0..8f7bc196b 100644 --- a/classes/gateways/class.pmprogateway_stripe.php +++ b/classes/gateways/class.pmprogateway_stripe.php @@ -2172,7 +2172,7 @@ public function update_subscription_info( $subscription ) { $update_array = array( 'startdate' => date( 'Y-m-d H:i:s', intval( $stripe_subscription->created ) ), ); - if ( in_array( $stripe_subscription->status, array( 'trialing', 'active' ) ) ) { + if ( in_array( $stripe_subscription->status, array( 'trialing', 'active', 'past_due' ) ) ) { // Subscription is active. $update_array['status'] = 'active'; $update_array['next_payment_date'] = date( 'Y-m-d H:i:s', intval( $stripe_subscription->current_period_end ) );