lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.87.0
- old
+ new
@@ -80,11 +80,11 @@
error = errors_hash['Error']
if error.kind_of?(Hash)
response[:error_message] = error['ErrorDescription']
response[:error_codes] = error['ErrorCode']
elsif error.kind_of?(Array)
- error_str = error.map { |e| e['ErrorDescription']}.join('. ')
- error_codes = error.map { |e| e['ErrorCode']}.join(', ')
+ error_str = error.map { |e| e['ErrorDescription'] }.join('. ')
+ error_codes = error.map { |e| e['ErrorCode'] }.join(', ')
response[:error_message] = "#{error_str}."
response[:error_codes] = error_codes
end
end