Method: ActiveMerchant::Billing::PaypalExpressGateway#setup_purchase

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

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

[View source] [View on GitHub]

41
42
43
44
45
# File 'lib/active_merchant/billing/gateways/paypal_express.rb', line 41

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

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