Adding Stripe onboarding (mostly), changing name and branding to Forum

This commit is contained in:
metacryst
2026-02-26 02:12:24 -06:00
parent dd9552aad1
commit 402a99d55c
12 changed files with 47 additions and 20 deletions

View File

@@ -34,8 +34,13 @@ let Global = class {
const code = params.get("code");
if (code) {
// send this code to your backend
console.log("success!: ", code)
await fetch("/api/stripe/connect", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ code })
});
} else {
throw new Error("Stripe code is not present!")
}