Method: WepayRails::Helpers::ControllerHelpers#init_preapproval_and_send_user_to_wepay

Defined in:
lib/helpers/controller_helpers.rb

#init_preapproval_and_send_user_to_wepay(params, access_token = nil) ⇒ Object



110
111
112
113
# File 'lib/helpers/controller_helpers.rb', line 110

def init_preapproval_and_send_user_to_wepay(params, access_token=nil)
  record = init_preapproval(params, access_token)
  redirect_to record.preapproval_uri and return record
end