Skip to content

Commit f65d866

Browse files
aamoghSaamoghS
authored andcommitted
yay
1 parent 33ca0f3 commit f65d866

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

packages/api/src/routers/stripe.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import { eq, and, isNull } from "drizzle-orm";
66
import { logSecurityEvent } from "../middleware/security";
77
import Stripe from "stripe";
88

9-
const stripe = process.env.STRIPE_SECRET_KEY
10-
? new Stripe(process.env.STRIPE_SECRET_KEY, {
11-
apiVersion: "2026-04-22.dahlia",
12-
})
13-
: null;
9+
const stripe = process.env.STRIPE_SECRET_KEY ? new Stripe(process.env.STRIPE_SECRET_KEY) : null;
1410

1511
export const stripeRouter = createTRPCRouter({
1612
/**
@@ -143,7 +139,7 @@ export const stripeRouter = createTRPCRouter({
143139

144140
/**
145141
* Check if the current user has an unlinked Stripe payment
146-
142+
*
147143
* that matches their email (auto-link scenario)
148144
*/
149145
checkPendingPayment: protectedProcedure.query(async ({ ctx }) => {

0 commit comments

Comments
 (0)