#erreci_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253587778600570903
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! I'm sorry but i don't understand, can you explain more about what you're trying to achieve and the problem you're having?
yes sorry, i m using webhooks to handle all recurring payments from our clients, mainly i'm using customer.subscription.updated event to handle everu changes in subscription, but I was not able to intercept the past_due or other failed payments problems
can you help me to understand how to get these info in the weebhooks? do i have to add different events in webhook list?
You'll probably want to listen for the invoice.payment_failed event. You might find this guide helpful for subscription webhooks in general : https://docs.stripe.com/billing/subscriptions/webhooks
ok, i will take a look to doc and ill try to add this event ant test it. thx . ps do you have some example code to simplify my life? ๐
php or python...
what example code are you looking for? Without knowing what you're trying to do, it's difficult for me to point you to the right examples / docs
we talked about failed payments and invoice.payment.failed so the simple code to handle this argument
simple code to handle what exactly? For example, are you trying to understand how to determine that this is an invoice.payment.failed event in your webhooks code?
yes
https://docs.stripe.com/webhooks/quickstart - you can see how we determine the event type