Sha256: 28182bf70898c5734d3d71fb30dbff006936df7ca039b2ac46dc7aa84512a4e9

Contents?: true

Size: 510 Bytes

Versions: 64

Compression:

Stored size: 510 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

64 entries across 64 versions & 2 rubygems

Version Path
activemerchant-1.114.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.113.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.112.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.111.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.110.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.109.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.108.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.107.4 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.107.3 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.107.2 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.107.1 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.106.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.105.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.104.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.103.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.102.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.101.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.100.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.99.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.98.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb