Hello, I am following the guide here https://youtu.be/Wdyndb17K58 for integrating stripe. However the video is about a free/pro subscription. Does anyone have experience modifying the example provided to handle multiple tiers with usage limits ? I am not sure what tables I might need or how to handle the relations.
I currently have a user table which tracks the usage as well as which plan the user is on, and a subscription table which links the user id with the stripe customer id as well as a few other data regarding the subscription.
I am not sure at which point of the process I should update tiers and/or in which table to handle them.
Stripe is genuinely painful to use in 2025, the amount of edge cases and webhooks you have to deal with is insane. I've been through it, so I thought I'd document my learnings.