Processing Stripe Dance Payments

This commit is contained in:
metacryst
2025-12-07 22:01:37 -06:00
parent 9a1aa55297
commit 279be987a4
11 changed files with 152 additions and 420 deletions

View File

@@ -51,8 +51,11 @@ class Events extends Shadow {
.border("1px solid #ab2f007d")
.background('var(--green)')
.marginLeft("auto")
.onClick(() => {
window.open("https://app.fluidpay.com/spp/hyperia-winter-ball?add_products=d4o523v0i47c3987j320:1:35.00", "_blank");
.onClick(async function() {
this.innerText = "Loading..."
const res = await fetch("/create-checkout-session", { method: "POST" });
const data = await res.json();
window.location = data.url;
})
})
.gap(3, em)