Class: PaymentRecipes::PayPal::REST::Action::ExecutePayment

Inherits:
Utils::Action
  • Object
show all
Defined in:
lib/payment_recipes/paypal/rest/action/execute_payment.rb

Instance Method Summary collapse

Methods inherited from Utils::Action

#debug, debug, #ensure_presence, #execute, #failure?, #get, #initialize, #make_instance_variables_available, prepare, rules, #set, #store, #stored_variables, #success?, variable

Constructor Details

This class inherits a constructor from PaymentRecipes::Utils::Action

Instance Method Details

#authorizationObject



16
17
18
19
20
# File 'lib/payment_recipes/paypal/rest/action/execute_payment.rb', line 16

def authorization
  return nil unless payment

  payment.authorization
end

#performObject



9
10
11
12
13
14
# File 'lib/payment_recipes/paypal/rest/action/execute_payment.rb', line 9

def perform
  @payment.raw_payment.execute( :payer_id => payer_id )
  @payment.reload!

  @payment
end