lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.54.0 vs lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.55.0

- old
+ new

@@ -55,11 +55,10 @@ address = options[:billing_address] || options[:address] return if address.nil? post[:company] = address[:company] - # groups all names after the first into the last name param - post[:first_name], post[:last_name] = address[:name].split(' ', 2) + post[:first_name], post[:last_name] = split_names(address[:name]) post[:address] = "#{address[:address1]}, #{address[:address2]}" post[:city] = address[:city] post[:country] = address[:country] post[:mobile] = address[:phone] # API only has a "mobile" field, no "phone" end