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

[15.x] Clear the generic trial upon subscription creation #1628

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

driesvints
Copy link
Member

These code changes will make sure a billable's generic trial is cleared when they start their subscription. As soon as a customer starts their subscription there's no need for the trial to continue since they have started paying. We also already do this in Spark Stripe.

@taylorotwell taylorotwell merged commit 735ca3c into 15.x Jan 6, 2024
7 checks passed
@taylorotwell taylorotwell deleted the clear-generic-trial branch January 6, 2024 17:01
@AntonioDiPassio-AppSys
Copy link

Why does the generic trial need to be cleared? Would it not be better to check if the generic trial has expired, and if not set the end date to now()?
This still ensures there is no ongoing trial when a subscription is started, and at the same time you don't lose the information about when the trial ended.
Because I would still like to know from when to when my clients were on trial before they started their first subscription.

@driesvints
Copy link
Member Author

When a subscription starts, there's no need for a generic trial anymore because they've effectively started paying for the subscription. Previously, the customer still had the generic trial applied, making it appear as if they were still trialing, while in reality they already started the subscription.

The column in the database is really to note if a customer is currently trialing generically. After the subscription started it doesn't serves any purpose anymore. If you need this date for activity purposes we suggest you keep the info in an activity log somewhere.

@AntonioDiPassio-AppSys
Copy link

Setting the end date of the trial instead of clearing it would achieve the same result: Customer isn't on trial anymore.
On top of that, it would be more accurate as the customer did end his trial the moment he started a subscription.
Clearing the end date would make it appear as if the customer never had a trial in the first place.

@driesvints
Copy link
Member Author

Right now we're not making any changes here. I'm sorry if this disrupted you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants