mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added guard for missing stripe tokens
no-issue This ensures that even if a stripe config object is present, we still ensure that stripe is configured without keys
This commit is contained in:
parent
079a64e46b
commit
dd419be2fb
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,10 @@ function getStripePaymentConfig() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!stripePaymentProcessor.config.public_token || !stripePaymentProcessor.config.secret_token) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const webhookHandlerUrl = new URL('/members/webhooks/stripe', siteUrl);
|
const webhookHandlerUrl = new URL('/members/webhooks/stripe', siteUrl);
|
||||||
|
|
||||||
const checkoutSuccessUrl = new URL(siteUrl);
|
const checkoutSuccessUrl = new URL(siteUrl);
|
||||||
|
|
Loading…
Add table
Reference in a new issue