Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Razorpay #generate #Signature #node #js
ADD COMMENT
Topic
Name
2+7 =