0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Fixed local webhooks when using localhost urls

no-issue

When using localhost urls the call to `create` will error and end in teh
catch block - so we need to use the environment variable there, too.

Introduced in 0149dd8f
This commit is contained in:
Fabien O'Carroll 2019-12-09 14:29:25 +02:00
parent fe462ae706
commit 7db503b13b

View file

@ -64,6 +64,7 @@ module.exports = class StripePaymentProcessor {
});
this._webhookSecret = process.env.WEBHOOK_SECRET || webhook.secret;
} catch (err) {
this._webhookSecret = process.env.WEBHOOK_SECRET;
this.logging.warn(err);
}
debug(`Webhook secret set to ${this._webhookSecret}`);