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

- old
+ new

@@ -99,16 +99,12 @@ alias_method :unstore, :delete private def add_customer_data(post, options) - if options.has_key? :email - post[:email] = options[:email] - end + post[:email] = options[:email] if options.has_key? :email - if options.has_key? :ip - post[:ipaddress] = options[:ip] - end + post[:ipaddress] = options[:ip] if options.has_key? :ip end def add_address(post, creditcard, options) if address = options[:billing_address] || options[:address] post[:address1] = address[:address1].to_s