#hugo-tessera_api
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/1238010320929423381
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here is the flow:
- Customer purchase item from my frontend
- The
checkout.session.confimedevent is received in my backend - I proceess this message then use the following code to retrive payment intent:
But the return object from stripe is like this:
With API version in 2024-04-10 that your request https://dashboard.stripe.com/test/logs/req_Aek9m8j8y24g5P used, the capture method has been default to automatic_async: https://stripe.com/docs/upgrades#2024-04-10
The balance transaction is expected to be null until the capture is successful: https://docs.stripe.com/payments/payment-intents/asynchronous-capture#opt-in-async-capture
For all payments, the balance_transaction is null on the following objects.
balance_transaction will only be present after charge.updated event is sent: https://docs.stripe.com/payments/payment-intents/asynchronous-capture#listen-webhooks
Your req_Aek9m8j8y24g5P (2024-05-09 03:07:14 UTC) was made before charge.updated event https://dashboard.stripe.com/test/events/evt_3PENK8E5UBpIwTsb1JraCsSc sent (2024-05-09 03:07:16 UTC)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I'd recommend listening to charge.updated event, then retrieve the balance transaction
I see
So you suggestion is that I should wait for the charge.updated event then call for the balance breakdown
Yes, that's right!
No problem! Happy to help ๐
I will try taht