lib/active_merchant/billing/gateways/element.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/element.rb in activemerchant-1.84.0
- old
+ new
@@ -249,10 +249,10 @@
if root.empty?
root = doc.root.xpath('//Response/*')
end
root.each do |node|
- if (node.elements.empty?)
+ if node.elements.empty?
response[node.name.downcase] = node.text
else
node_name = node.name.downcase
response[node_name] = Hash.new