Refactor subscription active check for Stripe
This commit is contained in:
parent
7aca4930db
commit
6b21dc132d
@ -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…
x
Reference in New Issue
Block a user