This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use "subscription.status" instead of trial_end. (#231)
The trial_end field returned by stripe is always non-zero if there was a trial, ever. This means trial_end is not reset after any transition out of trialing. Also, account for canceled_at status. This means lookup phases will now automatically add a cancel phase to the pseudo phases, effective at canceled_at. If there is a cancel_at and the subscription is yet to be canceled, then use that as the start of the cancel phase, but mark it as not current.
- Loading branch information
Showing
2 changed files
with
86 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters