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.

Update checkout-session-completed.ts

Steven Tey193f8541edb8
diff --git a/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts
index ea58dbabf4..001af76a3e 100644
--- a/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts
+++ b/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts
@@ -143,6 +143,9 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
await recordLead(leadEvent);
linkId = clickEvent.link_id;
+
+ // if it's not either a regular stripe checkout setup or a stripe checkout link,
+ // we skip the event
} else {
return `Customer ID not found in Stripe checkout session metadata and client_reference_id is not a dub_id, skipping...`;
}