Start topup

This commit is contained in:
Olu Amey
2023-05-02 12:20:18 -04:00
parent a984bfc49d
commit d681b90fb2
5 changed files with 15 additions and 1 deletions
+4
View File
@@ -59,6 +59,7 @@ $endpoints = array(
'accounttypes' => array('POST'),
'jobmanagerlist' => array('POST'),
'profilepasschange' => array('POST'),
'starttopup' => array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -121,6 +122,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'starttopup':
$in["action"] = WRENCHBOARD_ACCOUNT_PREPARE_TOPUP;
break;
case 'profilepasschange':
$in["action"] = WRENCHBOARD_PROFILE_RESETPASS;
break;