lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.102.0
- old
+ new
@@ -395,10 +395,10 @@
def parse(xml)
reply = {}
xml = REXML::Document.new(xml)
if (root = REXML::XPath.first(xml, '//CardDetailsTransactionResponse')) or
- (root = REXML::XPath.first(xml, '//CrossReferenceTransactionResponse'))
+ (root = REXML::XPath.first(xml, '//CrossReferenceTransactionResponse'))
root.elements.to_a.each do |node|
case node.name
when 'Message'
reply[:message] = reply(node.text)
else