Merge pull request #1108 from rishabhs95/stripe
Online payment feature - direct stripe integration
This commit is contained in:
commit
32019a11e1
35 changed files with 523 additions and 110 deletions
1
config/initializers/stripe.rb
Normal file
1
config/initializers/stripe.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
Stripe.api_key = Rails.application.secrets.stripe_secret_key
|
||||
|
|
@ -121,6 +121,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]
|
||||
resource :schedule, only: [:show] do
|
||||
member do
|
||||
|
|
|
|||
|
|
@ -13,10 +13,20 @@ development:
|
|||
suse_key: 'sample'
|
||||
suse_secret: 'sample'
|
||||
|
||||
# Register on stripe and add TEST keys here
|
||||
# https://dashboard.stripe.com/account/apikeys
|
||||
stripe_publishable_key: <%= ENV['STRIPE_PUBLISHABLE_KEY'] %>
|
||||
stripe_secret_key: <%= ENV['STRIPE_SECRET_KEY'] %>
|
||||
|
||||
test:
|
||||
# Generate your own with rake secret
|
||||
# secret_key_base: '12345'
|
||||
|
||||
# Register on stripe and add TEST keys here
|
||||
# https://dashboard.stripe.com/account/apikeys
|
||||
stripe_publishable_key: <%= ENV['STRIPE_PUBLISHABLE_KEY'] %>
|
||||
stripe_secret_key: <%= ENV['STRIPE_SECRET_KEY'] %>
|
||||
|
||||
production:
|
||||
# Generate your own with rake secret or use the environment
|
||||
# secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
||||
|
|
@ -56,3 +66,8 @@ production:
|
|||
# https://github.com/settings/applications
|
||||
github_key: ''
|
||||
github_secret: ''
|
||||
|
||||
# Register on stripe and add LIVE keys here
|
||||
# https://dashboard.stripe.com/account/apikeys
|
||||
stripe_publishable_key: <%= ENV['STRIPE_PUBLISHABLE_KEY'] %>
|
||||
stripe_secret_key: <%= ENV['STRIPE_SECRET_KEY'] %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue