lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.102.0

- old
+ new

@@ -68,10 +68,10 @@ def requires_address!(options) 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[:CardNumber] = creditcard.number 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