#algert1206_webhooks

1 messages ยท Page 1 of 1 (latest)

worldly sparrowBOT
#

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

tropic furnaceBOT
blissful quiver
#

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.

lost yarrow
blissful quiver
#

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.

lost yarrow
#

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?

blissful quiver
#

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.

lost yarrow
#

Yeah i think checkout.session.completed and checkout.session.async_payment_succeeded should do it. thanks