added air call

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 09:00:31 -04:00
parent 7932d897b8
commit 3763b125dc
3 changed files with 12 additions and 5 deletions
+5 -5
View File
@@ -112,19 +112,19 @@ class AirFlow extends BaseController
return []; //json_encode( $final_out );
}
const CARD_REQUESTED =0;
const CARD_HOLDER_CREATED = 10;
const CARD_OWNER_ACTIVE = 30;
const CARD_ASSIGNED = 40;
public function flowStripeCard():array{
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
/* GET LIST IN THE LIMIT AT STATUS */
$in['limit'] = 2;
$in['status'] = CARD_REQUESTED;
$local_url = "http://".$this->micro_service_net1.":3038/createCardHolder";
$out = $this->APIcall('POST', $local_url, $in);
log_message('critical', "AirFlow::flowStripeCard ********* ALL ".serialize($out) );
/*
if ( $out['request_id'] !='' && $out['request_uid'] !=''){