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.

pass customer info

Kiran Kef13fa10b06c
diff --git a/apps/web/app/api/stripe/connect/webhook/customer-created.ts b/apps/web/app/api/stripe/connect/webhook/customer-created.ts
index 3457dcd69e..29bf97e6bc 100644
--- a/apps/web/app/api/stripe/connect/webhook/customer-created.ts
+++ b/apps/web/app/api/stripe/connect/webhook/customer-created.ts
@@ -97,8 +97,11 @@ export async function customerCreated(event: Stripe.Event) {
sendLinkWebhook("lead.created", {
linkId: clickData.link_id,
data: {
- ...customer,
...leadData,
+ customerId: customer.id,
+ customerName: customer.name,
+ customerEmail: customer.email,
+ customerAvatar: customer.avatar,
},
});
})(),