lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/eway.rb in activemerchant-1.116.0
- old
+ new
@@ -36,11 +36,11 @@
post[:CustomerEmail] = options[:email]
commit(purchase_url(post[:CVN]), money, post)
end
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
post = {}
add_customer_id(post)
add_amount(post, money)
add_non_optional_data(post)
@@ -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) || options.has_key?(:billing_address)
end
def add_creditcard(post, creditcard)
post[:CardNumber] = creditcard.number
post[:CardExpiryMonth] = sprintf('%.2i', creditcard.month)
@@ -113,11 +113,10 @@
Response.new(success?(response),
message_from(response[:ewaytrxnerror]),
response,
authorization: response[:ewaytrxnnumber],
- test: test?
- )
+ test: test?)
end
def success?(response)
response[:ewaytrxnstatus] == 'True'
end