You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`Failed to attribute via promotion code ${promotionCodeId}, skipping...`;
207
+
return{
208
+
response: `Failed to attribute via promotion code ${promotionCodeId}, skipping...`,
209
+
workspaceId: workspace.id,
210
+
};
203
211
}
204
212
}else{
205
-
return`dubCustomerExternalId was provided but customer with dubCustomerExternalId ${dubCustomerExternalId} not found on Dub, skipping...`;
213
+
return{
214
+
response: `dubCustomerExternalId was provided but customer with dubCustomerExternalId ${dubCustomerExternalId} not found on Dub, skipping...`,
215
+
workspaceId: workspace.id,
216
+
};
206
217
}
207
218
}
208
219
}else{
@@ -247,7 +258,10 @@ export async function checkoutSessionCompleted(
247
258
stripeCustomerId,
248
259
});
249
260
if(!customer){
250
-
return`dubCustomerExternalId was found on the connected customer ${stripeCustomerId} but customer with dubCustomerExternalId ${dubCustomerExternalId} not found on Dub, skipping...`;
261
+
return{
262
+
response: `dubCustomerExternalId was found on the connected customer ${stripeCustomerId} but customer with dubCustomerExternalId ${dubCustomerExternalId} not found on Dub, skipping...`,
return`Failed to attribute via promotion code ${promotionCodeId}, skipping...`;
277
+
return{
278
+
response: `Failed to attribute via promotion code ${promotionCodeId}, skipping...`,
279
+
workspaceId: workspace.id,
280
+
};
264
281
}
265
282
}else{
266
-
return`dubCustomerExternalId not found in Stripe checkout session metadata (nor is it available on the connected customer ${stripeCustomerId}), client_reference_id is not a dub_id, and promotion code is not provided, skipping...`;
283
+
return{
284
+
response: `dubCustomerExternalId not found in Stripe checkout session metadata (nor is it available on the connected customer ${stripeCustomerId}), client_reference_id is not a dub_id, and promotion code is not provided, skipping...`,
285
+
workspaceId: workspace.id,
286
+
};
267
287
}
268
288
}
269
289
}
@@ -272,7 +292,10 @@ export async function checkoutSessionCompleted(
0 commit comments