rename stripe_api_key to stripe_whsec_key

This commit is contained in:
Bryan Stitt 2023-07-05 11:23:16 -07:00
parent 477f69c6e9
commit 21b59bb953
3 changed files with 3 additions and 4 deletions

1
.env

@ -1,2 +1 @@
DATABASE_URL=mysql://root:dev_web3_proxy@127.0.0.1:13306/dev_web3_proxy
STRIPE_API_KEY=

@ -168,8 +168,8 @@ pub struct AppConfig {
/// Optionally send errors to <https://sentry.io>
pub sentry_url: Option<Dsn>,
/// Stripe api key from environment variable,
pub stripe_api_key: Option<String>,
/// Stripe api key for checking validity of webhooks
pub stripe_whsec_key: Option<String>,
/// Track rate limits in a redis (or compatible backend)
/// It is okay if this data is lost.

@ -87,7 +87,7 @@ pub async fn user_balance_stripe_post(
let secret = app
.config
.stripe_api_key
.stripe_whsec_key
.clone()
.web3_context("Stripe API key not found in config!")?;