Merge 4d4736f042 into 424b1302cb
This commit is contained in:
commit
211410b6f0
33 changed files with 621 additions and 91 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue