discourse-subscriptions/config/stripe.rb

7 lines
308 B
Ruby
Raw Normal View History

2017-02-13 18:28:07 -05:00
Rails.configuration.stripe = {
:publishable_key => ENV['STRIPE_PUBLISHABLE_KEY'] || Rails.application.config_for(:stripe)['publishable_key'],
:secret_key => ENV['STRIPE_SECRET_KEY'] || Rails.application.config_for(:stripe)['secret_key']
}
Stripe.api_key = Rails.configuration.stripe[:secret_key]