Module: Payments::ViewHelpers

Defined in:
lib/payments_pl/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#transaction_hidden_fields(transaction) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/payments_pl/view_helpers.rb', line 3

def transaction_hidden_fields(transaction)
  html = ""

  %w(pos_id pos_auth_key pay_type session_id amount desc
  order_id desc2 trs_desc first_name last_name street street_hn
  street_an city post_code country email phone language client_ip
  js payback_login sig ts
  ).each do |field|
    value = transaction.send(field)
    html << hidden_field_tag(field, value) unless value.blank?
  end

  html
end