• 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 System [NOT WORKING]

ugurdrahs

New Member
Joined
May 6, 2010
Messages
555
Reaction score
2
Location
Netherland
Hi,

I am using Linux debian 5.0 with webserver Nginx.


-My paypal system isint working automatically, when someone make a donation.
He/she dont receive it automatic.
- I already have done the dbb thing on paypal.com like using my websites ipn.php thing, and it still doesnt work.
-and I also got them all at chmod 777, but it still dont work.


My paypal.html;

PHP:
<b>PayPal Shop System.</b><br><br>


The shop costs:<ul><li> 5 EUR (for 300 points)</li><li> 10 EUR (for 650 points)</li><li> 20 EUR (for 1400 points)</li><br>

<b>Here are the steps you need to make:</b> <br>
1. A PayPal account with a required balance [5, 10 or 20 EUR] or a creditcard. <br>
2. Fill in your account number. <br>
3. Click on the Buy Now button or your creditcard brand. <br>
4. Make a transaction. <br>
5. After the transaction, ur points will be added so fast as we can<br>
6. ur points will be added <br> </span>
7. Go to "Choose your gift" and use your points <br> <br>
<span style="color:red">If you recall the money, and your premiumpoints can't be recalled your account will be deleted</span>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<PAYPAL EMAIL>">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Donating">
<b>Account name/login:</b> <input type="text"  name="custom" value="">

<select name="amount">
  <option value="5.00">5 EUR</option>
  <option value="10.00">10 EUR</option>
  <option value="20.00">20 EUR</option>
</select>
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="notify_url" value="http://<mywebsite>/paypal/ipn/ipn.php">
<input type="hidden" name="return" value="http://<mywebsite>t">
<input type="hidden" name="rm" value="0">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

And ipn.php
PHP:
<?php
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 = '<myPASS>'; //DB Pass  
$mysql_db = '<MYDB>'; //DB Name  
$file = 'paypal.log'; //Paypal Log Name will be placed in the same location as your ipn.php file 
$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...";
$hak = fopen("scammer.log", "a");
fwrite($hak, "$ip \r\n");
fclose($hak);
die(0);
}
$time = date("F j, Y, g:i a"); 
$paylist = array("5.00" => 300, "10.00" => 650, "20.00" => 1400);

// 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 == "<MypaypalEMAIL>" && isset($paylist[$mc_gross]) && $mc_currency == "EUR") {   
$somecode = "'$time' '$custom' '$payer_email' '$mc_gross' '$ip'\r\n";

$qry2 = "UPDATE accounts SET premium_points = premium_points + {$paylist[$mc_gross]} WHERE name = '$custom'";  
// Log Paypal Transaction 
$hak = fopen($file, "a"); 
fwrite($hak, $somecode); 
fclose($hak); 

$result2 = mysql_query($qry2);  
}  
else  
 {   
 echo("Error.");  
 }  
?>


And I also got the .htacces in the same folder where ipn.php is,
I actually dunno if thats needed but I have it so

.htacces:
PHP:
<files "*.*">
Allow from 84.47.125.0/19 66.211.160.0/19 216.113.160.0/19
Deny from All
</files>


I hope some1 can help,

repp+ for him/her
 
Last edited:
Make sure ipn on paypal.com is directly connected to the ipn.php script, also try to remove the .htaccess in-case paypals IPN server IP isnt provided correctly in the .htaccess file.
 
Make sure ipn on paypal.com is directly connected to the ipn.php script, also try to remove the .htaccess in-case paypals IPN server IP isnt provided correctly in the .htaccess file.

man its already directed connected to the ipn.php script, but it still doesnt work :(
and I deleted the.htacces, and when some1 made a donation it still dont add automatic,

anyway thx for using ur time to help me.
 
Back
Top