S
S
Sergey Semenko2017-05-08 22:10:32
Database
Sergey Semenko, 2017-05-08 22:10:32

How to work with different currencies when replenishing an account?

There is an application with an internal account. Now the only currency in the system is rubles. It is necessary to introduce several more currencies (dollars, euros, hryvnias...) to simplify the work with the service for users from different countries.
I have only one thought about this: leave one currency in the system, and the client part will simply display the value obtained based on the exchange rate. But in this case, when replenishing the account (Yandex Kassa is used), rubles will be visible to everyone. How critical is this and how best to do it?
Well, the main problem with this approach is a change in the exchange rate, and as a result, a dynamic change in the amounts of payments made, which can mislead the user.
Maybe someone has a ready-made structure for the database or recommendations for working with currency on the server?
Any advice would be greatly appreciated, thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Trakhimenok, 2017-05-08
@astec

It is better to open accounts in specific currencies and specify the currency for the transaction.
Whether one user can have several accounts in different currencies or only 1 is up to you.
I'm in the debt tracking app https://DebtsTracker.io/ suggesting a default currency based on country/language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question