Skip to content

Commit

Permalink
Refactor generatedSignature function to be exported for external use
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Oct 2, 2024
1 parent 51d7ce4 commit 4e979a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/verify-order/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getServerSideSession } from "@/lib/get-server-session";
import prisma from "@/server/db";
import { sendRegistrationEmail } from "@/lib/send-registration-email";

const generatedSignature = (razorpayOrderId: string, razorpayPaymentId: string) => {
export const generatedSignature = (razorpayOrderId: string, razorpayPaymentId: string) => {
const keySecret = process.env.RAZORPAY_KEY_SECRET!;

const sig = crypto
Expand Down

0 comments on commit 4e979a0

Please sign in to comment.