From 4525fa65b01ca1bdb0174d1897e89a2d5db7c138 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 11 Jun 2020 20:15:15 +0200 Subject: [PATCH] Added manual check for stripe connect integration no-issue We had a circular dependency issue when using the members service, so this commit replaces the use of that with a check to the settings cache to check if stripe connect has been setup. --- core/frontend/helpers/ghost_head.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/frontend/helpers/ghost_head.js b/core/frontend/helpers/ghost_head.js index 5e6041744b..5e202b9fc2 100644 --- a/core/frontend/helpers/ghost_head.js +++ b/core/frontend/helpers/ghost_head.js @@ -43,11 +43,13 @@ function getMembersHelper() { const stripeSecretToken = stripePaymentProcessor.config.secret_token; const stripePublicToken = stripePaymentProcessor.config.public_token; + const stripeConnectIntegration = settingsCache.get('stripe_connect_integration'); + let membersHelper = ``; if (config.get('enableDeveloperExperiments')) { membersHelper = ``; } - if (!!stripeSecretToken && stripeSecretToken !== '' && !!stripePublicToken && stripePublicToken !== '') { + if ((!!stripeSecretToken && !!stripePublicToken) || !!stripeConnectIntegration.account_id) { membersHelper += ''; } return membersHelper;