wip
This commit is contained in:
@@ -49,6 +49,8 @@ class DownloadCardTransaction extends Action
|
||||
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 @@ class DownloadCardTransaction extends Action
|
||||
// }
|
||||
|
||||
info([
|
||||
'msg' => array_keys($response)
|
||||
'type' => gettype($data),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -90,7 +92,6 @@ class DownloadCardTransaction extends Action
|
||||
* @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 @@ class DownloadCardTransaction extends Action
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
return (array) $response;
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user