Method: ActiveMerchant::Billing::PaypalExpressGateway#purchase

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

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

[View source] [View on GitHub]

57
58
59
60
61
# File 'lib/active_merchant/billing/gateways/paypal_express.rb', line 57

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

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