module SolidusPaypalBraintree::CountryMapper
Constants
- CANADA_VARIANTS
- COUNTRY_MAP
Generates a hash mapping each variant of the country name to the same ISO ie: { “usa” => “US”, “united states” => “US”, “canada” => “CA”, … }
- USA_VARIANTS
Public Instance Methods
iso_from_name(country_name)
click to toggle source
# File lib/solidus_paypal_braintree/country_mapper.rb, line 32 def iso_from_name(country_name) COUNTRY_MAP[country_name.downcase.strip] end