Answer the question
In order to leave comments, you need to log in
How to specify in which currency the payment was made?
Do you think it would be better to store an additional field in the document indicating the code of the currency in which the payment was made:
{
"price": 20.52,
"cuurency": "USD"
}
Answer the question
In order to leave comments, you need to log in
Miscellaneous fields
So that you can count without parsing your string '$10' or '10 USD' or '10 bucks' Use standard
currency codes
Options:
Use one currency
Create a separate list of currencies
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question