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

- old
+ new

@@ -133,12 +133,10 @@ REXML::XPath.first(response, '//decision').text == 'ACCEPTED' rescue false end def message_from(response) REXML::XPath.each(response, '//detail') do |detail| - if detail.is_a?(REXML::Element) && detail.elements['tag'].text == 'InternalResponseDescription' - return detail.elements['value'].text - end + return detail.elements['value'].text if detail.is_a?(REXML::Element) && detail.elements['tag'].text == 'InternalResponseDescription' end nil end def authorization_from(response)