#bp_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/1221644671776985219
đ 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.
- bp_api, 3 days ago, 17 messages
I'd recommend checking the Subscription Webhook guides for the events to use for different scenarios: https://docs.stripe.com/billing/subscriptions/webhooks
I am wondering if this is the best way to go for listening for events;
customer.subscription.createdfor new subscriptionscustomer.subscription.updatedfor if they upgrade or downgradeinvoice.payment_succeeded- I was thinking we would use this to listen for normal renewals at the end of each billing period but this event fires on all payments
I have but I am still confused. Does customer.subscription.updated fire on normal renewals? So if I had a standard plan, and it renews at the end of the month, will that webhook be sent again?
customer.subscription.createdevent is for newly created subscription, but it doesn't mean that the payment has been made.invoice.paidevent should be tracked as well.customer.subscription.updatedevent is recommended to be used for upgrading and downgrading. This event will also be sent for every cycle renewal. I'd recommend usingdata.previous_attributesin the event to check whether this is a cycle renewal or upgrading/downgrading: https://docs.stripe.com/api/events/object#event_object-data-previous_attributesinvoice.paidevent is recommended for renewal: https://docs.stripe.com/billing/subscriptions/webhooks#active-subscriptions
Okay thank you