Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Document hasExpiredTrial #7942

Merged
merged 9 commits into from
May 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update billing.md
  • Loading branch information
driesvints authored May 17, 2022
commit 0e620617620fd16dde0429be883ca8ac9351b6a7
10 changes: 10 additions & 0 deletions billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,16 @@ You may use the `endTrial` method to immediately end a subscription trial:

$user->subscription('default')->endTrial();

To check if an existing trial has expired, you may use the `hasExpiredTrial` methods:

if ($user->hasExpiredTrial('default')) {
//
}

if ($user->subscription('default')->hasExpiredTrial()) {
//
}

<a name="defining-trial-days-in-stripe-cashier"></a>
#### Defining Trial Days In Stripe / Cashier

Expand Down