Skip to content

Instantly share code, notes, and snippets.

@fedeagripa
Created May 28, 2020 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedeagripa/0ae76f1f2a5b77f0a12fdbc2eeaa5904 to your computer and use it in GitHub Desktop.
Save fedeagripa/0ae76f1f2a5b77f0a12fdbc2eeaa5904 to your computer and use it in GitHub Desktop.
rails_stripe_initializer
# config/intializers/stripe.rb
Rails.configuration.stripe = {
publishable_key: ENV['STRIPE_PUBLISHABLE_KEY'],
secret_key: ENV['STRIPE_SECRET_KEY']
}
Stripe.api_key = Rails.configuration.stripe[:secret_key]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment