♻️ Use stripe client in billing package (#1269)

This commit is contained in:
Luke Vella 2024-08-23 21:35:10 +01:00 committed by GitHub
parent d4bd922ed3
commit d105049119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 11 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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,
});