payment cards

This commit is contained in:
CHIEFSOFT\ameye
2023-06-17 22:36:58 -04:00
parent 92c4cec841
commit 12ebcee037
3 changed files with 38 additions and 0 deletions
+16
View File
@@ -89,6 +89,10 @@ $endpoints = array(
'offersinterestlist' => array('POST'),
'faq' => array('POST'),
'offersinterestproc' => array('POST'),
'payprevcard' => array('POST'),
'paynewcard' => array('POST'),
'paylistcard' => array('POST'),
'payremcard' => array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -180,6 +184,18 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'payprevcard':
$in["action"] = WRENCHBOARD_USER_USESAVEDCC;
break;
case 'paynewcard':
$in["action"] = WRENCHBOARD_USER_ADNEWCC;
break;
case 'paylistcard':
// not ye
break;
case 'payremcard':
// pending
break;
case 'offersinterestproc':
$in= procOfferInterest($in);
break;