Closed thinkclay closed 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.
I agree with replacing in all areas. Would you like me to make the update and do a new PR?
Yes, please just update this PR.
:beers: Thanks.
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.