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

- old
+ new

@@ -244,12 +244,10 @@ doc = Nokogiri::XML(xml) doc.remove_namespaces! root = doc.root.xpath('//response/*') - if root.empty? - root = doc.root.xpath('//Response/*') - end + root = doc.root.xpath('//Response/*') if root.empty? root.each do |node| if node.elements.empty? response[node.name.downcase] = node.text else