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

Help with paypal script

i filled them like this

$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'root'; //DB User
$mysql_pass = 'mysqlpass'; //DB Pass
$mysql_db = 'mydbname'; //DB Name
 
Try using my script:
Code:
<?PHP
	$config = array("host" => "localhost", "user" => "root", "password" => "pass123", "database" => "ots", "email" => "PayPal Login", "mc_gross" => 5.00, "points" => 200);
	mysql_connect($config["host"], $config["user"], $config["password"]) or die(mysql_error());
	mysql_select_db($config["database"]) or die(mysql_error());

	if ($_REQUEST['payment_status'] == "Completed" && $_REQUEST['receiver_email'] == $config["email"] && $_REQUEST["mc_gross"] == $config["mc_gross"])
	{
		mysql_query("UPDATE `accounts` SET `premium_points` = `premium_points` + ".$config['points']." WHERE `name` = ".strtolower($_REQUEST['custom']).";");
		$log = fopen("./PayPal.log.txt", "a");
		fwrite($log, ">> ".date('d m Y - g:i A')." | Account: ".$_REQUEST['custom']);
		fclose($log);
		echo "<!-- Realized :) -->";
	}
	else
		echo "An error occured!";
?>
 
"email" => "PayPal Login"

what should i put there? my email acc? or nothing?

ill try..and btw, if u can explain me exactly how to do the sandbox test ..would be cool, cuz maybe i did smth wrong, and the script doesnt get the "confirmed transaction" so it does not add the points


edit: typo +


i tryied it , same thing, i guess i do the sandbox test wrong.....


Code:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="Premium points">
<b>Account number:</b> <input type="text"  name="custom" value="">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="10.0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="notify_url" value="http://localhost/ipn/ipn.php">
<input type="hidden" name="return" value="http://localhost/">
<input type="hidden" name="rm" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG_global.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
 
Last edited:
Change
<input type="hidden" name="notify_url" value="http://localhost/ipn/ipn.php">

To
<input type="hidden" name="notify_url" value="http://localhost/paypal/ipn/ipn.php">

:ninja:
 
Back
Top