Sha256: 2f1eec4424206c85f868213f7f4fa42476d02967428524bd23d014243dda4475

Contents?: true

Size: 512 Bytes

Versions: 21

Compression:

Stored size: 512 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class InContextPaypalExpressGateway < PaypalExpressGateway
      self.test_redirect_url = 'https://www.sandbox.paypal.com/checkoutnow'
      self.live_redirect_url = 'https://www.paypal.com/checkoutnow'

      def redirect_url_for(token, options = {})
        options = { review: true }.update(options)
        url  = "#{redirect_url}?token=#{token}"
        url += '&useraction=commit' unless options[:review]
        url
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
swiss-activemerchant-1.0.6 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.137.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.133.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.131.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.130.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.129.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.126.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb