Hello Otland! :$
I have googled around for 40 minutes, but haven't founded any solution! So thats why I make a new post!
When you donate on my website, the payers wont recieve any donate points.
Im not sure what the problem is?
--------------------------------------------------------------------
My paygol scripts looks like this:
// check that the request comes from PayGol server
if(!in_array($_SERVER['REMOTE_ADDR'],
* array('109.70.3.48', '109.70.3.146', '109.70.3.58'))) {
* header("HTTP/1.0 403 Forbidden");
* die("Error: Unknown IP");
//Get all parameters from PayGol
$message_id = $_GET[message_id];
$shortcode = $_GET[shortcode];
$keyword = $_GET[keyword];
$message = $_GET[message];
$sender = $_GET[sender];
$operator = $_GET[operator];
$country = $_GET[country];
$custom = $_GET[custom];//
$price = $_GET[price];
$currency = $_GET[currency];
$points = $_GET[points];
//Replace these parameters by your database details
$dbhost = "localhost"; //Your database domain
$dbuser = "root"; //Database username
$dbpassword = "changedudontneedtosse"; //Database password
$db = "changedudontneedtosse"; //Database name
//Connect to Database
$conn = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($db);
$sql = "UPDATE accounts SET premium_points = premium_points+$points WHERE name = '$custom'";
mysql_query($sql);
mysql_close($conn);
--------------------------------------------------------------------------------------------------------------
But when I donate:
* I do get e-mail that the payment have been succéd.
* I do get money to my PayGol account.
But It dont give away points to the account.<_<
I have the PayGol script, ( but im not sure where to put it ) right now I have it in: xampp/htdocs/paygol.php and xampp/htdocs/gifts/confirm. It worked on my last server before it crashed.
Please help me if you know the problem and you will be rep ++!
I have googled around for 40 minutes, but haven't founded any solution! So thats why I make a new post!
When you donate on my website, the payers wont recieve any donate points.
Im not sure what the problem is?
--------------------------------------------------------------------
My paygol scripts looks like this:
// check that the request comes from PayGol server
if(!in_array($_SERVER['REMOTE_ADDR'],
* array('109.70.3.48', '109.70.3.146', '109.70.3.58'))) {
* header("HTTP/1.0 403 Forbidden");
* die("Error: Unknown IP");
//Get all parameters from PayGol
$message_id = $_GET[message_id];
$shortcode = $_GET[shortcode];
$keyword = $_GET[keyword];
$message = $_GET[message];
$sender = $_GET[sender];
$operator = $_GET[operator];
$country = $_GET[country];
$custom = $_GET[custom];//
$price = $_GET[price];
$currency = $_GET[currency];
$points = $_GET[points];
//Replace these parameters by your database details
$dbhost = "localhost"; //Your database domain
$dbuser = "root"; //Database username
$dbpassword = "changedudontneedtosse"; //Database password
$db = "changedudontneedtosse"; //Database name
//Connect to Database
$conn = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($db);
$sql = "UPDATE accounts SET premium_points = premium_points+$points WHERE name = '$custom'";
mysql_query($sql);
mysql_close($conn);
--------------------------------------------------------------------------------------------------------------
But when I donate:
* I do get e-mail that the payment have been succéd.
* I do get money to my PayGol account.
But It dont give away points to the account.<_<
I have the PayGol script, ( but im not sure where to put it ) right now I have it in: xampp/htdocs/paygol.php and xampp/htdocs/gifts/confirm. It worked on my last server before it crashed.
Please help me if you know the problem and you will be rep ++!