Answers for "Razorpay generate Signature in the node js"

0

Razorpay generate Signature in the node js

const crypto = require("crypto");
const hmac = crypto.createHmac('sha256', RAZORPAY_KEY_SECRET);

hmac.update(razorpayOrderId + "|" + razorpayPaymentId);
let generatedSignature = hmac.digest('hex');

let isSignatureValid = generatedSignature == payload.razorpay_signature;
Posted by: Guest on April-20-2021

Code answers related to "Razorpay generate Signature in the node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language