This commit is contained in:
Rishabh Saxena 2016-08-10 06:18:19 +00:00 committed by GitHub
commit 211410b6f0
33 changed files with 621 additions and 91 deletions

View file

@ -96,4 +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['OSEM_GATEWAY_TEST_SECRET_KEY'])
end

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['OSEM_GATEWAY_LIVE_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

View file

@ -111,6 +111,7 @@ Osem::Application.routes.draw do
resource :conference_registration, path: 'register'
resources :tickets, only: [:index]
resources :ticket_purchases, only: [:create, :destroy]
resources :payments, only: [:index, :new, :create]
resource :subscriptions, only: [:create, :destroy]
member do