lib/active_merchant/billing/gateways/first_giving.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/first_giving.rb in activemerchant-1.104.0

- old
+ new

@@ -47,11 +47,11 @@ post[:billToEmail] = (options[:email] || 'activemerchant@example.com') post[:remoteAddr] = (options[:ip] || '127.0.0.1') end def add_address(post, options) - if(billing_address = (options[:billing_address] || options[:address])) + if (billing_address = (options[:billing_address] || options[:address])) post[:billToAddressLine1] = billing_address[:address1] post[:billToCity] = billing_address[:city] post[:billToState] = billing_address[:state] post[:billToZip] = billing_address[:zip] post[:billToCountry] = billing_address[:country] @@ -81,9 +81,10 @@ element.attributes.each do |name, attribute| response[name] = attribute.content end element.children.each do |child| next if child.text? + response[child.name] = child.text end response end