lib/active_merchant/billing/gateways/s5.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/s5.rb in activemerchant-1.80.0
- old
+ new
@@ -78,11 +78,11 @@
commit(request)
end
def store(payment, options = {})
request = build_xml_request do |xml|
- xml.Payment(code: SUPPORTED_TRANSACTIONS["store"])
+ xml.Payment(code: SUPPORTED_TRANSACTIONS['store'])
add_account(xml, payment)
add_customer(xml, payment, options)
add_recurrence_mode(xml, options)
end
@@ -172,23 +172,23 @@
end
end
def add_recurrence_mode(xml, options)
if options[:recurring] == true
- xml.Recurrence(mode: "REPEATED")
+ xml.Recurrence(mode: 'REPEATED')
else
- xml.Recurrence(mode: "INITIAL")
+ xml.Recurrence(mode: 'INITIAL')
end
end
def parse(body)
results = {}
xml = Nokogiri::XML(body)
- resp = xml.xpath("//Response/Transaction/Identification")
+ resp = xml.xpath('//Response/Transaction/Identification')
resp.children.each do |element|
results[element.name.downcase.to_sym] = element.text
end
- resp = xml.xpath("//Response/Transaction/Processing")
+ resp = xml.xpath('//Response/Transaction/Processing')
resp.children.each do |element|
results[element.name.downcase.to_sym] = element.text
end
results
end