Module: MuckCommerceCustomFormBuilder

Defined in:
lib/muck-commerce/share/muck_custom_form_builder.rb

Instance Method Summary collapse

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, options = {}, html_options = {})
  self.select(method, MuckCommerce.configuration.achholder_types, options.merge(:prompt => "Select ACH Holder", :wrapper_id => 'achholder-types-container'), html_options.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, options = {}, html_options = {})
  self.select(method, MuckCommerce.configuration.achtypes, options.merge(:prompt => "Select ACH Type", :wrapper_id => 'achtypes-container'), html_options.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, options = {}, html_options = {})
  self.select(method, MuckCommerce.configuration.credit_card_types, options.merge(:prompt => "Select a credit card", :wrapper_id => 'credit-card-types-container'), html_options.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, options = {}, html_options = {})
  self.select(method, MuckCommerce.configuration.payment_methods, options.merge(:wrapper_id => 'payment-options-container'), html_options.merge(:id => 'payment-options'))
end