Module: Paybox::System::Rails::Helpers

Defined in:
lib/paybox_system/rails/helpers.rb

Instance Method Summary collapse

Instance Method Details

#paybox_hidden_fields(opts = {}) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/paybox_system/rails/helpers.rb', line 21

def paybox_hidden_fields(opts = {})
  out = ""
  formatted_options = Paybox::System::Base.hash_form_fields_from(opts)

  formatted_options.each do |o, v|
    out << hidden_field_tag(o, Rack::Utils.escape(v))
    out << "\n"
  end

  out.html_safe
end