lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.55.0 vs lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.56.0

- old
+ new

@@ -12,10 +12,11 @@ self.homepage_url = 'http://www.cardstream.com/' self.display_name = 'CardStream' CURRENCY_CODES = { "AUD" => '036', + "BRL" => '986', "CAD" => '124', "CZK" => '203', "DKK" => '208', "HKD" => '344', "ICK" => '352', @@ -130,10 +131,10 @@ private def add_amount(post, money, options) add_pair(post, :amount, amount(money), :required => true) - add_pair(post, :currencyCode, currency_code(options[:currency] || currency(money)) || currency_code(self.default_currency)) + add_pair(post, :currencyCode, currency_code(options[:currency] || currency(money))) end def add_customer_data(post, options) add_pair(post, :customerEmail, options[:email]) if (address = options[:billing_address] || options[:address])