#hannes_api

1 messages ¡ Page 1 of 1 (latest)

charred wolfBOT
#

👋 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/1292859649296433182

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

zinc skiff
#

Hello

#

Taking a look at that Checkout Session

#

Do you have an example of a Card Checkout Session where the same thing happened?

patent vector
#

If you look at the event evt_1Q78q9HbxJ4j3MARZiyyMiRy , you can also see that the first delivery failed and the second one succeeded

patent vector
zinc skiff
#

Ah hold on

#

This is likely due to you upgrading your API Version at some point recently

#

And thus getting the newer automatic_async capture method default

patent vector
#

Oh interesting. I do remember I upgraded it, and I might have overlooked that in the changelog

zinc skiff
#

PaymentIntents now has automatic_async as the default capture method when capture method is not specified during PaymentIntents creation. For more information about async capture, view the asynchronous capture guide.

#

This is a good thing because it reduces latency

#

However if you want the balance transaction to be avialable immediately then you need to set payment_intent_data.capture_method: 'automatic' when you create your Checkout Session

patent vector
#

Ah, that makes sense. I do remember I read about it but dismissed it as I did not think it was applicable to checkout sessions, too.

#

I will read the docs on that and either set that value or improve our handling logic. That was quick, thanks a lot!

zinc skiff
#

Sure thing!

patent vector
#

Yes, after skimming through the docs, that indeed seems to be the issue. Have a great day!