@אבי-203
ב php יש לי קוד מוכן שעובד.
//תשלום רגיל:
$Debit = "DebitCard";
$TypeMosad = "Mosad";
//הוראת קבע:
$Debit = "DebitKeva";
$TypeMosad = "MosadId";
$day = "&day=".$_REQUEST['day'];
$content = $TypeMosad.'='.$Mosad.'&ClientName=&Adresse=&Phone=&ClientId=&CardNumber='.$CardNumber.'&Tokef='.$Tokef.'&Amount='.$Amount.'&Tashloumim=&Groupe='.$Groupe.'&Avour=&Token=&CVV='.$CVV.$day.'&Zeout='.$id.'&Currency=1&MasofId=Online';
$url = "https://www.matara.pro/nedarimplus/V6/Files/WebServices/".$Debit.".aspx";
$sendData = get_ClientData($url,$content);
function get_ClientData($url,$post,$debug = ""){
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$headers = array();
$headers[] = 'Authority: www.matara.pro';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: he-IL,he;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6';
$headers[] = 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8';
$headers[] = 'Origin: https://www.matara.pro';
$headers[] = 'Referer: https://www.matara.pro/nedarimplus/online/?mosad=0000';
$headers[] = 'Sec-Ch-Ua: \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36';
$headers[] = 'X-Requested-With: XMLHttpRequest';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if ($debug) {
echo "1: \n";
var_dump( $result);
echo "\n 1 ------ \n";
}
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);
return json_decode($result, true);
}