Skip to content

Commit

Permalink
Merge pull request #68 from Snickser/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Snickser authored May 14, 2024
2 parents 5bc1a5b + 508ae25 commit 29fbf12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
if ($config->istestmode) {
$mrhpass2 = $config->test_password2; // Merchant test_pass2 here.
$robokassatx->success = 3;
$payment->amount = 0;
} else {
$mrhpass2 = $config->password2; // Merchant pass2 here.
$robokassatx->success = 1;
// For currency conversion.
if ($payment->currency !== 'RUB') {
$payment->currency = 'RUB';
}
$payment->amount = $outsumm;
}

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

if (isset($mrhpass2)) {
Expand Down

0 comments on commit 29fbf12

Please sign in to comment.