2

I've went back to a 'was-all-perfect' project I did last year January. Now..I've upgraded to rails 4.2.4 and upgraded my Figaro to 1.1.1. All seems well but I got this stripe error. I really dont see an issue. But I've noticed that my head do not have the stripe key anymore:

layouts/application.html.erb:

<%= tag :meta, :name => "stripe-key", :content => STRIPE_PUBLIC_KEY %>

initializers/stripe.rb:

Stripe.api_key = ENV["stripe_api_key"]
STRIPE_PUBLIC_KEY = ENV["stripe_publishable_key"]

config/application.yml:

stripe_api_key: sk_test****
stripe_publishable_key: pk_test****

Is there a change somewhere in Rails 4.2.4

Sylar
  • 11,422
  • 25
  • 93
  • 166

1 Answers1

-1

I'll add an answer if in the future I make this mistake again. It looks like, in my Gemfile, figaro should not be placed in the development group but rather outside. Now my stripe works fine.

Sylar
  • 11,422
  • 25
  • 93
  • 166