lib/opay/helpers/payu_helper.rb in opay-1.0.5 vs lib/opay/helpers/payu_helper.rb in opay-1.0.6
- old
+ new
@@ -31,10 +31,10 @@
options[:pay_type] = 't' if Opay.config.test_mode
options[:ts] = Time.now.to_i.to_s
options[:sig] = Providers::Payu.create_form_sig(options)
fields = options.map { |key, val| @template.hidden_field_tag(key, val) }.join("\n")
- js = "<script type=\"text/javascript\"><!-- document.forms['payu_payment_form_#{object.id}'].js.value = 1; --></script>".html_safe
+ js = "<script type=\"text/javascript\">document.forms['payu_payment_form_#{object.id}'].js.value = 1;</script>"
"#{fields}\n#{js}".html_safe
end
end