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.60.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.59.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.58.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb
activemerchant-1.57.0 lib/active_merchant/billing/gateways/in_context_paypal_express.rb