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

- old
+ new

@@ -127,16 +127,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, address, prefix='') prefix +='_' unless prefix.blank? unless address.blank? or address.values.blank?