1
votes

I'm using Stripe's payments API with their Java library. Our Stripe account is denominated in EUR.

If we charge a customer an amount in USD, and the charge is successful, the charge is credited to our account in the EUR equivalent.

How can we use the Stripe API to find out this EUR amount immediately after the order was successful?

1

1 Answers

1
votes

You need to retrieve the balance_transaction associated with the charge, using the charge's balance_transaction attribute.

The converted amount will be available in the balance_transaction's amount attribute.