diff --git a/apps/web/src/pages/api/stripe/portal.ts b/apps/web/src/pages/api/stripe/portal.ts index a6ff503db..2458847ab 100644 --- a/apps/web/src/pages/api/stripe/portal.ts +++ b/apps/web/src/pages/api/stripe/portal.ts @@ -1,4 +1,4 @@ -import { stripe } from "@rallly/backend/stripe"; +import { stripe } from "@rallly/billing"; import { prisma } from "@rallly/database"; import { NextApiRequest, NextApiResponse } from "next"; import { z } from "zod"; diff --git a/apps/web/src/pages/api/stripe/webhook.ts b/apps/web/src/pages/api/stripe/webhook.ts index 16148c72c..57854a15a 100644 --- a/apps/web/src/pages/api/stripe/webhook.ts +++ b/apps/web/src/pages/api/stripe/webhook.ts @@ -1,5 +1,5 @@ -import type { Stripe } from "@rallly/backend/stripe"; -import { stripe } from "@rallly/backend/stripe"; +import type { Stripe } from "@rallly/billing"; +import { stripe } from "@rallly/billing"; import { prisma } from "@rallly/database"; import * as Sentry from "@sentry/node"; import { buffer } from "micro"; diff --git a/packages/backend/stripe.ts b/packages/backend/stripe.ts deleted file mode 100644 index cb669ca53..000000000 --- a/packages/backend/stripe.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Stripe from "stripe"; - -export type { Stripe } from "stripe"; - -export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, { - apiVersion: "2023-08-16", - typescript: true, -});