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

ipn paypal

nuelma123

New Member
Joined
Jun 6, 2011
Messages
66
Reaction score
1
I using this: http://penumbra.ddns.net/ipn/ipn.php for paypal and archive paypal.html + ipn.php of this post: https://otland.net/threads/gesior-working-paypal-script.176722/

BUT I NOT GET POINTS AUTOMATICS.
WHY??????


PLEASE HELP ME

f5jArlu.png
 
Check for what ports and ip PayPal send it request, and check if your computer is blocking any. If you have installed everything, files has the right permissions, that's much likely the reason why you are not receiving.
 
Screenshot

as I can see the ports of PayPal?

I need all ips of PAYPAL, u can to help to get?

ur6A3bv.png


this is the error, but i don't know how fix :(

PLEASE HELP

bump!
 
Last edited by a moderator:
Delete checking your ip and paste this
Code:
if($ip != "66.211.170.66" && $ip != "216.113.188.202" && $ip != "216.113.188.203" && $ip != "216.113.188.202" && $ip != "173.0.81.1" && $ip != "notify.paypal.com" && $ip != "73.0.81.33" && $ip != "73.0.81.33" ) {
    print "Acess restricted";

Delete your db operations and paste this
Code:
// CHECK CURRENCY
$currency =  $_REQUEST['mc_currency'];

//  RECIEVING PAYMENT IN EURO

if ($payment_status == "Completed" && $receiver_email == "YOUR MAIL" && $currency == "EUR" && isset($paylist[$mc_gross]))
{


    $query = "SELECT premium_points FROM accounts WHERE accounts.id = '$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.id = '$custom'";
    // Log Paypal Transaction
    $hak = fopen($file, "a");
    fwrite($hak, $somecode);
    fclose($hak);
    $result2 = mysql_query($qry2);

}

Remeber to have your array currency like: 5.00 . Two zeros at the end
Code:
// currency
$paylist = array("5.00" => 50, "10.00" => 100, "20.00" => 240, "40.00" => 520);
 
Last edited by a moderator:
These Gesior script doesnt worked for me too. So I made this below and works perfect

Code:
<?php
if ($_REQUEST['debug']) {
ini_set("display_errors", True);
error_reporting(E_ALL);
}

// GIVE HERE YOUR DB INFO

$mysql_host = 'localhost'; //Leave at localhost 
$mysql_user = 'YOUR DB USERNAME'; //DB User 
$mysql_pass = 'YOUR DB PASSWORD'; //DB Pass 
$mysql_db = 'YOUR DB NAME'; //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.202" && $ip != "173.0.81.1" && $ip != "notify.paypal.com" && $ip != "73.0.81.33" && $ip != "73.0.81.33" ) { 
    print "Acess restricted"; 
$hak = fopen("scammer.log", "a");
fwrite($hak, "$ip \r\n");
fclose($hak);
die(0);
}
$time = date("F j, Y, g:i a");
// REMEBER THERE ARE DOTS AND TWO ZEROS
$paylist = array("5.00" => 500, "10.20" => 1000, "20.70" => 2000, "40.80" => 3000);

// 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']; 

// SPRAWDZ WALUTE  
$currency =  $_REQUEST['mc_currency'];

$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 (isset($paylisteur[$mc_gross])) ? 1 : 0 . '\n';  
print $receiver_email . '\n'; 
print $custom . '\n'; 
} 
// GIVE HERE YOUR MAIL
if ($payment_status == "Completed" && $receiver_email == "YOUR MAIL" && $currency == "EUR" && isset($paylist[$mc_gross]))
 {  

    $query = "SELECT premium_points FROM accounts WHERE accounts.id = '$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 = $paylisteur[$mc_gross]; 
    $points = $prem['premium_points'] + $give;  
    // $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);  
    $result2 = mysql_query($qry2);  

} 


echo("Error."); 
} 
?>
 
name="custom" U are not sending account id

faster way to achieve that script work .make this file paypal.php

Code:
<?php
if(!defined('INITIALIZED'))
    exit;

if($logged)
{
    require_once('config.php');
  ';

   
    echo '<style>
    table
    {
    border-collapse:collapse;
    }
    table, td, th
    {
    border:1px solid black;
    }
    </style>';

    echo '<table class="tabelapaypal" text-align="center" cellpadding="15" >

<tr><td colspan="2"><h2>Automatic PayPal shop system</h2><br><b>Here are the steps you need to make:</b><br>
    1. You need a valid creditcard <b>or</b> a PayPal <a href="https://www.paypal.com/signup/account">Create Paypal account</a>account with a required amount of money.<br>
    2. Choose how many points you want buy.<br />
    3. Click on the donate/buy button.<br>
    4. Make a transaction on PayPal.<br>
    5. After the transaction points will be automatically added to your account.<br>
    6. Go to Item shop Shop and use your points.</b><br /><br /><br /><br /></td></tr>



    <tr><td style="width:100%; table-layout: fixed; height: 50px;" colspan="2" ><b>Select offer:</b></td></tr>

   

    ';
    foreach($paypals as $paypal)
    {
        echo '<tr "><td>Buy ' . $paypal['premium_points'] . ' premium points for ' . $paypal['money_amount'] . ' ' . $paypal['money_currency'] . '</td><td style="text-align:center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="' . $paypal_payment_type . '">
        <input type="hidden" name="business" value="' . $paypal['mail'] . '">
        <input type="hidden" name="item_name" value="' . htmlspecialchars($paypal['name']) . '">
        <input type="hidden" name="custom" value="' . $account_logged->getID() . '">
        <input type="hidden" name="amount" value="' . htmlspecialchars($paypal['money_amount']) . '">
        <input type="hidden" name="currency_code" value="' . htmlspecialchars($paypal['money_currency']) . '">
        <input type="hidden" name="no_note" value="0">
        <input type="hidden" name="no_shipping" value="1">
        <input type="hidden" name="notify_url" value="' . $paypal_report_url . '">
        <input type="hidden" name="return" value="' . $paypal_return_url . '">
        <input type="hidden" name="rm" value="0">
        <input type="image" src="' . $paypal_image . '" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
        </form></td></tr> ';


    }
    echo '</table> <br><br><br><br>';
}
else
    echo 'You are not logged in. Login first to buy points.';

in the same folder as paypal.php. File below config.php. PASTE your emails here below !

in money amount and in premium_pointts must be the same values of
$paylist = array("1.20" => 50, "2.40" => 100, "4.40" => 200, "8.00" => 400);

Code:
<?php
$paypal_report_url = 'http://pennumbra.ddns.net/ipn/ipn.php'; // <-- url to ipn
$paypal_return_url = 'http://pennumbra.ddns.net/?subtopic=shopsystem'; // shop
$paypal_image = 'https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif';
$paypal_payment_type = '_xclick'; // '_xclick' (Buy Now) or '_donations'

$paypals[0]['mail'] = 'MAIL'; // your paypal MAIL
$paypals[0]['name'] = '50 Premium points 1,20 EUR';
$paypals[0]['money_amount'] = '1.2';
$paypals[0]['money_currency'] = 'EUR'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[0]['premium_points'] = 50;

$paypals[1]['mail'] = 'MAIL'; // your paypal MAIL
$paypals[1]['name'] = '100 Premium points 2,40 EUR';
$paypals[1]['money_amount'] = '2.4';
$paypals[1]['money_currency'] = 'EUR'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[1]['premium_points'] = 100;

$paypals[2]['mail'] = 'MAIL'; // your paypal login
$paypals[2]['name'] = '200 Premium points 4,40 EUR';
$paypals[2]['money_amount'] = '4.4';
$paypals[2]['money_currency'] = 'EUR'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[2]['premium_points'] = 200;

$paypals[3]['mail'] = 'MAIL'; // your paypal MAIL
$paypals[3]['name'] = '400 Premium points 8,00 EUR';
$paypals[3]['money_amount'] = '8';
$paypals[3]['money_currency'] = 'EUR'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[3]['premium_points'] = 400;
 
Last edited by a moderator:
Back
Top