-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant verify signature #380
Comments
We are also facing the same issue. Is anyone working on this? |
I am facing the same issue. Can anyone in Razorpay help us with this? |
You can use |
Hi @kakdeykaushik, |
In the docs they have mentioned using raw requestbody (req.body) as the message to create the hash signature.
|
@Sen-442b I have used the raw req.body, and it's failing only for 'invoice.paid'. Any light on that?
|
Here's a snippet of the code that's working on my end:
|
I am apparently not using any third party library to parse raw body. I am using NextJS, so it is anyway using
|
please help us I'm also facing issue with invoice.paid |
I am doing the above in Nextjs, but it is showing me false for valid signature. Any Help Regarding this? |
Steps to reproduce the behavior
import crypto from "crypto";
import prisma from "@/utils/connect";
import { NextResponse } from "next/server";
export const POST = async (req) => {
try {
const body = await req.json();
const { event, payload } = body;
};
Expected behavior
it should verify signature but no , its not, please help me if anyone can
Actual behavior
its not matching both the values
Code snippets
Node version
latest
Library version
latest
Additional Information
No response
The text was updated successfully, but these errors were encountered: