From f3fd0435800761f8341fa7b4e7829af7849e2fba Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 4 Jun 2021 18:09:58 +0530 Subject: [PATCH] Fixed non-default product prices not working refs https://github.com/TryGhost/Team/issues/718 We passthrough any unknown price ids directly to checkout session as it currently Portal cannot verify prices across all products --- ghost/portal/src/data-attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/data-attributes.js b/ghost/portal/src/data-attributes.js index f8db4f2880..f6cc7d2736 100644 --- a/ghost/portal/src/data-attributes.js +++ b/ghost/portal/src/data-attributes.js @@ -66,7 +66,7 @@ function handleDataAttributes({siteUrl, site, member}) { let priceId = ''; if (plan) { const price = getQueryPrice({site, priceId: plan.toLowerCase()}); - priceId = price ? price.id : ''; + priceId = price ? price.id : plan; } let successUrl = el.dataset.membersSuccess; let cancelUrl = el.dataset.membersCancel;