Bogarts Panda
Banned User
- Joined
- Jan 11, 2013
- Messages
- 132
- Reaction score
- 1
Hey i have paygol i think my paygol is fuckt up. Cuz when ppl want to donate they want donate 7 euro for 27 points , and they click and it says 2 sms (100kr) and it says send gol50 and i have 5 euro for 18 points and they have to send gol50 and it works
when they wanna donate 10 euro for 49 points 2 sms for 10 euro
and i checked my paygol service and it check theese amout was right 7 euro for 27 points and in my website they click 7 euro for 27 points it comes 10 euro (2 sms) how to fix the bug? i hope you understand my english XD here is my both scripts
and i tryed to do a new one and still same when i made the new one , and i took the new one scripts so still same .. i use Modern ACC
when they wanna donate 10 euro for 49 points 2 sms for 10 euro
and i checked my paygol service and it check theese amout was right 7 euro for 27 points and in my website they click 7 euro for 27 points it comes 10 euro (2 sms) how to fix the bug? i hope you understand my english XD here is my both scripts
and i tryed to do a new one and still same when i made the new one , and i took the new one scripts so still same .. i use Modern ACC
PHP:
<b>SMS DONATION</b></CENTER><br /><br />
<ol>
<li>Enter your account number.</li>
<li>Choose your payment price.</li>
<li>Click on the red Black by mobile button.</li>
<li>Follow the instructions.</li>
<li>Your points will be added automatically.</li>
</ol>
<!-- PayGol Form using Post method -->
<form name="pg_frm" method="post" action="http://www.paygol.com/micropayment/paynow_post" >
Account Number:<p>
<input type="text" name="pg_custom" value=""><p>
<input type="hidden" name="pg_serviceid" value="45134">
<input type="hidden" name="pg_currency" value="EUR">
<input type="hidden" name="pg_name" value="GameFate OT">
<!-- With Option buttons -->
<input type="radio" name="pg_price" value="1"checked>18 points 5 EURO<p>
<input type="radio" name="pg_price" value="2">27 points 7 EURO<p>
<input type="radio" name="pg_price" value="3">49 points 10 EURO<p>
<input type="hidden" name="pg_return_url" value="http://gamefate.hopto.org">
<input type="hidden" name="pg_cancel_url" value="">
<input type="image" name="pg_button" class="paygol" src="http://www.paygol.com/micropayment/img/buttons/150/black_en_pbm.png" border="0" alt="Make payments with PayGol: the easiest way!" title="Make payments with PayGol: the easiest way!" onClick="pg_reDirect(this.form)">
</form>
PHP:
// 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 = "****************."; //Database password
$db = "Gangnam Style"; //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);
?>