Module: SallieMaeHelper

Defined in:
app/helpers/sallie_mae_helper.rb

Instance Method Summary collapse

Instance Method Details

#sallie_mae_button(payment, options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/helpers/sallie_mae_helper.rb', line 2

def sallie_mae_button(payment,options={})
  options[:hide_form] = true
  options[:student_firstname] = false
  options[:student_lastname] = false
  options[:student_email] = false
  options[:account] = false
  options[:line_items] = false
  sallie_mae_form(payment,options)
end

#sallie_mae_form(payment, options = {}) ⇒ Object



12
13
14
15
16
# File 'app/helpers/sallie_mae_helper.rb', line 12

def sallie_mae_form(payment,options={})
  options[:button_label] ||= "Make a Payment"
  options[:legend_text] ||= ""
  render 'sallie_mae/sallie_mae_form', payment: payment, options: options
end