RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 231 forks source link

Fetch required stripe api keys #130

Closed tmock12 closed 9 years ago

tmock12 commented 9 years ago

Considering that the app absolutely requires the stripe_api_key and the stripe_publishable_key to function, I'm proposing we fetch those keys. This gives better feedback to the developer. With fetch, as soon as someone tries to start the rails server they will see the message (erb):22:infetch': key not found: "STRIPE_API_KEY" (KeyError)` if the keys aren't set.

This will reduce the common issues that people create here on Github when the keys aren't being set.

DanielKehoe commented 9 years ago

Excellent idea.