#eskimo_dev

1 messages · Page 1 of 1 (latest)

worthy pebbleBOT
limpid vapor
#

The balance transaction object is the one that has the conversion rate, if you retrieve or expand the ID from that field you should be able to see the exchange rate that you got for that specific transaction https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-exchange_rate

#

I think Charge objects themselves will only ever show presentment currency

sinful maple
#

ahh ok, balance transaction will work, thanks

#

one more question though

#

if there's a refund or partial refund, will balance transaction show that?

limpid vapor
#

I don't see a differentiation between full and partial at that level so I assume they would both be of type refund. If you test in test mode it will show the right behavior

sinful maple
#

yeah but i mean specifically from the charge object

#

there's the amount_refunded variable

limpid vapor
sinful maple
limpid vapor
#

I think you would create a refund based on the Charge's presentment currency. So you'd need to do the conversion from your settlement currency if you are only looking to refund a specific amount of your funds rather than a specific amount of what the customer paid

sinful maple
#

I mean, we do everything in USD, a customer bought in CAD and didn't use his coupon code, so we want to refund $100 USD

#

The stripe dashboard says to enter a CAD amount so I'm trying to figure out if I can do it on my custom crm in USD so my employees don't have to do a conversion

limpid vapor
#

Gotcha, I think you can use the exchange rate that you got on the initial payment but I will double check that and get back to you.

sinful maple
#

Np, just trying to make things as easy as possible for my employees

limpid vapor
#

If you reach out to our support team and ask about getting the exchange rate before making refunds like this they may be able to help you https://support.stripe.com/?contact=true

sinful maple
#

But when I refund with the api is it in the customers currency or mine

limpid vapor
#

Customer's currency, the presentment currency on the charge

sinful maple
#

Ok so I'll just use the conversion rate on the charge then if it's there

limpid vapor
#

So because you are refunding in CAD, you'd need to know the USD->CAD exchange rate to know how much to refund to refund $100 USD

sinful maple
#

Np

limpid vapor
#

Gotcha, that may be close to the current rate. Like I said our support team may be able to help you get this programmatically though I am not 100% clear on that. Up to you what effort it is worth

sinful maple
#

Yeah I'm not super concerned about a few cent difference tbh

#

Using the original rate is probably better so when calculating the net after the refunds I can use the same rate for each