lib/wirecard_sepa/utils/template.rb in wirecard_sepa-0.1.1 vs lib/wirecard_sepa/utils/template.rb in wirecard_sepa-0.1.2
- old
+ new
@@ -1,5 +1,7 @@
+require 'rexml/text'
+
module WirecardSepa
module Utils
class Template
attr_reader :request
@@ -14,10 +16,10 @@
private
def request_params
params_without_custom_fields.each_with_object({}) do |(k,v), h|
- h["{{#{k.upcase}}}"] = v
+ h["{{#{k.upcase}}}"] = REXML::Text.new(v.to_s)
end.merge('{{CUSTOM_FIELDS}}' => custom_fields_xml)
end
def params_without_custom_fields
request.params.reject { |k,_| k == :custom_fields }