I'm trying to connect to PayBox payment service. They propose a PHP solution, but I'm using Nodejs. In their solution they use PHP pack function of which I can't find an equivalent in Node.js.
This is the target:
$binKey = pack("H*", $secretKeyTest);
I found a package Hipack but it has couple of issues.