Refactor subscription active check for Stripe
This commit is contained in:
parent
7aca4930db
commit
6b21dc132d
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ function isSubscriptionActive()
|
||||||
// return $subscription->paddle_status === 'active';
|
// return $subscription->paddle_status === 'active';
|
||||||
// }
|
// }
|
||||||
if (isStripe()) {
|
if (isStripe()) {
|
||||||
return $subscription->stripe_invoice_paid === true && $subscription->stripe_cancel_at_period_end === false;
|
return $subscription->stripe_invoice_paid === true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue