Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

quick update

Steven Teyd6a8179aee0a
diff --git a/apps/web/app/api/stripe/connect/webhook/route.ts b/apps/web/app/api/stripe/connect/webhook/route.ts
index 16131eacbf..502459b51f 100644
--- a/apps/web/app/api/stripe/connect/webhook/route.ts
+++ b/apps/web/app/api/stripe/connect/webhook/route.ts
@@ -4,17 +4,9 @@ import { NextResponse } from "next/server";
import Stripe from "stripe";
import { accountUpdated } from "./account-updated";
-const relevantEvents = new Set([
- "account.updated",
- "charge.succeeded",
- "payment_method.attached",
- "checkout.session.completed",
- "customer.subscription.updated",
- "customer.subscription.deleted",
- "invoice.payment_failed",
-]);
+const relevantEvents = new Set(["account.updated"]);
-// POST /api/stripe/webhook – listen to Stripe webhooks
+// POST /api/stripe/connect/webhook – listen to Stripe Connect webhooks (for connected accounts)
export const POST = async (req: Request) => {
const buf = await req.text();
const sig = req.headers.get("Stripe-Signature") as string;