Class: Walletone::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/walletone/form.rb

Instance Method Summary collapse

Instance Method Details

#checkout_urlObject



7
8
9
# File 'lib/walletone/form.rb', line 7

def checkout_url
  Walletone.config.web_checkout_url
end

#hidden_fields_tagsObject



11
12
13
14
15
16
# File 'lib/walletone/form.rb', line 11

def hidden_fields_tags
  payment.as_list.map do |field|
    key, value = field
    hidden_field_tag(key, value)
  end.join
end

#optionsObject

Рекомендуемые опции



19
20
21
# File 'lib/walletone/form.rb', line 19

def options
  { authenticity_token: false, enforce_utf8: false }
end