Module: MuckCommerceCustomFormBuilder
- Defined in:
- lib/muck-commerce/share/muck_custom_form_builder.rb
Instance Method Summary collapse
- #achholder_select(method, options = {}, html_options = {}) ⇒ Object
- #achtype_select(method, options = {}, html_options = {}) ⇒ Object
- #credit_card_type_select(method, options = {}, html_options = {}) ⇒ Object
-
#payment_method_select(method, options = {}, html_options = {}) ⇒ Object
creates a select control with payment options.
Instance Method Details
#achholder_select(method, options = {}, html_options = {}) ⇒ Object
12 13 14 |
# File 'lib/muck-commerce/share/muck_custom_form_builder.rb', line 12 def achholder_select(method, = {}, = {}) self.select(method, MuckCommerce.configuration.achholder_types, .merge(:prompt => "Select ACH Holder", :wrapper_id => 'achholder-types-container'), .merge(:id => 'achholder-types')) end |
#achtype_select(method, options = {}, html_options = {}) ⇒ Object
16 17 18 |
# File 'lib/muck-commerce/share/muck_custom_form_builder.rb', line 16 def achtype_select(method, = {}, = {}) self.select(method, MuckCommerce.configuration.achtypes, .merge(:prompt => "Select ACH Type", :wrapper_id => 'achtypes-container'), .merge(:id => 'achtypes')) end |
#credit_card_type_select(method, options = {}, html_options = {}) ⇒ Object
8 9 10 |
# File 'lib/muck-commerce/share/muck_custom_form_builder.rb', line 8 def credit_card_type_select(method, = {}, = {}) self.select(method, MuckCommerce.configuration.credit_card_types, .merge(:prompt => "Select a credit card", :wrapper_id => 'credit-card-types-container'), .merge(:id => 'credit-card-types')) end |
#payment_method_select(method, options = {}, html_options = {}) ⇒ Object
creates a select control with payment options.
4 5 6 |
# File 'lib/muck-commerce/share/muck_custom_form_builder.rb', line 4 def payment_method_select(method, = {}, = {}) self.select(method, MuckCommerce.configuration.payment_methods, .merge(:wrapper_id => 'payment-options-container'), .merge(:id => 'payment-options')) end |