lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.106.0

- old
+ new

@@ -69,11 +69,11 @@ raise ArgumentError.new('Missing eWay required parameters: address or billing_address') unless options.has_key?(:address) or options.has_key?(:billing_address) end def add_creditcard(post, creditcard) post[:CardNumber] = creditcard.number - post[:CardExpiryMonth] = sprintf('%.2i', creditcard.month) + post[:CardExpiryMonth] = sprintf('%.2i', creditcard.month) post[:CardExpiryYear] = sprintf('%.4i', creditcard.year)[-2..-1] post[:CustomerFirstName] = creditcard.first_name post[:CustomerLastName] = creditcard.last_name post[:CardHoldersName] = creditcard.name @@ -112,11 +112,11 @@ response = parse(raw_response) Response.new(success?(response), message_from(response[:ewaytrxnerror]), response, - :authorization => response[:ewaytrxnnumber], - :test => test? + authorization: response[:ewaytrxnnumber], + test: test? ) end def success?(response) response[:ewaytrxnstatus] == 'True'