You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atoms are best suited for keys (in a map or keyword), as far as I've read.
We'll have to convert these atoms to upcase strings when making requests to the gateway anyways. There's a thread on elixirforum discussing serialisation and atoms.
Though using atom for currency/country code will not increase atom count at great extent. But huge project may consider huge atom count for using library.
Also some gateway are using atoms for keys in the post body creation. So should we use string or atom there.
Currently, we are passing currency as a string
"USD"
in the application config:global_config
.This can be improved to use atoms like
:usd
or something which can be driven and controlled by the library instead of a plane string.The text was updated successfully, but these errors were encountered: