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 businessType to Stripe

Kiran Kc3cbbdf0e9ad
diff --git a/apps/web/lib/actions/partners/onboard-partner.ts b/apps/web/lib/actions/partners/onboard-partner.ts
index fc61c6c9a7..118a8f3a33 100644
--- a/apps/web/lib/actions/partners/onboard-partner.ts
+++ b/apps/web/lib/actions/partners/onboard-partner.ts
@@ -36,6 +36,7 @@ export const onboardPartnerAction = authUserActionClient
name,
email: user.email,
country,
+ businessType,
})
: null;
diff --git a/apps/web/lib/stripe/create-connected-account.ts b/apps/web/lib/stripe/create-connected-account.ts
index 2447203e30..60a81ce067 100644
--- a/apps/web/lib/stripe/create-connected-account.ts
+++ b/apps/web/lib/stripe/create-connected-account.ts
@@ -6,10 +6,12 @@ export const createConnectedAccount = async ({
name,
email,
country,
- businessType = "individual",
-}: Pick<z.infer<typeof onboardPartnerSchema>, "name" | "country"> & {
+ businessType,
+}: Pick<
+ z.infer<typeof onboardPartnerSchema>,
+ "name" | "country" | "businessType"
+> & {
email: string;
- businessType?: "individual" | "company";
}) => {
const [firstName, lastName] = name.split(" ");