Module: AbnAmro::Internetkassa::Helpers

Defined in:
lib/abn-amro/internetkassa/helpers.rb

Instance Method Summary collapse

Instance Method Details

#internetkassa_form_tag(internetkassa_instance, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/abn-amro/internetkassa/helpers.rb', line 4

def internetkassa_form_tag(internetkassa_instance, &block)
  form_tag(AbnAmro::Internetkassa.service_url) do
    result = internetkassa_instance.data.map { |name, value| hidden_field_tag(name, value, :id => nil) }
    result << capture(&block) if block_given?
    "\n#{result.join("\n")}\n"
  end
end