"Plans" seems deprecated now (2022) -in Stripe's Restricted API Key ressources- and you should use "Prices" instead (see docs).
Thanks a lot for this article. Spot-on! 😀
Awesome post, gr8 job.
but as I am going through it need to use these imports in firebaseClient.tsx to be more compatible with v9
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
Hi,
Congrats, your work is great!
If you have some time, I have a question : how is managed the unsubscribing of the premium user? For example, if its credit card expires, next payment will be rejected. How your application will be notified and the role attribute "premium" will be removed for the user?
Thanks
Thanks for the tutorial! I am trying to build a simple SaaS product with NextJs as well. I wasn't sure how to structure my data using firebase as it is different compare to traditional table db. Can I pick your mind on this?
It is a restaurant menu app, paid user can create merchant, merchant has many categories, categories have many items. The key is to allow paid user to easily manage their shop inventory.
Normal user able to leave a review for the restaurant or fav a dish and show in their profile page.
How should I go with that? Thanks!
Josef
Hi! This article seems great! I have a client side rendered react site att the moment and would like to add auth and subscriptions like this. Do I need to upgrade my project to Next.js? If so, why? Thank you.