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
This commit is contained in:
Rishabh 2021-06-04 18:09:58 +05:30
parent 82f7d69d8d
commit f3fd043580

View File

@ -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;