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 e7fae5b commit b32d071
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@
throw new Error(get_string('payment_error', 'paygw_cryptocloud') . " ($error)");
}

// Set the context of the page.
$PAGE->set_context(context_system::instance());

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

// Write to DB.
$paygwdata->paymentid = $paymentid;
$paygwdata->invoiceid = $response->result->uuid;
Expand Down

0 comments on commit b32d071

Please sign in to comment.