#bruce-zhang_subscription-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/1218230834184851486
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- bruce-zhang_webhooks, 1 day ago, 24 messages
- bruce-zhang_api, 1 day ago, 15 messages
Can you clarify what you mean by Is webhook able to listen and handle this recurrent charging?
Yes, there are webhooks that you can listen for to know when a subscription has been renewed, but you shouldn't need to do anything extra to trigger the renewal/recurrent charge
For example, if a user has a monthly charging subscription. The user subscribed on Feb 15th. At that time the webhook listened to the successful subscription event and created a subscription entry on my database. Then, there will be a charge today to renew the subscription, and stripe will handle this for me. What I want to know is that once the renew is success, will stripe sends an event to my webhook?
Yes, when that renewal is successfully paid for you'll get an invoice.paid event
If you try it out in test mode with test clocks you can see all the events that come in yourself
ok
Beside invoice.paid event, will any other subscription related events sent to webhook?
Yeah, as I said the best way to get a feel for this is to try this out yourself and see all the events come in. There's a LOT of subscription related event (which we talk about at https://docs.stripe.com/billing/subscriptions/webhooks#events)
cool I will try
will stripe return an subscription that has start time and end time? For example, if the plan is monthly, will stripe returns a subscription information that has start time of today and end time of a monthy later?
Yes, you can find that on the Subscription object as current-Period_start and current_period_end
thanks