Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Jul 21, 2024
1 parent 94b07fd commit 5f8f9cc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions lang/en/paygw_cryptocloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,7 @@
$string['fixcost'] = 'Fixed price mode';
$string['fixcost_help'] = 'Disables the ability for students to pay with an arbitrary amount.';
$string['maxcosterror'] = 'The maximum price must be higher than the recommended price';

$string['message_invoice_created'] = 'Hello {$a->firstname}!
Your payment link {$a->orderid} to {$a->fee} {$a->currency} has been successfully created.
You can pay it within an hour.';
4 changes: 4 additions & 0 deletions lang/ru/paygw_cryptocloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@
$string['fixcost'] = 'Режим фиксированной цены';
$string['fixcost_help'] = 'Отключает для студентов возможность оплаты произвольной суммой.';
$string['maxcosterror'] = 'Максимальная цена должна быть выше рекомендуемой цены';

$string['message_invoice_created'] = 'Здравствуйте, {$a->firstname}!
Платёжная ссылка {$a->orderid} на {$a->localizedcost} успешно создана.
Вы можете совершить платёж по ней в течении часа.';
16 changes: 7 additions & 9 deletions pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,13 @@
$PAGE->set_context(context_system::instance());

// Notify user.
if ($config->sendlinkmsg || is_siteadmin()) {
notifications::notify(
$userid,
$cost,
$currency,
$response->result->link,
'Invoice created'
);
}
notifications::notify(
$userid,
$cost,
$currency,
$response->result->link,
'Invoice created'
);

// Write to DB.
$paygwdata->paymentid = $paymentid;
Expand Down

0 comments on commit 5f8f9cc

Please sign in to comment.