mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
add stripe gateway config
This commit is contained in:
parent
7b23018a06
commit
47e16e5653
3 changed files with 21 additions and 0 deletions
6
config/initializers/stripe.rb
Normal file
6
config/initializers/stripe.rb
Normal 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]
|
||||
|
|
@ -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: ''
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue