lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.80.0

- old
+ new

@@ -149,11 +149,11 @@ end # Private: Build XML wrapping code yielding to code to fill the transaction information def build_request builder = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') do |xml| - xml.Request(:version => "1.0") do + xml.Request(:version => '1.0') do xml.Header { xml.Security(:sender => @options[:sender_id]) } xml.Transaction(:mode => test? ? 'CONNECTOR_TEST' : 'LIVE', :response => 'SYNC', :channel => @options[:channel_id]) do xml.User(:login => @options[:login], :pwd => @options[:pwd]) yield xml end @@ -227,13 +227,13 @@ # Private: Parse XML response from Monei servers def parse(body) xml = Nokogiri::XML(body) { - :unique_id => xml.xpath("//Response/Transaction/Identification/UniqueID").text, - :status => translate_status_code(xml.xpath("//Response/Transaction/Processing/Status/@code").text), - :reason => translate_status_code(xml.xpath("//Response/Transaction/Processing/Reason/@code").text), - :message => xml.xpath("//Response/Transaction/Processing/Return").text + :unique_id => xml.xpath('//Response/Transaction/Identification/UniqueID').text, + :status => translate_status_code(xml.xpath('//Response/Transaction/Processing/Status/@code').text), + :reason => translate_status_code(xml.xpath('//Response/Transaction/Processing/Reason/@code').text), + :message => xml.xpath('//Response/Transaction/Processing/Return').text } end # Private: Send XML transaction to Monei servers and create AM response def commit(xml)