add hook when recharge

This commit is contained in:
Ibnu Maksum
2024-03-01 09:57:59 +07:00
parent 699289662b
commit de3312055a
3 changed files with 10 additions and 5 deletions

View File

@ -94,6 +94,9 @@ class Package
->where('Type', $p['type'])
->find_one();
run_hook("recharge_user");
$mikrotik = Mikrotik::info($router_name);
if ($p['validity_unit'] == 'Months') {
$date_exp = date("Y-m-d", strtotime('+' . $p['validity'] . ' month'));
@ -357,8 +360,8 @@ class Package
"\nChannel: " . $channel .
"\nPrice: " . Lang::moneyFormat($p['price']));
}
Message::sendInvoice($c, $t);
run_hook("recharge_user_finish");
return true;
}