add stripe gateway config

This commit is contained in:
Rishabh Saxena 2016-07-27 20:23:03 +05:30
parent 7b23018a06
commit 47e16e5653
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,6 @@
Rails.configuration.stripe = {
:publishable_key => ENV['STRIPE_PUBLISHABLE_KEY'] || Rails.application.secrets.stripe_publishable_key,
:secret_key => ENV['STRIPE_SECRET_KEY'] || Rails.application.secrets.stripe_secret_key
}
Stripe.api_key = Rails.configuration.stripe[:secret_key]

View file

@ -13,6 +13,11 @@ development:
suse_key: 'sample'
suse_secret: 'sample'
# Register on stripe and add TEST keys here
# https://dashboard.stripe.com/account/apikeys
stripe_publishable_key: ''
stripe_secret_key: ''
test:
# Generate your own with rake secret
# secret_key_base: '12345'
@ -56,3 +61,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: ''
stripe_secret_key: ''

View file

@ -37,6 +37,11 @@ OSEM_FACEBOOK_SECRET=''
OSEM_GITHUB_KEY=''
OSEM_GITHUB_SECRET=''
# STRIPE Publishable/Secret keys
# test keys for development mode, live for production mode
STRIPE_PUBLISHABLE_KEY=''
STRIPE_SECRET_KEY=''
# Disable linting of factories in the test suite.
# Speeds up turn around times of tests
OSEM_FACTORY_LINT="false"