Class: Walletone::Form
- Inherits:
-
Object
- Object
- Walletone::Form
- Defined in:
- lib/walletone/form.rb
Instance Method Summary collapse
- #checkout_url ⇒ Object
- #hidden_fields_tags ⇒ Object
-
#options ⇒ Object
Рекомендуемые опции.
Instance Method Details
#checkout_url ⇒ Object
7 8 9 |
# File 'lib/walletone/form.rb', line 7 def checkout_url Walletone.config.web_checkout_url end |
#hidden_fields_tags ⇒ Object
11 12 13 14 15 16 |
# File 'lib/walletone/form.rb', line 11 def payment.as_list.map do |field| key, value = field hidden_field_tag(key, value) end.join end |
#options ⇒ Object
Рекомендуемые опции
19 20 21 |
# File 'lib/walletone/form.rb', line 19 def { authenticity_token: false, enforce_utf8: false } end |