Merge pull request #1108 from rishabhs95/stripe

Online payment feature - direct stripe integration
This commit is contained in:
Hernán Schmidt 2016-08-18 16:04:11 +02:00 committed by GitHub
commit 32019a11e1
35 changed files with 523 additions and 110 deletions

View file

@ -0,0 +1 @@
Stripe.api_key = Rails.application.secrets.stripe_secret_key

View file

@ -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

View file

@ -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'] %>