mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Ensured plan is lowercased before being passed
This makes sure that we can correctly match the plan against either "monthly" or "yearly"
This commit is contained in:
parent
4785e25fe4
commit
66b317ef78
@ -68,7 +68,7 @@ export function planClickHandler({event, el, errorEl, siteUrl, site, member, cli
|
|||||||
el.removeEventListener('click', clickHandler);
|
el.removeEventListener('click', clickHandler);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let plan = el.dataset.membersPlan;
|
let plan = el.dataset.membersPlan;
|
||||||
let requestData = getCheckoutSessionDataFromPlanAttribute(site, plan);
|
let requestData = getCheckoutSessionDataFromPlanAttribute(site, plan.toLowerCase());
|
||||||
let successUrl = el.dataset.membersSuccess;
|
let successUrl = el.dataset.membersSuccess;
|
||||||
let cancelUrl = el.dataset.membersCancel;
|
let cancelUrl = el.dataset.membersCancel;
|
||||||
let checkoutSuccessUrl;
|
let checkoutSuccessUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user