Sha256: d3331d26960fce7d41b61be39c0df018bdb305de6108209814870dc47b2b2d18
Contents?: true
Size: 1.07 KB
Versions: 7
Compression:
Stored size: 1.07 KB
Contents
require 'active_merchant/billing/integrations/paypal/helper.rb' require 'active_merchant/billing/integrations/paypal/notification.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Paypal # Overwrite this if you want to change the Paypal test url mattr_accessor :test_url self.test_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr' # Overwrite this if you want to change the Paypal production url mattr_accessor :production_url self.production_url = 'https://www.paypal.com/cgi-bin/webscr' def self.service_url mode = ActiveMerchant::Billing::Base.integration_mode case mode when :production self.production_url when :test self.test_url else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end def self.notification(post) Notification.new(post) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems