Class: Devise::PaypalAuthableController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Devise::PaypalAuthableController
- Includes:
- Controllers::InternalHelpers, DevisePaypal::Controllers::InternalHelpers, Paypal::Authentication
- Defined in:
- app/controllers/devise/paypal_authable_controller.rb
Instance Method Summary collapse
-
#callback_action ⇒ Object
GET /resource/paypal_authable/callback.
-
#new ⇒ Object
GET /resource/paypal_authorize_without_permissions.
Instance Method Details
#callback_action ⇒ Object
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 |
#new ⇒ Object
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 |