Class: PaymentRecipes::PayPal::REST::Action::ExecutePayment
- Inherits:
-
Utils::Action
- Object
- Utils::Action
- PaymentRecipes::PayPal::REST::Action::ExecutePayment
- 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
#authorization ⇒ Object
16 17 18 19 20 |
# File 'lib/payment_recipes/paypal/rest/action/execute_payment.rb', line 16 def return nil unless payment payment. end |
#perform ⇒ Object
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 |