Repository navigation
feat(billing): extend free trial from 7 to 14 days - #319
Merged
Merged
Conversation
Set the Stripe checkout subscription trial to 14 days and update the matching copy (onboarding plan step + docs). Forward-only: existing trials keep their original window. No DB / migration changes.
There was a problem hiding this comment.
Pull request overview
This PR updates the Stripe Checkout subscription trial duration for new cloud checkouts from 7 days to 14 days, and aligns user-facing onboarding and documentation copy to match the new trial length.
Changes:
- Updated Stripe Checkout session creation to set
subscription_data.trial_period_daysto14. - Updated onboarding plan-selection step copy to say “14-day free trial”.
- Updated docs to reflect a 14-day free trial and “no charge until day 15” messaging.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| web/src/app/api/stripe/checkout/route.ts | Changes Stripe Checkout subscription trial from 7 to 14 days for new sessions. |
| web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsx | Updates onboarding plan step copy to reflect the 14-day trial. |
| docs/quickstart.mdx | Updates quickstart copy to reflect the 14-day trial. |
| docs/guides/add-your-first-brand.mdx | Updates onboarding/checkout guide copy to reflect the 14-day trial and billing timing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the free trial from 7 to 14 days.
The trial length is set entirely in the Stripe Checkout session (
subscription_data.trial_period_days); there's no DB field and no migration. This change is forward-only — existing/active trials keep the window they were created with; only new checkouts get 14 days. The session-leveltrial_period_daysoverrides any Price-level default, so no Stripe dashboard change is required.Changes
web/src/app/api/stripe/checkout/route.ts—trial_period_days: 7 → 14(the only functional change).web/.../dashboard/onboarding/page.tsx— plan step copy: "Start with a 14-day free trial."docs/quickstart.mdx— "All paid plans include a 14-day free trial."docs/guides/add-your-first-brand.mdx— "14-day free trial — no charge until day 15."(The remaining "last 7 days" / "7-day delta" strings are analytics windows, unrelated to the trial, and were left untouched.)
Type of change
feat— New featureHow to test
status = trialingwithtrial_end≈ now + 14 days (no charge until then).Notes
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)