lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.44.0

- old
+ new

@@ -6,11 +6,11 @@ # {Developers Area}[http://www.eway.com.au/developers/api/direct-payments] class EwayGateway < Gateway self.live_url = 'https://www.eway.com.au' self.money_format = :cents - self.supported_countries = ['AU', 'NZ', 'GB'] + self.supported_countries = ['AU'] self.supported_cardtypes = [:visa, :master, :american_express, :diners_club] self.homepage_url = 'http://www.eway.com.au/' self.display_name = 'eWAY' # Public: Create a new Eway Gateway. @@ -132,20 +132,9 @@ end def message_from(message) return '' if message.blank? MESSAGES[message[0,2]] || message - end - - # Make a ruby type out of the response string - def normalize(field) - case field - when "true" then true - when "false" then false - when "" then nil - when "null" then nil - else field - end end def purchase_url(cvn) suffix = test? ? 'xmltest/testpage.asp' : 'xmlpayment.asp' gateway_part = cvn ? 'gateway_cvn' : 'gateway'