• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Donation points dont get recived

Strata

Hoster
Joined
Apr 12, 2010
Messages
124
Reaction score
6
Location
USA
people pay with pay pal and for some reason get no points and i do get the money how do i fix this

Gesior ACC 0.3.6
 
have you the right database at ipn.lua
PHP:
$mysql_user = 'root'; //DB User  
$mysql_pass = 'you db pass here'; //DB Pass  
$mysql_db = 'your db name here'; //DB Name

rep++
 
does this mean they have to have the same email as there paypal set to there account for them to get the points?

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 == "##.##") {

$query = "SELECT premium_points FROM accounts WHERE accounts.id = '$custom'";

$result = mysql_query($query);

$prem = mysql_fetch_array($result);

$points = $prem['premium_points'] + 12;
// $points = mysql_query($prem)
$qry2 = "UPDATE accounts SET premium_points = '$points' WHERE accounts.id = '$custom'";
// Log Paypal Transaction
$hak = fopen($file, "a");
fwrite($hak, $somecode);
fclose($hak);
 
Back
Top