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