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

Updated Shop System [Modern Acc]

Does this paypal script work? Cause in mine when players donate they dont get points :/
 
Last edited:
This is what i got in my paypal

Code:
<?PHP
require("config.php");
require("gifts/config/config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom'])))); 
$session = stripslashes(ucwords(strtolower(trim($_REQUEST['session']))));  
$receiver_email = $_REQUEST['receiver_email'];  
$payment_status = $_REQUEST['payment_status'];  
$mc_gross = $_REQUEST['payment_gross'];  
$payer_email = $_REQUEST['payer_email']; 

if ($payment_status == "Completed" & $receiver_email == $config['donations']['paypal']['Mail'] & $mc_gross == $config['donations']['paypal']['Amount']) {  

$prem = $SQL->query("SELECT premium_points FROM accounts WHERE accounts.name = '".$custom."'")->fetch();  

$points = $prem['premium_points'] + $config['donations']['paypal']['Points'];  

$SQL->query("UPDATE accounts SET premium_points = '".$points."' WHERE name = '".$custom."'"); 

$SQL->query("INSERT INTO shop_donation_history (`id`, `method`, `receiver`, `buyer`, `account`, `points`, `date`) VALUES (NULL, 'PayPal', '".$config['donations']['paypal']['Mail']."', '".$session."', '".$custom."', '".$config['donations']['paypal']['Points']."', '".time()."');");

}  
else  
 {   
 echo("Error.");  
 }  
?>

What do i have to edit or what? ^.-
 

Attachments

Hey i got a question , I downloaded that shop offer and i putted htdocs in my htdocs, that shop thing in my htdocs, And i just wanna ask how does it work? do i have to put a script i logged into my admin panel i see no add or purshe don item or like that
 
Hey i got a question , I downloaded that shop offer and i putted htdocs in my htdocs, that shop thing in my htdocs, And i just wanna ask how does it work? do i have to put a script i logged into my admin panel i see no add or purshe don item or like that

put gifts folder in htdocs and system/pages/gifts.php in your pages
then login to admin account then goto localhost//index.php/p/v/gifts
u will see that shop system installed ... that is all
 
Back
Top