wip
This commit is contained in:
1 parent
ae92e2adde
commit
45694ce3d8
1 file changed
+4
-3
@@ -49,6 +49,8 @@ public function handle(ActionFields $fields, Collection $models)
|
||||
end_date: $end_date->format('d.m.Y'),
|
||||
);
|
||||
|
||||
$data = json_decode($response);
|
||||
|
||||
// if (! is_array($response)) {
|
||||
// return ActionResponse::danger('Connection issue');
|
||||
// }
|
||||
@@ -58,7 +60,7 @@ public function handle(ActionFields $fields, Collection $models)
|
||||
// }
|
||||
|
||||
info([
|
||||
'msg' => array_keys($response)
|
||||
'type' => gettype($data),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -90,7 +92,6 @@ public function fields(NovaRequest $request): array
|
||||
* @param string $card_expire_date
|
||||
* @param string $start_date
|
||||
* @param string $end_date
|
||||
* @return null|array{"idSeria":string,"idNo":string,"cardMaskNumber":string,"expDate":string,"clientType":string,"fromDate":string,"toDate":string,"clientName":string,"depName":string,"cardPan":string,"cardAccountNumber":string,"birthDate":string,"mfo":string,"passOrg":string,"passDate":string,"address":string,"phone":string,"errCode":int,"message":string,"messageRu":string,"messageEn":string,"transactions": array}
|
||||
*/
|
||||
public function fetchApi(
|
||||
string $passport_serie,
|
||||
@@ -121,6 +122,6 @@ public function fetchApi(
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
return (array) $response;
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user