repair code reviews, improve environment configs
This commit is contained in:
parent
223a0eead9
commit
25c0046290
10 changed files with 65 additions and 67 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue