This commit is contained in:
2024-10-01 23:49:30 +05:00
parent f6898dde8d
commit 4d0d4b6c23

View File

@@ -16,8 +16,6 @@ class FetchCardHistoryController extends Controller
'card_expiry_date' => ['required', 'string', 'max:255'],
]);
return $request->all();
$curl = curl_init();
curl_setopt_array($curl, [
@@ -30,16 +28,16 @@ class FetchCardHistoryController extends Controller
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => sprintf('{
"idSeria": "%s",
"idNo": "%s",
"clientType": "recipient",
"cardMaskNumber": "%s",
"expDate": "%s"
}',
$request->passport_serie,
$request->idNo,
Str::mask('9934032100858088', '*', 6, 6),
$request->card_expiry_date,
"idSeria": "%s",
"idNo": "%s",
"clientType": "recipient",
"cardMaskNumber": "%s",
"expDate": "%s"
}',
$request->passport_serie,
$request->idNo,
Str::mask('9934032100858088', '*', 6, 6),
$request->card_expiry_date,
),
CURLOPT_HTTPHEADER => [
'Accept: application/json',