#marenthyu
1 messages ยท Page 1 of 1 (latest)
Hi there, can you share with me the PaymentIntent ID?
Anyway you can get the exchange information (https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-exchange_rate) from the balance transaction that associate with the charge object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm on my phone right now, so here's a screenshot until i can fetch it in copy pase
Sorry, I can't fetch it from the dashboard right now as my MFA key doesn't work on mobile. ๐
That is what I am using, for now, but it feels a bit awkward to check "that way around".
Basically, I want to make sure it is the intended way to gather that info
I agree that balance_transaction is a bit indirect, but I'd use the same way to retrieve the informatin.
Okay, wonderful!
And just confirming: I can expect this info to be available/populated by the time i receive a checkout complete event, correct?
It depends
If the checkout session is using async capture (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method), the balance_transaction may be null. Read (https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async) for more details