You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Active Merchant
Hi,
I need to translate a numeric currency number, into it's alpha
equivalent (e.g 752 => SEK), in order for my tests to pass for the
DIBS-module I'm working on. Why isn't there a currency list in AM?
I've found the countries list, but it seems to me there should be a
currency list as well. Especially since the Money gem uses the alpha
codes, not the numeric ones...
For now I will just implement a table of my own in my DIBS-module for
the currencies they support, but shouldn't this be in AM itself?
/Jonathan
Cody Fauser
unread,
Oct 17, 2008, 10:31:07 AM10/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to activem...@googlegroups.com
The numeric currency codes are very uncommon for the implemented gateways. I think there is currently only a single ActiveMerchant gateway that needs to perform an alpha to numeric currency code conversion. Also, since each gateway usually only supports a couple of currencies it is easy to just have a small hash of conversions right in the class.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Active Merchant
Hi, I'm new to the Ruby World and some things are confusing for me. I see that in ruby you use symbols pretty much everywhere (:italy, :visa, ...etc) but not for currency codes. Why? Secondly, I assume that Shopify (and other clients) are calling the library will use the 3-letters ISO code for the currency. Is it right?