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
+17
View File
@@ -108,12 +108,29 @@ class WrenchApi extends BaseController
'activetaskstatus'=> ['POST'],
'offersinterestlist' => ['POST'],
'offersinterestproc' => ['POST'],
'payprevcard' => ['POST'],
'paynewcard' => ['POST'],
'paylistcard' => ['POST'],
'payremcard' => ['POST'],
];
return $endpoints;
}
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
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 = $this->procOfferInterest($in);
break;