#bongowilliams
1 messages · Page 1 of 1 (latest)
here's an example event received via the webhook: evt_3NOYoh2XVptw46Sq1aWXpiZA
Hi there, you can check the balance_transaction (https://stripe.com/docs/api/charges/object?lang=node#charge_object-balance_transaction) of the payment_intent's latest charge to see the converted amount in AUD.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is that information passed in the payment_intent.succeeded webhook or do i need to make another api call to retrieve the base currency of the transaction?
The information is not available in the payment_intent.succeeded event. A separate API request is required
okay thanks, and is the charge id I need to look up the charge_object in the webhook data?
Yes! You can find the charge ID in latest_charge of the Payment Intent object: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
thanks!