lib/paypal_express/config/configuration.rb in killbill-paypal-express-1.0.2 vs lib/paypal_express/config/configuration.rb in killbill-paypal-express-1.0.3
- old
+ new
@@ -7,12 +7,13 @@
mattr_reader :paypal_sandbox_url
mattr_reader :paypal_production_url
mattr_reader :initialized
mattr_reader :test
- def self.initialize!(config_file='paypal_express.yml', logger=Logger.new(STDOUT))
+ def self.initialize!(logger=Logger.new(STDOUT), conf_dir=File.expand_path('../../../', File.dirname(__FILE__)))
@@logger = logger
+ config_file = "#{conf_dir}/paypal_express.yml"
@@config = Properties.new(config_file)
@@config.parse!
@@paypal_sandbox_url = @@config[:paypal][:sandbox_url] || 'https://www.sandbox.paypal.com/cgi-bin/webscr'
@@paypal_production_url = @@config[:paypal][:production_url] || 'https://www.paypal.com/cgi-bin/webscr'
\ No newline at end of file