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

Azerty

Active Member
Joined
Apr 15, 2022
Messages
335
Solutions
4
Reaction score
37
Good morning, I added this paypal system in my Gesior, but it is not having the automatic delivery of points.
I looked at the status on the paypal website and it says "Trying Again". Can someone help me?
Post automatically merged:

I believe the problem is the IPs, but I can't find the solution
 
Last edited:
Solution
What acc. maker do you use? In Gesior2012 there is already working Paypal integration. You don't have to add anything. Just configure your paypal account here:

If you are using custom version, you must update paypal servers IPs like I did here:
Good morning, I added this paypal system in my Gesior, but it is not having the automatic delivery of points.
I looked at the status on the paypal website and it says "Trying Again". Can someone help me?
Post automatically merged:

I believe the problem is the IPs, but I can't find the solution
do you have add gesior-shop-system to globalevents
and globaleventsxml >
LUA:
    <globalevent name="gesior-shop-system" interval="30000" script="gesior-shop-system.lua" />
Code:
And did you write your e-mail to to shop config?
 
do you have add gesior-shop-system to globalevents
and globaleventsxml >
LUA:
    <globalevent name="gesior-shop-system" interval="30000" script="gesior-shop-system.lua" />
Code:
And did you write your e-mail to to shop config?
What does this have to do with the problem? The problem is that paypal is "retrying" to send the notification but something is wrong.
In the IPN folder created a file "scammer.log" with the IP 173.0.81.65 but I don't know which of the several ips I should replace. Maybe this is the problem...

ipn.php
PHP:
<?php
if ($_REQUEST['debug']) {
ini_set("display_errors", true);
error_reporting(E_ALL);
}

// GIVE HERE YOUR DB INFO

$mysql_host = 'xxxxxxxxx'; //Leave at localhost
$mysql_user = 'xxxxxxxxx'; //DB User
$mysql_pass = 'xxxxxxxxx'; //DB Pass
$mysql_db = 'servidorxx'; //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 != "173.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" => 50, "8.00" => 125, "15.00" => 250, "28.00" => 500, "49.00" => 1000, "99.00" => 2000, "149.90" => 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'];

// currency

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

    $query = "SELECT coins 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];
    $coins = $prem['coins'] + $give;
    // $coins = mysql_query($prem)
    $qry2 = "UPDATE accounts SET coins = '$coins' WHERE accounts.id = '$custom'";
    // Log Paypal Transaction
    $hak = fopen($file, "a");
    fwrite($hak, $somecode);
    fclose($hak);
    $result2 = mysql_query($qry2);

}

else
{
echo("Error.");
}
?>
 
What acc. maker do you use? In Gesior2012 there is already working Paypal integration. You don't have to add anything. Just configure your paypal account here:

If you are using custom version, you must update paypal servers IPs like I did here:
 
Solution
What acc. maker do you use? In Gesior2012 there is already working Paypal integration. You don't have to add anything. Just configure your paypal account here:

If you are using custom version, you must update paypal servers IPs like I did here:
I use gesior master
Post automatically merged:

Solved! With the Gesior system above.
 
Last edited:

Similar threads

Back
Top