Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PaypalExpressGateway

Public Instance Methods

authorize(money, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paypal_express.rb, line 32
def authorize(money, options = {})
  requires!(options, :token, :payer_id)

  commit 'DoExpressCheckoutPayment', build_sale_or_authorization_request('Authorization', money, options)
end
details_for(token) click to toggle source
# File lib/active_merchant/billing/gateways/paypal_express.rb, line 28
def details_for(token)
  commit 'GetExpressCheckoutDetails', build_get_details_request(token)
end
purchase(money, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paypal_express.rb, line 38
def purchase(money, options = {})
  requires!(options, :token, :payer_id)
  
  commit 'DoExpressCheckoutPayment', build_sale_or_authorization_request('Sale', money, options)
end
setup_authorization(money, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paypal_express.rb, line 16
def setup_authorization(money, options = {})
  requires!(options, :return_url, :cancel_return_url)
  
  commit 'SetExpressCheckout', build_setup_request('Authorization', money, options)
end
setup_purchase(money, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paypal_express.rb, line 22
def setup_purchase(money, options = {})
  requires!(options, :return_url, :cancel_return_url)
  
  commit 'SetExpressCheckout', build_setup_request('Sale', money, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.