lib/active_merchant/billing/integrations/citrus.rb in activemerchant-1.42.7 vs lib/active_merchant/billing/integrations/citrus.rb in activemerchant-1.42.8

- old
+ new

@@ -4,32 +4,9 @@ module Citrus autoload :Helper, File.dirname(__FILE__) + '/citrus/helper.rb' autoload :Notification, File.dirname(__FILE__) + '/citrus/notification.rb' autoload :Return, File.dirname(__FILE__) + '/citrus/return.rb' - mattr_accessor :sandbox_url - mattr_accessor :staging_url - mattr_accessor :production_url - - self.sandbox_url = 'https://sandbox.citruspay.com/' - self.staging_url = 'https://stg.citruspay.com/' - self.production_url = 'https://www.citruspay.com/' - - def self.credential_based_url(options) - pmt_url = options[:credential3] - - case ActiveMerchant::Billing::Base.integration_mode - when :production - self.production_url + pmt_url - when :test - self.sandbox_url + pmt_url - when :staging - self.staging_url + pmt_url - else - raise StandardError, "Integration mode set to an invalid value: #{mode}" - end - end - def self.helper(order, account, options = {}) Helper.new(order, account, options) end def self.notification(post, options = {})