lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.85.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.86.0
- old
+ new
@@ -338,11 +338,11 @@
:ponumber => options[:ponumber],
:taxexempt => options[:taxexempt],
:terminaltype => options[:terminaltype],
:ip => options[:ip],
:reference_number => options[:reference_number],
- :recurring => options[:recurring] || 'NO', #DO NOT USE if you are using the periodic billing option.
+ :recurring => options[:recurring] || 'NO', # DO NOT USE if you are using the periodic billing option.
:tdate => options[:tdate]
},
:orderoptions => {
:ordertype => options[:ordertype],
:result => @options[:result]
@@ -432,12 +432,12 @@
# <r_avs></r_avs>
response = {:message => 'Global Error Receipt', :complete => false}
xml = REXML::Document.new("<response>#{xml}</response>")
- xml.root.elements.each do |node|
+ xml.root&.elements&.each do |node|
response[node.name.downcase.sub(/^r_/, '').to_sym] = normalize(node.text)
- end unless xml.root.nil?
+ end
response
end
def format_creditcard_expiry_year(year)