mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-05 20:21:50 +02:00
♻️ Use stripe client in billing package (#1269)
This commit is contained in:
parent
d4bd922ed3
commit
d105049119
3 changed files with 3 additions and 11 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue