0
Fork 0
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:
Fabien O'Carroll 2019-10-09 11:53:58 +07:00
parent 079a64e46b
commit dd419be2fb

View file

@ -95,6 +95,10 @@ function getStripePaymentConfig() {
return null;
}
if (!stripePaymentProcessor.config.public_token || !stripePaymentProcessor.config.secret_token) {
return null;
}
const webhookHandlerUrl = new URL('/members/webhooks/stripe', siteUrl);
const checkoutSuccessUrl = new URL(siteUrl);