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()