I
Icy
Guest
I'm not 100% sure what the error is, but recently (a week~ ago) I started getting an email from Paypal:
Now I've gone and disabled the paypal payment button, but I'm pretty sure I've not changed anything, why should it be giving me these errors now?
I've posted my ipn.php script, hopefully someone can make sense of it, with personal information blanked out obvoiusly.
Code:
Hello Icy Mage,
Please check your server that handles PayPal Instant Payment Notification (IPN) messages. Messages sent to the following URL(s) are not being received:
http://icyot.servegame.com/ipn/ipn.php
If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information.
Once you or your service provider fix this problem, you or your service provider can resend the failed messages from the IPN History page. If this problem continues, PayPal may disable the IPN feature for your account.
Thank you for your prompt attention to this issue.
Thanks,
PayPal
----------------------------------------------------------------
PROTECT YOUR PASSWORD
NEVER give your password to anyone, including PayPal employees. Protect yourself against fraudulent websites by opening a new web browser (e.g. Internet Explorer or Firefox) and typing in the PayPal URL every time you log in to your account.
----------------------------------------------------------------
----------------------------------------------------------------
Copyright © 1999-2009 PayPal. All rights reserved.
Now I've gone and disabled the paypal payment button, but I'm pretty sure I've not changed anything, why should it be giving me these errors now?
I've posted my ipn.php script, hopefully someone can make sense of it, with personal information blanked out obvoiusly.
PHP:
<?PHP
$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'blankedOut'; //DB User
$mysql_pass = 'blankedOut'; //DB Pass
$mysql_db = 'theforgottenserver'; //DB Name
$file = 'paypal.log'; //Paypal Log Name will be placed in the same location as your ipn.php file
$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
$receiver_email = $_REQUEST['receiver_email'];
$payment_status = $_REQUEST['payment_status'];
$mc_gross = $_REQUEST['mc_gross'];
$payer_email = $_REQUEST['payer_email'];
$somecode = "'$custom' '$payer_email' '$mc_gross'";
// connect db
$db = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db, $db);
if ($payment_status == "Completed" & $receiver_email == "[email protected]" & $mc_gross >= "7.00") {
$query = "SELECT premium_points FROM accounts WHERE accounts.name = '$custom'";
$result = mysql_query($query);
$prem = mysql_fetch_array($result);
$points = $prem['premium_points'] + 115;
// $points = mysql_query($prem)
$qry2 = "UPDATE accounts SET premium_points = 115 WHERE accounts.name = '$custom'";
// Log Paypal Transaction
$hak = fopen($file, "a");
fwrite($hak, $somecode);
fclose($hak);
$result2 = mysql_query($qry2);
}
else
{
echo("Error.");
}
?>