lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.87.0

- old
+ new

@@ -138,11 +138,11 @@ end private def clean_description(description) - description.to_s.slice(0,32).encode('US-ASCII', invalid: :replace, undef: :replace, replace: '?') + description.to_s.slice(0, 32).encode('US-ASCII', invalid: :replace, undef: :replace, replace: '?') end def prepare_options_hash(options) result = @options.merge(options) setup_address_hash!(result) @@ -341,10 +341,10 @@ if info = status.elements['Info'] message << info.text end status.elements.to_a.each do |node| - if (node.elements.size == 0) + if node.elements.size == 0 response[node.name.to_sym] = (node.text || '').strip else node.elements.each do |childnode| name = "#{node.name}_#{childnode.name}" response[name.to_sym] = (childnode.text || '').strip