title: Razorpay signature verification not happening as SHA256 Digest is wrong NodeJS
body: <p>I am making an app in which after a successful payment I create a digest which I verify using the suggest way of Razorpay signature verification.</p>
  
  <p>My backend is in NodeJS and here is how I am creating the digest.</p>
  
  <pre><code>const crypto = require("crypto");
  
   var generatedSignature = crypto
        .createHmac(
          "SHA256",
          razorpay_order_id + "|" + razorpay_payment_id
        )
        .update(key_secret)
        .digest("hex");  
  
  var isSignatureValid = generatedSignature == payload.razorpay_signature // false
  </code></pre>
  
  <p>Is my way of creating signature wrong?</p>