Skip to content

Commit

Permalink
feat: get stripe mode from environment variable (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Oct 31, 2023
1 parent f90c212 commit 3e93859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bd_api/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
...

# Stripe
STRIPE_LIVE_MODE = False
STRIPE_LIVE_MODE = bool(getenv("STRIPE_LIVE_MODE", "False"))
STRIPE_LIVE_SECRET_KEY = getenv("STRIPE_LIVE_SECRET_KEY", "")
STRIPE_TEST_SECRET_KEY = getenv("STRIPE_TEST_SECRET_KEY", "")
DJSTRIPE_WEBHOOK_SECRET = getenv("DJSTRIPE_WEBHOOK_SECRET", "")
Expand Down
2 changes: 1 addition & 1 deletion bd_api/settings/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

# Stripe
STRIPE_LIVE_MODE = True
STRIPE_LIVE_MODE = bool(getenv("STRIPE_LIVE_MODE"))
STRIPE_LIVE_SECRET_KEY = getenv("STRIPE_LIVE_SECRET_KEY")
STRIPE_TEST_SECRET_KEY = getenv("STRIPE_TEST_SECRET_KEY")
DJSTRIPE_WEBHOOK_SECRET = getenv("DJSTRIPE_WEBHOOK_SECRET")
Expand Down

0 comments on commit 3e93859

Please sign in to comment.