repair code reviews, improve environment configs

This commit is contained in:
Rishabh Saxena 2016-07-18 12:04:10 +05:30
parent 223a0eead9
commit 25c0046290
10 changed files with 65 additions and 67 deletions

View file

@ -96,10 +96,10 @@ Osem::Application.configure do
end
end
#Initialize Payment Gateway with valid credentials
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['SECRET_KEY'])
end
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(
:login => ENV['SECRET_KEY'])

View file

@ -83,4 +83,8 @@ Osem::Application.configure do
# Set the secret_key_base from the env, if not set by any other means
config.secret_key_base ||= ENV["SECRET_KEY_BASE"]
# Initialize Payment Gateway with valid credentials
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::StripeGateway.new(:login => ENV['SECRET_KEY'])
end

View file

@ -52,4 +52,9 @@ Osem::Application.configure do
ActiveSupport::Deprecation.silenced = true
end
# Initialize Payment Gateway with valid credentials
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::BogusGateway.new
end