This commit is contained in:
nurmuhammet committed 2024-10-01 22:36:27 +05:00
1 parent 02adb1da6b
commit b93227252c
3 files changed
+27 -4

No files matched your search

@@ -7,14 +7,21 @@
class FetchCardHistoryController extends Controller
{
public function index()
public function index(Request $request)
{
$request->validate([
'passport_serie' => ['required', 'string', 'max:255'],
'passport_id' => ['required', 'string', 'max:255'],
'card_number' => ['required', 'string', 'max:255'],
'card_expiry_date' => ['required', 'string', 'max:255'],
]);
$response = Http::withBody('{
"idSeria": "I-AS",
"idNo": "314567",
"clientType":"recipient",
"cardMaskNumber":"993403******3258",
"expDate": "07/49"
"clientType":"recipient",
}')->acceptJson()->post('http://10.3.158.102:9999/api/clientinfo');
return $response->body();