Class Index [+]

Quicksearch

ActiveMerchant::Billing::PaypalExpressCommon

Public Class Methods

included(base) click to toggle source
   # File lib/active_merchant/billing/gateways/paypal_express_common.rb, line 4
4:       def self.included(base)
5:         base.cattr_accessor :test_redirect_url
6:         base.cattr_accessor :live_redirect_url
7:         base.live_redirect_url = 'https://www.paypal.com/cgibin/webscr'
8:       end

Public Instance Methods

redirect_url() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal_express_common.rb, line 10
10:       def redirect_url
11:         test? ? test_redirect_url : live_redirect_url
12:       end
redirect_url_for(token, options = {}) click to toggle source
    # File lib/active_merchant/billing/gateways/paypal_express_common.rb, line 14
14:       def redirect_url_for(token, options = {})
15:         options = {:review => true, :mobile => false}.update(options)
16: 
17:         cmd  = options[:mobile] ? '_express-checkout-mobile' : '_express-checkout'
18:         url  = "#{redirect_url}?cmd=#{cmd}&token=#{token}"
19:         url += '&useraction=commit' unless options[:review]
20: 
21:         url
22:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.