Method: ActiveMerchant::Billing::PaypalExpressGateway#setup_authorization

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

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


35
36
37
38
39
# File 'lib/active_merchant/billing/gateways/paypal_express.rb', line 35

def setup_authorization(money, options = {})
  requires!(options, :return_url, :cancel_return_url)

  commit 'SetExpressCheckout', build_setup_request('Authorization', money, options)
end