Skip to content

Commit

Permalink
Merge pull request #2855 from dparker1005/past_due-is-active-sub
Browse files Browse the repository at this point in the history
Stripe past-due subs are active
  • Loading branch information
ideadude authored Feb 21, 2024
2 parents 71fc08f + bc1c4ff commit 5b07999
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 5b07999

Please sign in to comment.