lib/active_merchant/billing/gateways/nmi.rb in swiss-activemerchant-1.0.2 vs lib/active_merchant/billing/gateways/nmi.rb in swiss-activemerchant-1.0.4

- old
+ new

@@ -221,11 +221,10 @@ end def add_customer_data(post, options) post[:email] = options[:email] post[:ipaddress] = options[:ip] - post[:customer_id] = options[:customer_id] || options[:customer] if (billing_address = options[:billing_address] || options[:address]) post[:company] = billing_address[:company] post[:address1] = billing_address[:address1] post[:address2] = billing_address[:address2] @@ -246,10 +245,10 @@ post[:shipping_zip] = shipping_address[:zip] post[:shipping_phone] = shipping_address[:phone] end if (descriptor = options[:descriptors]) - post[:descriptor] = descriptor[:descriptor] + post[:descriptor] = options[:descriptor] post[:descriptor_phone] = descriptor[:descriptor_phone] post[:descriptor_address] = descriptor[:descriptor_address] post[:descriptor_city] = descriptor[:descriptor_city] post[:descriptor_state] = descriptor[:descriptor_state] post[:descriptor_postal] = descriptor[:descriptor_postal]