• 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!

Linux Paypal, Done all correct

Daveo

New Member
Joined
May 2, 2010
Messages
72
Reaction score
0
I'm running linux debian 5, don't know why this doesn't work i did all i could find but without any luck.

PHP:
<b>PayPal Shop System.</b><br><br>
For donating you will recive gift:<ul><li> 5 EUR (for 7 points)</li><li> 10 EUR (for 15 points)</li><li> 20 EUR (for 32 points)</li><br>

<br>
<br>
<center><font size="5"><b>Before you donate you must accept our <a href="#">terms and agreements</a>.</b></font>
<br>
<br>
<br><TEXTAREA ROWS="18" WRAP="physical" COLS="80" READONLY="true" font-family="verdana">
* If you do not agree with these terms you are not allowed
 to donate.
* Understand that we do not sell items or points, this
is donation.
* If you are under 18 years old you need to have
 your parents permission.
* If you lose any donation items or a vip account
 you will not get it back.
* Youre not allowed to donate with money that does
 not belong to you.
* We have the rights to not give you the items or
 vip account status.
* We have the rights to change the terms and agreements
 whenever we want.
* We have the rights to modify any of the donation items.
* We have the rights to change the prices whenever we want.
* We have the rights to reset the server whenever we want.
* We do not refund any payments.
</TEXTAREA><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="[email protected]">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="http://test.mine.nu Donation">
<b>Account name/login:</b> <input type="text"  name="custom" value="">

<select name="amount">
  <option value="05.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://test.mine.nu/paypal/ipn/ipn.php">
<input type="hidden" name="return" value="http://test.mine.nu">
<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_buynowCC_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>


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 = 'test'; //DB Pass  
$mysql_db = 'Test'; //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'];
if($ip != "66.211.170.66" && $ip != "216.113.188.202" && $ip != "216.113.188.203" && $ip != "216.113.188.204") {
	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("05.00" => 7, "10.00" => 15, "20.00" => 32);

// 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']; 
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 == "[email protected]" && isset($paylist[$mc_gross])) {  

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

$result = mysql_query($query);  

$prem = mysql_fetch_array($result);  
$somecode = "'$time' '$custom' '$payer_email' '$mc_gross' '$ip'\r\n";

// figure out how much to give
$give = $paylist[$mc_gross];
$points = $prem['premium_points'] + $give;  
// $points = mysql_query($prem)  
$qry2 = "UPDATE accounts SET premium_points = '$points' WHERE accounts.name = '$custom'";  
// Log Paypal Transaction 
$hak = fopen($file, "a"); 
fwrite($hak, $somecode); 
fclose($hak); 

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

I gave all paypal files permission 777, also i don't have htaccess file.

This is stains paypal script, latest release.

Any ideas why it doesn't add points nor log in log file?

Help!:p
 
Last edited:
I recived this e-mail some months ago on my previous ot


Please check your server that handles PayPal Instant Payment Notification (IPN) messages. Messages sent to the following URL(s) are not being received:

http://ot.mine.nu/paypal/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.

Yours sincerely,

PayPal

Can this mean anything???
 
@up it means PayPal failed to send the IPN request. (your server did not respond)

I can see in your paypal.html file you have
Code:
<input type="hidden" name="notify_url" value="http://test.mine.nu/paypal/ipn/ipn.php">
but the url doesn't exist, maybe your server is down right now or you have the wrong IPN url there.
 
obviously test.mine.nu is not my ot just a name to fill in for correct address

when i go to my ot ipn i get this

its for my friends ot which is
ravena.mine.nu/paypal/ipn/ipn.php

Scammer...
 
So i made a sandbox acc, got user etc. How do i send ipn request?
And what do you mean by removing ip checks. ;x

Soz for being a noob, ;x first time doing this

Thanks for helping.
 
remove
Code:
if($ip != "66.211.170.66" && $ip != "216.113.188.202" && $ip != "216.113.188.203" && $ip != "216.113.188.204") {
    print "Scammer...";
$hak = fopen("scammer.log", "a");
fwrite($hak, "$ip \r\n");
fclose($hak);
die(0);
}

and inside paypal sandbox there is a feature to send ipn requests, just make sure you're sending a completed transfer and your receiver_email is the same as the paypal script allows and the field custom is the account name
 
Back
Top