Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed May 18, 2024
1 parent ce1d190 commit 5d3ac55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@
$robokassatx->success = 1;
}

if (isset($mrhpass2)) {
if (!empty($mrhpass2)) {
// Check crc.
$crc = strtoupper(md5("$outsumm:$invid:$mrhpass2"));
if ($signature !== $crc) {
die('FAIL. Signature does not match.');
}

// For currency conversion.
$payment->amount = $outsumm;
$payment->amount = (float)$outsumm;
if ($payment->currency !== 'RUB') {
$payment->currency = 'RUB';
}
Expand Down

0 comments on commit 5d3ac55

Please sign in to comment.