diff --git a/ghost/portal/src/utils/api.js b/ghost/portal/src/utils/api.js index 15cb442b34..11a01fd932 100644 --- a/ghost/portal/src/utils/api.js +++ b/ghost/portal/src/utils/api.js @@ -392,6 +392,9 @@ function setupGhostApi({siteUrl = window.location.origin, apiUrl, apiKey}) { } return res.json(); }).then(function (result) { + if (result.url) { + return window.location.assign(result.url); + } const stripe = window.Stripe(result.publicKey); return stripe.redirectToCheckout({ sessionId: result.sessionId