diff --git a/Assets/WebsiteAssets/templates/plans.mustache b/Assets/WebsiteAssets/templates/plans.mustache index f70c0ccf2..1a8579b02 100644 --- a/Assets/WebsiteAssets/templates/plans.mustache +++ b/Assets/WebsiteAssets/templates/plans.mustache @@ -59,7 +59,7 @@ + Promotion code:
@@ -455,7 +473,9 @@ const getHandlers: Record = { } function createSessionAndRedirect(priceId) { - createCheckoutSession(priceId).then(function(data) { + var promotionCode = document.getElementById('promotion_code').value; + + createCheckoutSession(priceId, promotionCode).then(function(data) { // Call Stripe.js method to redirect to the new Checkout page stripe .redirectToCheckout({