Binance-pay Webhook verify signature example in nodeJs

Hello Everyone
I want to use webhooks, but in NodeJS and I can’t find any correct documentation.
I am using this DOCS https://developers.binance.com/docs/binance-pay/webhook-common But here is the code written in PHP and JAVA but not able to convert and use properly and getting error.
Can anyone help me tell how to use this logic in nodejs

I am able to continue this further,
I got answers from two places

first one from github one PR https://github.com/binance/binance-pay-signature-examples/pull/3
and this Binance pay docs https://developers.binance.com/docs/binance-pay/faq

Thank you