Method: ActiveMerchant::Billing::PaypalExpressGateway#authorize

Defined in:
lib/active_merchant/billing/gateways/paypal_express.rb

#authorize(money, options = {}) ⇒ Object


51
52
53
54
55
# File 'lib/active_merchant/billing/gateways/paypal_express.rb', line 51

def authorize(money, options = {})
  requires!(options, :token, :payer_id)

  commit 'DoExpressCheckoutPayment', build_sale_or_authorization_request('Authorization', money, options)
end