#.levankhanh

1 messages · Page 1 of 1 (latest)

quartz falconBOT
fluid oak
#

hi! sounds like the Dashboard display is wrong?

#

or do you think the exchange_rate value the API returns is what's wrong and it should have more 00s in it?

random trout
#

The problem here is that the api returns inconsistent exchange rate data,
if I use different currencies like JPY, EUR

#

I need to use the exchange rate value returned by the stripe api to calculate money

#

@fluid oak Are you still here?

fluid oak
#

when you say it's wrong what do you mean?

#

instead of 0.840103 what value do you think it should have?

#

what code do you use to calculate the amount?

#

4292 (euro cents) x 0.840103 = 3605.72 (gbp pence)
divide by 100 to convert pence to pounds = 36.06 GBP

which is what the Dashboard shows. Not sure what exact issue you're running into.