• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Paypal working but its not showing!

fajakuk

New Member
Joined
Dec 22, 2009
Messages
25
Reaction score
0
Hello!

I've added a paypal script to my server and it is working if you write "servername/paypal.php" but it's not showing when you click donate points, also I cannot find it in buypoints.php.

Please help me :) thanks
 
Use this ipn.php
<?php
// Coiler's database logs, version: 1.1
// Paypal script made by Stian
if ($_REQUEST['debug']) {
ini_set("display_errors", True);
error_reporting(E_ALL);
}
$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'root'; //DB User
$mysql_pass = ''; //DB Pass
$mysql_db = ''; //DB Name
$your_email = '[email protected]'; //Put the paypal mail you use here.
$currency = 'EUR'; //Put the currency your using here, should be the same as the one in paypal.htm
if ($payment_status == "Completed" & $receiver_email == "[email protected]") {


$payer_email = $_REQUEST['payer_email'];
$ip = $_SERVER['REMOTE_ADDR'];
$ips = array('66.211.170.66', '216.113.188.202', '216.113.188.203', '216.113.188.204', '216.113.188.205', '66.135.197.163', '66.135.197.164', ' 66.135.197.162', '66.135.197.141', '216.113.191.33');
if(!in_array($ip, $ips)) {
print "Scammer...";
$points = $prem['premium_points'] + 12;
fwrite($hak, "$ip \r\n");
fclose($hak);
die(0);
}
$time = date("F j, Y, g:i a");


// connect db

$db = mysql_connect($mysql_host, $mysql_user, $mysql_pass);

$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
$receiver_email = $_REQUEST['receiver_email'];
$payment_status = $_REQUEST['payment_status'];
$mc_gross = $_REQUEST['mc_gross'];
$mc_currency = $_REQUEST['mc_currency'];
mysql_select_db($mysql_db, $db);
if ($_REQUEST['debug']){
print $payment_status . '\n';
print (isset($paylist[$mc_gross])) ? 1 : 0 . '\n';
print $receiver_email . '\n';
print $custom . '\n';
}
if ($payment_status == "Completed" && $receiver_email == $your_email && isset($paylist[$mc_gross]) && $mc_currency == $currency) {
$query = mysql_query("SELECT id, premium_points FROM accounts WHERE accounts.name = '$custom'");
$prem = mysql_fetch_array($query);

$qry2 = "UPDATE accounts SET premium_points = premium_points + {$paylist[$mc_gross]} WHERE name = '$custom'";

// Log Paypal Transaction
$executepaypallog = "INSERT INTO `z_shop_points_bought` (`id`, `amount`, `type`, `accountid`, `code`, `paypalmail`, `date`) VALUES (NULL , '".$paylist[$mc_gross]."', 'Paypal', '".$prem['id']."', '".$mc_gross."', '".$payer_email."',CURRENT_TIMESTAMP);";

//Everything looks fine, add points and log them.
$result2 = mysql_query($qry2);
$log_data = mysql_query($executepaypallog);
}
else
{
echo("Error.");
}
?>

Change the point value after donating.
 
It seems it wont reach the IPN file, you can write like 9827349823749 as account, it doesnt care which account you write.
 
Back
Top