Class: Devise::PaypalAuthableController

Inherits:
ApplicationController
  • Object
show all
Includes:
Controllers::InternalHelpers, DevisePaypal::Controllers::InternalHelpers, Paypal::Authentication
Defined in:
app/controllers/devise/paypal_authable_controller.rb

Instance Method Summary collapse

Instance Method Details

#callback_actionObject

GET /resource/paypal_authable/callback



14
15
16
17
# File 'app/controllers/devise/paypal_authable_controller.rb', line 14

def callback_action
  paypal_user_details = get_auth_details(params[:token]) if params[:token]
  handle_callback_action(paypal_user_details)
end

#newObject

GET /resource/paypal_authorize_without_permissions



8
9
10
11
# File 'app/controllers/devise/paypal_authable_controller.rb', line 8

def new
  callback_url = paypal_authable_callback_uri
  redirect_to authenticate_with_paypal_url(callback_url)
end