mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[GH-ISSUE #289] [FEATURE] Clerk Subscription model and billing #540
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#540
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AJaySi on GitHub (Oct 12, 2025).
Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/289
Originally assigned to: @AJaySi, @Om-Singh1808 on GitHub.
https://clerk.com/docs/react/guides/billing/for-b2c
https://clerk.com/docs/guides/development/custom-flows/billing/checkout-new-payment-method
https://clerk.com/docs/react/guides/development/webhooks/billing
@AJaySi commented on GitHub (Oct 13, 2025):
I am still thinking of keeping our home grown subscription model and also use clerk as payment gateway.
I have pushed code for subscription and ALwrity will prompt you to choose one.
User Flow Now:
New User:
Landing → Sign In → /pricing ✅
Subscribe → /onboarding ✅
Complete → /dashboard ✅
Existing User (with subscription):
Sign In → /dashboard (skip pricing) ✅
Existing User (no subscription):
Sign In → /pricing (must subscribe first) ✅
Subscribe → Check onboarding status
If onboarding complete → /dashboard
If onboarding incomplete → /onboarding
@AJaySi commented on GitHub (Oct 14, 2025):
Current Flow (Fixed)
User visits landing page → Can browse without signing in
User clicks "Get Started" → Clerk sign-in modal opens
After sign-in → Redirected to / (RootRoute)
RootRoute detects signed-in user → Redirects to InitialRouteHandler
InitialRouteHandler checks subscription → If no subscription, redirects to /pricing
After subscription setup → initializeOnboarding() is called → Routes to onboarding/dashboard