From 72dca590dbee1dc06d211b2422cb502feb9d1cdd Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer Date: Wed, 5 Jun 2024 15:30:26 +0200 Subject: [PATCH] (BIDS-3049) remove pl from mobpr --- templates/payment/mobilepricing.html | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/payment/mobilepricing.html b/templates/payment/mobilepricing.html index 07c213f06f..e6004b73de 100644 --- a/templates/payment/mobilepricing.html +++ b/templates/payment/mobilepricing.html @@ -65,26 +65,25 @@ try { var stripe = Stripe({{.StripePK}}); // Setup event handler to create a Checkout Session when button is clicked - document - .getElementById("plankton") - .addEventListener("click", function (evt) { - createCheckoutSession({{.Plankton}}).then(function (data) { - // Call Stripe.js method to redirect to the new Checkout page - stripe - .redirectToCheckout({ - sessionId: data.sessionId - }) - .then(handleResult) - .catch(err => { - console.log("error: ", err) - showError("Failed to create Stripe Checkout Session") - }); - }).catch(err => { - console.log("error: ", err) - showError("Failed to create Stripe Checkout Session") - }) - - }); + // document + // .getElementById("plankton") + // .addEventListener("click", function (evt) { + // createCheckoutSession({{.Plankton}}).then(function (data) { + // // Call Stripe.js method to redirect to the new Checkout page + // stripe + // .redirectToCheckout({ + // sessionId: data.sessionId + // }) + // .then(handleResult) + // .catch(err => { + // console.log("error: ", err) + // showError("Failed to create Stripe Checkout Session") + // }); + // }).catch(err => { + // console.log("error: ", err) + // showError("Failed to create Stripe Checkout Session") + // }) + // }); // Setup event handler to create a Checkout Session when button is clicked document @@ -127,6 +126,7 @@ }) }); } catch (err) { + console.error(err) } } setupStripe()