Adding Stripe onboarding (mostly), changing name and branding to Forum
This commit is contained in:
@@ -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!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user