wip
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user