Skip to content

Commit

Permalink
Stripe past-due subs are active
Browse files Browse the repository at this point in the history
  • Loading branch information
dparker1005 committed Feb 21, 2024
1 parent f8824af commit bc1c4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/gateways/class.pmprogateway_stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit bc1c4ff

Please sign in to comment.