lib/active_merchant/billing/gateways/forte.rb in activemerchant-1.100.0 vs lib/active_merchant/billing/gateways/forte.rb in activemerchant-1.101.0

- old
+ new

@@ -128,16 +128,12 @@ post[:billing_address][:physical_address][:postal_code] = address[:zip] if address[:zip] post[:billing_address][:physical_address][:region] = address[:state] if address[:state] post[:billing_address][:physical_address][:locality] = address[:city] if address[:city] end - if empty?(post[:billing_address][:first_name]) && payment.first_name - post[:billing_address][:first_name] = payment.first_name - end + post[:billing_address][:first_name] = payment.first_name if empty?(post[:billing_address][:first_name]) && payment.first_name - if empty?(post[:billing_address][:last_name]) && payment.last_name - post[:billing_address][:last_name] = payment.last_name - end + post[:billing_address][:last_name] = payment.last_name if empty?(post[:billing_address][:last_name]) && payment.last_name end def add_shipping_address(post, options) return unless options[:shipping_address] address = options[:shipping_address]