#algert1206_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/1216748795958919310
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ I believe I've seen at least one payment method (can't recall exactly which one offhand) where the Balance Transaction wasn't immediately available.
Ok, are there any other webhook events i could use to reliably get the balance_transaction of a completed checkout session?
Hm, any chance you're asking about this because you found problematic behavior during your testing that I could take a closer look at?
Offhand, I'm thinking listening to checkout.session.completed as well as checkout.session.async_payment_succeeded would cover everything. But I may be able to give a better answer if I can see exactly what the concern is.
No i havent encountered any issues I just wanted to make sure that i wont have issues during production. So you think those 2 events will always catch the balance transaction?
I think they will, but would strongly recommend testing your flows to be sure.
There is another pair of Events that I'm pretty sure would contain a reference to the Balance Transaction, but they're based on the lower-order Charge and Payment Intent objects so you would need to step up the chain of related objects to get back to the Checkout Session or its ID.
The ones coming to mind are the charge.succeeded or payment_intent.succeeded events.
Yeah i think checkout.session.completed and checkout.session.async_payment_succeeded should do it. thanks