v3.2.0 Feature: Add Stripe subscription model to Taboo AI
xmliszt opened this issue · comments
Li Yuxuan commented
ToDos
- Set up Stripe account
- Firebase db model setup with token count for user
- PRO plan subscribe flow
- Downgrade to FREE plan flow ( == Cancel subscription)
- Cancel free trial?
- User delete account will cancel subscriptions as well, but keep customerId (prevent exploit on free trial), reset customerPlanType to 'free'
- Robust Testing
- Better access to Pricing Page
- User can manage the subscription
- Update subscription plan features: FREE: only the latest 1 game result in profile for viewing (Different UI design). PRO: the latest 10 game results in profile for viewing.
Resources:
- https://vercel.com/guides/getting-started-with-nextjs-typescript-stripe
- https://medium.com/@drtechpunk/how-to-set-up-stripe-subscriptions-for-nextjs-13-with-the-app-directory-e36f1df204db
House keeping
- Add firebase cloud functions deployment to the pipeline
- Update Stripe product description for actual
Next Steps - Handle PRO feature flag
- Profile > Latest 1 | 10 game results to display
- AI Mode