Skip to content

Instantly share code, notes, and snippets.

@fedeagripa fedeagripa/stripe.rb

Created May 28, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.