diff --git a/app/api/payment/create-order/route.ts b/app/api/payment/create-order/route.ts index b7702027..19261324 100644 --- a/app/api/payment/create-order/route.ts +++ b/app/api/payment/create-order/route.ts @@ -13,6 +13,5 @@ export async function POST(request: NextRequest) { receipt: "rcp1", }; const order = await razorpay.orders.create(options); - console.log(order); return Response.json({ orderId: order.id }, { status: 200 }); } diff --git a/app/api/payment/verify/route.ts b/app/api/payment/verify/route.ts index 541b8429..55f8ce62 100644 --- a/app/api/payment/verify/route.ts +++ b/app/api/payment/verify/route.ts @@ -5,7 +5,7 @@ const generatedSignature = ( razorpayOrderId: string, razorpayPaymentId: string ) => { - const keySecret = process.env.key_secret; + const keySecret = process.env.RAZORPAY_KEY_SECRET; if (!keySecret) { throw new Error( "Razorpay key secret is not defined in environment variables."