Class ActiveMerchant::Billing::PaypalExpressGateway
In: lib/active_merchant/billing/gateways/paypal_express.rb
Parent: Gateway

Methods

Included Modules

PaypalCommonAPI PaypalExpressCommon

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/paypal_express.rb, line 32
32:       def authorize(money, options = {})
33:         requires!(options, :token, :payer_id)
34:       
35:         commit 'DoExpressCheckoutPayment', build_sale_or_authorization_request('Authorization', money, options)
36:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal_express.rb, line 28
28:       def details_for(token)
29:         commit 'GetExpressCheckoutDetails', build_get_details_request(token)
30:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal_express.rb, line 38
38:       def purchase(money, options = {})
39:         requires!(options, :token, :payer_id)
40:         
41:         commit 'DoExpressCheckoutPayment', build_sale_or_authorization_request('Sale', money, options)
42:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal_express.rb, line 16
16:       def setup_authorization(money, options = {})
17:         requires!(options, :return_url, :cancel_return_url)
18:         
19:         commit 'SetExpressCheckout', build_setup_request('Authorization', money, options)
20:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal_express.rb, line 22
22:       def setup_purchase(money, options = {})
23:         requires!(options, :return_url, :cancel_return_url)
24:         
25:         commit 'SetExpressCheckout', build_setup_request('Sale', money, options)
26:       end

[Validate]