Refactor subscription active check for Stripe

This commit is contained in:
Andras Bacsai 2024-04-01 09:40:39 +02:00
parent 7aca4930db
commit 6b21dc132d

View File

@ -66,7 +66,7 @@ function isSubscriptionActive()
// return $subscription->paddle_status === 'active';
// }
if (isStripe()) {
return $subscription->stripe_invoice_paid === true && $subscription->stripe_cancel_at_period_end === false;
return $subscription->stripe_invoice_paid === true;
}
return false;
}