| Class | ActiveMerchant::Billing::PaypalExpressGateway |
| In: |
lib/active_merchant/billing/gateways/paypal_express.rb
|
| Parent: | Gateway |
# 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
# 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
# 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
# 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