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:
parent
fe462ae706
commit
7db503b13b
1 changed files with 1 additions and 0 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue