diff --git a/ghost/members-api/lib/stripe/index.js b/ghost/members-api/lib/stripe/index.js index 30630d0878..fa721d6fff 100644 --- a/ghost/members-api/lib/stripe/index.js +++ b/ghost/members-api/lib/stripe/index.js @@ -62,10 +62,9 @@ module.exports = class StripePaymentProcessor { 'invoice.payment_failed' ] }); - this._webhookSecret = webhook.secret; + this._webhookSecret = process.env.WEBHOOK_SECRET || webhook.secret; } catch (err) { this.logging.warn(err); - this._webhookSecret = process.env.WEBHOOK_SECRET; } debug(`Webhook secret set to ${this._webhookSecret}`); } catch (err) {