#hugo-tessera_api

1 messages ยท Page 1 of 1 (latest)

kindred relicBOT
#

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

wide kettle
#

Here is the flow:

  1. Customer purchase item from my frontend
  2. The checkout.session.confimed event is received in my backend
  3. I proceess this message then use the following code to retrive payment intent:
    But the return object from stripe is like this:
rose shard
#

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)

Learn how to use Asynchronous Capture to enable faster PaymentIntent confirmations.

Keep track of changes and upgrades to the Stripe API.

#

I'd recommend listening to charge.updated event, then retrieve the balance transaction

wide kettle
#

I see
So you suggestion is that I should wait for the charge.updated event then call for the balance breakdown

rose shard
#

Yes, that's right!

wide kettle
#

ok got it

#

thanks

rose shard
#

No problem! Happy to help ๐Ÿ˜„

wide kettle
#

I will try taht