Skip to content

Commit

Permalink
(BIDS-3049) remove pl from mobpr
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Jun 5, 2024
1 parent 6eed2b0 commit 72dca59
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions templates/payment/mobilepricing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -127,6 +126,7 @@
})
});
} catch (err) {
console.error(err)
}
}
setupStripe()
Expand Down

0 comments on commit 72dca59

Please sign in to comment.