#Yurii
1 messages · Page 1 of 1 (latest)
hi! you can't get the exchange rate before a charge really. That API is private/only some merchants have access to it.
You can get the exchange rate after a payment by looking at https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-exchange_rate
But I want to prevent these types of errors:
"Amount must convert to at least 50 cents. €0.46 converts to approximately $0.48."
So, before a Charge, verify amount, and if that is too small prevent it. Is that not possible?
best way would be to redesign how you take the payments so you can transfer more if possible , or you can check some external service for current exchange rates(which won't be the same as Stripe uses, but gives you an idea)
in general Stripe does not have great support for 'micropayments' like that
okay, got it, last question, just to confirm
Stripe has https://dashboard.stripe.com/currency_conversion
Its not available via API?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
no it is not