Method: ActiveMerchant::Billing::PaypalCommonAPI#authorize_transaction

Defined in:
lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb

#authorize_transaction(transaction_id, money, options = {}) ⇒ Object

DoAuthorization takes the transaction_id returned when you call DoExpressCheckoutPayment with a PaymentAction of ‘Order’. When you did that, you created an order authorization subject to settlement with PayPal DoAuthorization and DoCapture

Parameters:

  • :transaction_id – The ID returned by DoExpressCheckoutPayment with a PaymentAction of ‘Order’.

  • :money – The amount of money to be authorized for this purchase.


263
264
265
# File 'lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb', line 263

def authorize_transaction(transaction_id, money, options = {})
  commit 'DoAuthorization', build_do_authorize(transaction_id, money, options)
end