Skip to content

Overhaul Free Plan with Stripe-Based 'X'-Day Trial System and Subscription Flow Enhancements#160

Merged
Ashad001 merged 4 commits intoFireBird-Technologies:mainfrom
Ashad001:refactor/paid-plan
Jun 23, 2025
Merged

Overhaul Free Plan with Stripe-Based 'X'-Day Trial System and Subscription Flow Enhancements#160
Ashad001 merged 4 commits intoFireBird-Technologies:mainfrom
Ashad001:refactor/paid-plan

Conversation

@Ashad001
Copy link
Contributor

This pull request replaces the previous free plan with a robust X-day (to be changed later) trial system backed by Stripe's manual payment capture. The goal is to create a more controlled and secure subscription flow, simplify credit handling, and fully automate the transition between trial, active, and canceled states using Stripe webhooks and Redis.


What This PR Achieves:

  • Removes the free plan and replaces it with a x-day trial that requires a valid payment method up front.
  • Implements Stripe’s manual capture system to charge users only after the trial ends.
  • Automates credit allocation and reset logic based on user actions (signup, trial end, cancellation).
  • Strengthens backend reliability by shifting all billing logic to Stripe webhooks and ensuring Redis stays the single source of truth.
  • Aligns frontend UI and state with the new subscription logic, including trial indicators, credit status, and cancellation behavior.
  • Improves maintainability with better environment configuration, security upgrades, and documentation.

Key Changes:

Frontend:

  • Enhanced /account page to:

    • Reflect trial and subscription states.
    • Trigger credit updates via events.
    • Handle trial-based cancellations properly.
  • Credit UI updated to reflect new billing logic (no more free plan credits).

Configuration + Codebase Hygiene:

  • .env-template: Added NODE_ENV, updated ADMIN_API_KEY.
  • .gitignore: Excluded scripts/ for cleanliness.

Outcome:

This update strengthens the revenue model, improves billing transparency, prevents abuse of the free tier, and sets the foundation for a scalable, automated trial-to-paid flow.

@Ashad001 Ashad001 added enhancement New feature or request refactoring labels Jun 23, 2025
@Ashad001 Ashad001 merged commit fcf96fa into FireBird-Technologies:main Jun 23, 2025
1 check passed
ArslanS1997 pushed a commit that referenced this pull request Mar 17, 2026
Overhaul Free Plan with Stripe-Based 'X'-Day Trial System and Subscription Flow Enhancements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant