Skip to content

Commit

Permalink
allowing for application variable for secret_key
Browse files Browse the repository at this point in the history
  • Loading branch information
slogsdon committed Sep 4, 2014
1 parent 60ae620 commit 5f53918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stripe.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ defmodule Stripe do
Returns binary
"""
def key do
System.get_env "STRIPE_SECRET_KEY"
Application.get_env(:stripe, :secret_key) ||
System.get_env "STRIPE_SECRET_KEY"
end

defp url_encode_keyvalue({k, v}) do
Expand Down

0 comments on commit 5f53918

Please sign in to comment.