#calebr

1 messages · Page 1 of 1 (latest)

plain hamletBOT
fringe shoal
next lantern
#

Okay, thanks. Is there any way in the API to get the exchange rate for a particular payment_intent at the time of the transaction? I'm looking at pi_2NKHE253soKKKIrd13KhQDcv in the dashboard, and there's an exchange rate displayed there, but it doesn't appear to be on the object that I get back from retrieving the payment_intent programmatically.

fringe shoal
#

See that for all the things Balance Transactions account for, I mean.

next lantern
#

So as far as the process goes, the exchange rate is set when the balance transaction moves the money from our platform account to the destination account?

fringe shoal
#

Let me have a look...

next lantern
#

Sorry, our current process assumes that the exchange rate is set at the time of the transaction, since that's how our other payment integration works (our clients are currently split between Stripe and another processor, Spreedly), so I'm trying to understand how it works here. We're ending up with discrepancies between the amount that we record for the transaction in our software, and the amount that our clients are receiving in the payout.

fringe shoal
#

In this scenario I believe there would be two currency conversions, one for the amount settling on the destination account and another for the fee settling on your platform account (assuming neither account has a bank account in this currency).

next lantern
#

So the exchange rate is settling in the last step on that chart on each side?

fringe shoal
#

I think so, but honestly I'm not an expert on currency conversions. You should be able to tell on your end by fetching all of the associated Balance Transactions.

next lantern
#

Okay, thanks. Is there any way to have the conversion take place on the paymentintent before any of the other processing?

plain hamletBOT
fringe shoal
next lantern
#

Thanks. For the destination charge flow, what webhook event should we listen for that would indicate that the charge has settled and we can get the balance transaction object to set the amount and exchange rate? I don't see one specific to balance transactions shown on https://stripe.com/docs/api/events/types

fringe wyvern
#

I don't think you need to wait for the balance to be available to inspect this, it should be available on the balance transaction of the transfer after that's created

next lantern
#

Right, but how can we know from a webhook when that happens?

fringe wyvern
#

If you want to look at the exchange rate on the transfer balance transaction, probably you want to do that on transfer.created events