$arHash = array(
$m_shop,
$m_orderid,
$m_amount,
$m_curr,
$m_desc,
$m_key
);
$sign = strtoupper(hash('sha256', implode(":", $arHash)));
?>
require 'digest/sha2'
@arHash = [
'm_shop',
'm_orderid',
'm_amount',
'm_curr',
'm_desc',
'm_key'
];
puts Digest::SHA256.hexdigest(@arHash.join(':')).upcase