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

- old
+ new

@@ -131,13 +131,13 @@ end end def refund(amount, authorization, options={}) response = if auth_was_for_cim?(authorization) - cim_refund(amount, authorization, options) - else - normal_refund(amount, authorization, options) + cim_refund(amount, authorization, options) + else + normal_refund(amount, authorization, options) end return response if response.success? return response unless options[:force_full_refund_if_unsettled] @@ -197,11 +197,11 @@ delete_customer_profile(customer_profile_id) end def verify_credentials - response = commit(:verify_credentials) { } + response = commit(:verify_credentials) {} response.success? end def supports_scrubbing? true @@ -392,11 +392,11 @@ add_credit_card(xml, source, action) end end def camel_case_lower(key) - String(key).split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join + String(key).split('_').inject([]) { |buffer, e| buffer.push(buffer.empty? ? e : e.capitalize) }.join end def add_settings(xml, source, options) xml.transactionSettings do if options[:recurring] @@ -592,12 +592,12 @@ address = options[:shipping_address] || options[:address] return unless address xml.send(root_node) do first_name, last_name = if address[:name] - split_names(address[:name]) - else - [address[:first_name], address[:last_name]] + split_names(address[:name]) + else + [address[:first_name], address[:last_name]] end full_address = "#{address[:address1]} #{address[:address2]}".strip xml.firstName(truncate(first_name, 50)) unless empty?(first_name) xml.lastName(truncate(last_name, 50)) unless empty?(last_name)