• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Paypal Script HELP.

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
My Php is not up to par and I'm trying to add an option where they can change the set number of point.

so like:

15 points=5 dollars
25 points=7 dollars
30 points=10 dollars

And so forth. I'm not very good at php but I'm getting there so any one have an idea and would be willing to walk me threw it?

Thanks again guys.
 
What scripts do you need exactly? Ill post what I think you need :s But I really dont know.

paypal.php:
XML:
<?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.");  
 }  
?>

config.php
XML:
<?php

$config['donations']['methods'] = array('ContenidoPago' => false, 'PayPal' => true);

$config['donations']['paypal'] = array('Mail' => '[email protected]', 'Points' => 25, 'Product' => 'Donation for Sepultra', 'Money' => 'USD', 'Amount' => 10);

$config['donations']['contenidopago'] = array('Product' => '1347', 'Points' => 4);

?>


I think it would be easier if we just used teamviewer. If you want but I think thats what you need I'm not 100%
 
Back
Top