#arian_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240103810056061050
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
To add on, for every billing cycle, a new "Subscription" document gets created at the start, and this occurs on the invoice.paid event. So, due to the invoice.paid event being delayed, there is a duration of time between billing cycles where the user does not have a subscription.
hello! https://docs.stripe.com/billing/subscriptions/webhooks#active-subscriptions - you might want to take a look at this guide, in our docs we recommend that you add some "buffer" to access the subscription for leeway
so, when I create my Subscription document (or whatever I use to track subscriptions), I should add an extra 2-3 days to the end date?
I currently use the subscription's current_period_start, and current_period_end properties to set the subscription duration.
so, when I create my Subscription document (or whatever I use to track subscriptions), I should add an extra 2-3 days to the end date
Your webhook endpoint updates the customer’s access expiration date in your database to the appropriate date in the future (plus a day or two for leeway).