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
active_accountability_merchant-1.97.1 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.97.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.96.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.95.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.94.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.93.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.92.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.91.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.90.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.89.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.88.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.87.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.86.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.85.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.84.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.83.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.82.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.81.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.80.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.79.2 lib/active_merchant/billing/gateways/in_context_paypal_express.rb