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

Lua disadvantage paypal/Website don`t a give points

Joker Man

Active Member
Joined
Nov 7, 2021
Messages
106
Reaction score
27
Hello Everyone, My Website Does not give points after payment what to do?
</TABLE>
';
}
if($buy_tipo == 2) {
$main_content .='
<b>PayPal Shop System</b><br /><br />
The shop costs:
<ul><li> 2 USD (for 20 points)</li>
<li> 5 USD (for 60 points)</li><li> 10 USD (for 140 points)</li></ul>
<br />
<b>Here are the steps you need to make:</b> <br />
1. A PayPal account with a required balance [2, 5 or 10 USD] 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 20, 60 or 140 points will be automatically added to your account. <br />
6. Go to Item shop and use your points <br /> <br /> <br />

<span style="color:red">If you recall the money, and your premium points can\'t be recalled your account will be deleted.</span>
<br />
<br />
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%">
<tr BGCOLOR="'.$config['site']['vdarkborder'].'">
<td CLASS="white"><b>Paypal</b></td>
</tr>
<tr BGCOLOR='.$config['site']['darkborder'].'>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="lc" value="USD">
<input type="hidden" name="item_name" value="Premium points">
<b>Account name/login:</b> <input type="text" name="custom" value="" style="padding: 5px;" autocomplete="on">

<select name="amount">
<option value="2.00">2 USD</option>
<option value="5.00">5 USD</option>
<option value="10.00">10 USD</option>
</select>
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="notify_url" value="'.$config['server']['localhost/paypal'].'/ipn.php">
<input type="hidden" name="return" value="'.$config['server']['localhost'].'">
<input type="hidden" name="rm" value="0">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="submit" value="Submit" style="padding: 5px;" />
</form></td>
</tr>
</TABLE>
';}
}
 

Attachments

IDK what acc. maker it is, but first thing that I've noticed is:
PHP:
<input type="hidden" name="notify_url" value="'.$config['server']['localhost/paypal'].'/ipn.php">
file ipn.php is probably in directory paypal. Then it should be:
PHP:
<input type="hidden" name="notify_url" value="'.$config['server']['localhost'].'/paypal/ipn.php">
 
Website Made myacc>> | Account Maker by Gesior" />
Can I have a question please?
how i get experimental paypal?
Lua:
<?php  
    if(gethostbyaddr($_SERVER['REMOTE_ADDR']) != 'notify.paypal.com')
    {
        exit();
    }
    if($_REQUEST['debug'])
    {
        ini_set('display_errors', true);
        error_reporting(E_ALL);
    }
    // MySQLi connection
    $mysql = new mysqli('localhost', 'root', 'password', 'database');
    // Variables, don't touch!
    $payer_email = $_REQUEST['payer_email'];
    $receiverEmail = $_REQUEST['receiver_email'];
    $paymentStatus = $_REQUEST['payment_status'];
    $mcGross = $_REQUEST['mc_gross'];
    $mcCurrency = $_REQUEST['mc_currency'];
    $customValue = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
    // Prices
    $prices = array('2.00' => 20, '5.00' => 60, '10.00' => 140, '40.00' => 80);
    // Setup
    $receiver = '[email protected]';
    $currency = 'USD';
    $whatToDo = 2; // 1 - delete, 2 - custom
   
    if($paymentStatus == 'Completed' && $receiverEmail == $receiver && isset($prices[$mcGross]) && $mcCurrency == $currency)
    {
        $accountId = $mysql->query('SELECT id, premium_points FROM accounts WHERE accounts.name = '.$customValue.'');
        $mysql->query('UPDATE `accounts` SET `premium_points` = `premium_points` + ' . $prices[$mc_gross] . ' WHERE `name` = '.$customValue.'');
        # $mysql->query('INSERT INTO `z_shop_points_bought` (`id`, `amount`, `type`, `accountid`, `code`, `paypalmail`, `date`) VALUES (NULL , '.$prices[$mc_gross].', Paypal, '.$accountId['id'].', '.$mc_gross.', '.$payer_email.', CURRENT_TIMESTAMP);');
    }
    elseif($paymentStatus == 'Reversed' && $receiverEmail == $receiver)
    {
        if($whatToDo == 1)
        {
            $mysql->query('DELETE FROM `accounts` WHERE `name` = "' . $customValue . '"');
        }
        elseif($whatToDo == 2)
        {
            // if not deleting, what to do?
        }
    }
    else
    {
        exit();
    }
?>
 
Last edited:
Last edited:
You enable IPN Instant Notifications on your paypal?

I upated it, How i get paypal experimental
You check Script ipn? Everything ok?
 

Attachments

Back
Top