mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +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 { prisma } from "@rallly/database";
|
||||||
import { NextApiRequest, NextApiResponse } from "next";
|
import { NextApiRequest, NextApiResponse } from "next";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Stripe } from "@rallly/backend/stripe";
|
import type { Stripe } from "@rallly/billing";
|
||||||
import { stripe } from "@rallly/backend/stripe";
|
import { stripe } from "@rallly/billing";
|
||||||
import { prisma } from "@rallly/database";
|
import { prisma } from "@rallly/database";
|
||||||
import * as Sentry from "@sentry/node";
|
import * as Sentry from "@sentry/node";
|
||||||
import { buffer } from "micro";
|
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