7 lines
308 B
Ruby
7 lines
308 B
Ruby
|
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]
|