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.

stripeCustomerEmail → stripeCustomerId

Steven Teye25430d5b82a
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 2c57e6dc0a..e08c37d5cd 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
@@ -137,7 +137,7 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
const payload = {
name: stripeCustomerName,
email: stripeCustomerEmail,
- externalId: stripeCustomerEmail, // using Stripe customer email as externalId
+ externalId: stripeCustomerId, // using Stripe customer ID as externalId
projectId: workspace.id,
projectConnectId: stripeAccountId,
stripeCustomerId,