lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.87.0

- old
+ new

@@ -64,11 +64,11 @@ end private 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)) + 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) @@ -143,10 +143,10 @@ xml.to_s end def message_from(message) return '' if message.blank? - MESSAGES[message[0,2]] || message + MESSAGES[message[0, 2]] || message end def purchase_url(cvn) suffix = test? ? 'xmltest/testpage.asp' : 'xmlpayment.asp' gateway_part = cvn ? 'gateway_cvn' : 'gateway'