Skip to content

Commit

Permalink
fix #111
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Dec 13, 2024
1 parent 3eda5ce commit a8af0a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$cost = helper::get_rounded_cost($payable->get_amount(), $payable->get_currency(), $surcharge);

// Check self cost.
if (!empty($costself)) {
if (!empty($costself) && !$config->fixcost) {
$cost = $costself;
}

Expand Down Expand Up @@ -248,11 +248,6 @@
$paygwdata->recurrent = time() + $config->recurrentperiod;
}

if ($config->savedebugdata) {
file_put_contents($CFG->dataroot . '/payment.log', date("Y-m-d H:i:s") . "\n" . "$mrhlogin:$outsumm:$invid" . $currencyarg .
":$receipt:$mrhpass1" . "\n" . $request . "\n\n", FILE_APPEND | LOCK_EX);
}

// Make invoice.
$location = 'https://auth.robokassa.ru/Merchant/Indexjson.aspx';
$options = [
Expand Down

0 comments on commit a8af0a8

Please sign in to comment.