#ironbeard_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/1232308530774544434
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
heyo ๐
Did this event get renamed or is there something else I should be aware of?
no that event still exist
can you share a PaymentIntent ID (pi_xxx) or Charge ID (ch_xxx) where you didn't receive the webhook event?
in_1P7zgLCoTIfwbn2891jjPG2x is the invoice, which I got the webhook for and created on my end, but I don't have the charge associated with it
let me try to find the charge id
pi_3P80ctCoTIfwbn280x8oZqxz
thanks! give me a few minutes to look into this.
I did get the PaymentIntent webhook (and object created on my side)
here's the charge.succeeded event for that Invoice: https://dashboard.stripe.com/events/evt_3P80ctCoTIfwbn2809T3xo06
and your server returned a 200 status, so it means you did receive that event.
Hmm, good eye
I guess I'll have to dig around my webhook view and see. Thanks for the heads up!
happy to help ๐
So, It's been forever since I wrote this code lol
When I get a charge_succeeded webhook, it looks like my code first uses the Stripe API to retrieve the associated BalanceTransaction and create that on my end, and then creates the Charge object.
Is it possible that a Charge might not have a BalanceTransaction associated with it at the time of the webhook event?
Yeah, looks like it created the BalanceTransaction for the Charge ๐คท
Welp, I resent the event and it worked properly, creating the Charge on my end. ๐คท
Is it possible that a Charge might not have a BalanceTransaction associated with it at the time of the webhook event?
yes that's possible since a recent change: https://docs.stripe.com/upgrades#2024-04-10
you're referring to the automatic_async line?
yes
Thanks, I'll look into that. Have a good one!
Do you know how I can get a list of all charge.succeeded event webhooks that have been sent?
you could use this for events from the last 30 days: https://docs.stripe.com/api/events/list
also possible directly from the dashboard: https://dashboard.stripe.com/test/events
Are you familiar with the new Workbench dashboard? I just signed up for it and I'm able to filter for charge.succeeded events, but the oldest one is April 12, 2023 and I have some going back to Jan 2023
we only store events for 30 days.
so you won't be able to find events older than 30 days in the API or the dashboard
Huh. The Workbench is definitely showing events from e.g. April 12, 2023
here on Discord we are not very familiar with the dashboard, sorry.
yeah, figured it was different teams. All good ๐ Have a great day, I'll be good from here
happy to help ๐