#arian_webhooks

1 messages · Page 1 of 1 (latest)

glacial veldtBOT
#

👋 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.

pale crater
#

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.

blazing zodiac
pale crater
#

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.

blazing zodiac
#

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).