integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
841 stars 107 forks source link

Update README.md #59

Closed thinkclay closed 8 years ago

thinkclay commented 8 years ago

This one tripped me up for a while, as I thought API Key meant the Publishable Key and not the Secret. Hoping this line helps someone else avoid that mistake.

rmm5t commented 8 years ago

Fair enough. In my personal projects, I actually store this in the STRIPE_SECRET_KEY env variable. In contrast to STRIPE_PUBLISHABLE_KEY. For example:

Stripe.api_key = ENV["STRIPE_SECRET_KEY"]

For clarity, I actually think it might be better to suggest the above env variable assignment in all the examples instead of an added "Note" that people might miss.

thinkclay commented 8 years ago

I agree with replacing in all areas. Would you like me to make the update and do a new PR?

rmm5t commented 8 years ago

Yes, please just update this PR.

rmm5t commented 8 years ago

:beers: Thanks.