PHP webhook notification api does not work somehow, tried several things

So, I tried to buy myself, to see if the Webhook actually works. And why am I here? Because it does not work.

Here is my code;

    $ message, "username" => "TEST");
$ curl = curl_init ($ webhook);
curl_setopt ($ curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt ($ curl, CURLOPT_POSTFIELDS, json_encode ($ data));
curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, true);
return curl_exec ($ curl);
}

if (! isset ($ _ POST['status'])) {
to kill me();
}

if ($ _POST['status'] ! = 100) {
exit();
}

$ json = json_decode ($ _ POST['custom'], true);
$ username = $ json['0'];
$ a = $ _POST['usd_value'];
echo 1;
if ($ a == "1.0") {
$ highfives = "1500";
} elseif ($ a == "2.0") {
$ highfives = "3000";
} elseif ($ a == "5.0") {
$ highfives = "7500";
} elseif ($ a == "10.0") {
$ highfives = "15000";
} elseif ($ a == "15.0") {
$ highfives = "22500";
} elseif ($ a == "20.0") {
$ highfives = "30000";
} elseif ($ a == "30.0") {
$ highfives = "45000";
} elseif ($ a == "50.0") {
$ highfives = "75000";
} elseif ($ a == "100.0") {
$ highfives = "150000";
} other {
to kill me();
}
echo "
"$ highfives."
"; echo 2; $ servername = "localhost"; $ user = "alexbql297_abcd"; $ password = "GONE"; $ dbname = "alexbql297_abcd"; $ fail = true; $ conn = new mysqli ($ servername, $ user, $ password, $ dbname); $ sql = "SELECT user name, id, amount FROM users"; $ result = $ conn-> query ($ sql); while ($ row = $ result-> fetch_assoc ()) { if (strtolower ($ row['username']) == strtolower ($ username)) { echo 3; $ oldamount = $ row['amount']; $ newamount = $ row['amount'] + $ highfives; $ id = $ row['id']; $ fail = false; } } if ($ fail) { header ("HTTP / 1.1 201 NOK"); echo 4; postToDiscord ("` `` \ nemail: ". $ _ POST['email']. " nip:". $ _ POST['ip']. " namount:". $ _ POST['usd_value']. " n```", "https://discordapp.com/api/webhooks/517369108078002186/cPoX4Dr3CpSGxkbld-dN3cPVrEIJ3uEypn01v_dwyBVfibmpfJl82ud4Z4G4a4aaaaaaaaaaaaa exit(); } other { echo 5; $ sql = INSERT INTO Payments (Data) VALUES (".") "json_encode ($ _ POST)." "#.;" ##; & # 39;); & # 39;; & # 39;); ; $ conn-> query ($ sql); $ sql = "UPDATE users SET amount =". $ newamount. "WHERE id =". $ id; $ conn-> query ($ sql); postToDiscord ("" `` username: ". $ username." npayed: ". $ _ POST['usd_value']. nold bal: ". $ oldamount." nnew bal: ". $ newamount." `` `" "," https://discordapp.com/api/webhooks/51736987765309The Basic Site. } echo 6; function killmyself () { output (& # 39; 404 not found

Not found

The requested URL /ok.php was not found on this server.
highfiveee.us & # 39;); } ?>

Here is a link to the Selly.gg API documentation; https://developer.selly.gg/?php#webhooks So he should actually do the work (if I read it correctly). But it does not work. Here is a screenshot of "retry" the Webhook;
click here

I hope someone can help me out. It does not connect to payments or in discord.