added second call

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 15:33:51 -04:00
parent 8da8f3c8d4
commit e052375dde
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -133,6 +133,20 @@ class AirFlow extends BaseController
}
}
//LET US GET TEH AGREEMENT FIXED
$in['limit'] = 2;
$in['status'] = CARD_HOLDER_CREATED; // pick from holders
$local_url = "http://".$this->micro_service_net1.":3038/cardapplications";
$outX = $this->APIcall('POST', $local_url, $in);
log_message('critical', "AirFlow::flowStripeCard ********* ALL ".serialize($outX) );
foreach ($outX['result_list'] as $index=>$item){
if ( $item['request_id'] !='' && $item['request_uid'] !=''){
$item['aggrement_ip'] = '76.209.103.227';
$local_url = "http://".$this->micro_service_net1.":3038/acceptterms";
$out = $this->APIcall('POST', $local_url, $item);
}
}
// work on the list