Class: Devise::PaypalPermissionsAuthableController

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

Instance Method Summary collapse

Instance Method Details

#callback_actionObject

GET /resource/paypal_permissions_authable/callback



15
16
17
18
# File 'app/controllers/devise/paypal_permissions_authable_controller.rb', line 15

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

#newObject

GET /resource/paypal_authorize_with_permissions



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

def new
  @permissions ||= {}
  callback_url = paypal_permissions_authable_callback_uri
  redirect_to set_paypal_permissions_url(callback_url, @permissions)
end