[GH-ISSUE #289] [FEATURE] Clerk Subscription model and billing #540

Closed
opened 2026-03-13 20:49:35 +03:00 by kerem · 2 comments
Owner
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
kerem 2026-03-13 20:49:35 +03:00
Author
Owner

@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

<!-- gh-comment-id:3396289212 --> @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
Author
Owner

@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

<!-- gh-comment-id:3401658594 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#540
No description provided.