Skip to content

feat(billing): extend free trial from 7 to 14 days - #319

Merged
gkhngyk merged 1 commit into
mainfrom
feature/extend-trial-14-days
Jun 29, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/extend-trial-14-days

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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-level trial_period_days overrides 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 feature

How to test

  1. In Stripe test mode, run a checkout through the onboarding plan step.
  2. The created subscription should show status = trialing with trial_end ≈ now + 14 days (no charge until then).
  3. Onboarding copy and the docs read "14-day free trial".

Notes

  • Before merge/deploy, confirm the trial behaves as expected with a real test-mode checkout (Stripe is the source of truth for the actual trial window).
  • Optional housekeeping: if a 7-day default trial is configured on the Stripe Price/Product, align it to 14 for dashboard consistency — it doesn't affect behavior (the session value wins).

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_days to 14.
  • 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.

@mintlify

mintlify Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ansvisor 🟢 Ready View Preview Jun 29, 2026, 1:49 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@gkhngyk
gkhngyk merged commit 8e7ff92 into main Jun 29, 2026
6 checks passed
@gkhngyk
gkhngyk deleted the feature/extend-trial-14-days branch June 29, 2026 18:46
@gkhngyk gkhngyk mentioned this pull request Jul 6, 2026
5 tasks done

This branch was successfully deployed

1 active deployment
staging - docs — 6cb17b26 Deployed Jun 29, 2026 by mintlify[bot]
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.

2 participants