#brookflok_webhooks

1 messages ยท Page 1 of 1 (latest)

hybrid furnaceBOT
#

๐Ÿ‘‹ 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/1369594476288540684

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

shut vector
#

Hi, let me help you with this.

grave merlin
#

I had no room to explain better my question but it is simple :

If I follow the customer.subscription.updated and update user subscription based on the update it does to my trial user, can I ignore customer.subscription.deleted so I don't have 2 webhooks doing the same thing

shut vector
#

I don't think a customer.subscription.updated Event is created when a Subscription is cancelled. I would recommend listening to both event types just to be sure. You just need to make sure that it's not an issue if multiple events arrive at the same time.

grave merlin
#

Oh I think I understand now, the customer.subscription.updated will tell me if the user activated and if the user payment is past_due but and when Stripe tries all payment retry attempts and fails it will put the subscription to canceled and it will send then customer.subscription.deleted ?

#

I was thinking that customer.subscription.updated always gets called when the subscription object is updated

grave merlin
#

Muy bien

#

that is all I needed

#

Wanted to have it all clear before starting to implement ๐Ÿ˜„

hybrid furnaceBOT