wip
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class FetchCardHistoryController extends Controller
|
||||
{
|
||||
@@ -28,13 +29,18 @@ class FetchCardHistoryController extends Controller
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => '{
|
||||
"idSeria": "I-AS",
|
||||
"idNo": "314567",
|
||||
"clientType": "recipient",
|
||||
"cardMaskNumber": "993403******3258",
|
||||
"expDate": "07/49"
|
||||
}',
|
||||
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,
|
||||
),
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Accept: application/json',
|
||||
'Content-Type: application/json',
|
||||
|
||||
Reference in New Issue
Block a user