Answer the question
In order to leave comments, you need to log in
Digital signatures from the form and in the handler are not equal?
https://help.unitpay.ru/article/31-creating-paymen... It says that the digital signature that is sent to the handler:
function getFormSignature($account, $currency, $desc, $sum, $secretKey) {
$hashStr = $account.'{up}'.$currency.'{up}'.$desc.'{up}'.$sum.'{up}'.$secretKey;
return hash('sha256', $hashStr);
}
function getSignature($method, array $params, $secretKey) {
ksort($params);
unset($params['sign']);
unset($params['signature']);
array_push($params, $secretKey);
array_unshift($params, $method);
return hash('sha256', join('{up}', $params));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question