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

Solved Paygol Error Unknown ip

Rossii

Member
Joined
Mar 27, 2012
Messages
366
Reaction score
6
Location
England
Yo i got this script.

PHP:
<?php
/*
English:
This script will help you to integrate PayGol as your sms payment gateway in your Tibia, users can donate and they can have their points in-game, this mean they don't have to wait hours or even days to get their points.
Please read this link http://www.slideshare.net/paygol/paygol-automatic-sms-payments-in-tibia which will guide you step by step.

Note:Before starting you have to create an account at http://www.paygol.com/register

Espanol:
Este codigo te ayudara a integrar PayGol como tu plataforma de pagos por sms en tu Tibia, tus usuarios podran donar y podran obtener sus puntos de inmediato, no tendran que esperar horas o hasta dias para obtener sus puntos.
Por favor, lee esta guia http://www.slideshare.net/paygol/paygol-automatic-smspaymentsintibiaes que te ayudara paso a paso..

Nota:Antes de comenzar, debes crear una cuenta en http://www.paygol.com/register
*/


// check that the request comes from PayGol server
if(!in_array($_SERVER['REMOTE_ADDR'],
  array('qunteot.sytes.net', 'qunteot.sytes.net', 'qunteot.sytes.net'))) {
  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[EUR];
$points		  = $_GET[points];

//Replace these parameters by your database details
$dbhost     = "localhost"; //localhost
$dbuser     = "username"; //root
$dbpassword = "pass"; //daleje*******
$db         = "name"; //myser***
//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);

?>


I have created my services.

317jz2s.png


and i get this error when i try to get to this page on my ot http://localhost/?subtopic=paygol


and i get this error

sdlkph.png



REP++
 
Last edited:
Would be great if you shared your solution. There may be other users who have the same issue with PayGol.
 
Don't edit this line:

LUA:
 array('109.70.3.48', '109.70.3.146', '109.70.3.58', '31.45.23.9'))) {

like OP did like this:

LUA:
  array('qunteot.sytes.net', 'qunteot.sytes.net', 'qunteot.sytes.net'))) {

This would be on line 11
 
Don't edit this line:

LUA:
 array('109.70.3.48', '109.70.3.146', '109.70.3.58', '31.45.23.9'))) {

like OP did like this:

LUA:
  array('qunteot.sytes.net', 'qunteot.sytes.net', 'qunteot.sytes.net'))) {

This would be on line 11

Somebody else told me this and it didn't help.

- - - Updated - - -

I used a different script because that one was bugged

PHP:
<!-- PayGol JavaScript -->
<script src="http://www.paygol.com/micropayment/js/paygol.js" type="text/javascript"></script> 

<!-- PayGol Form -->
<form name="pg_frm">
 Account Number:<p>
 <input type="text" name="pg_custom" value=""><p>
 <input type="hidden" name="pg_serviceid" value="50321">
 <input type="hidden" name="pg_currency" value="EUR">
 <input type="hidden" name="pg_name" value="Premium Points">

 <!-- With Option buttons -->
 <input type="radio" name="pg_price" value="1"checked>3 Premium Points 2 Euros<p>
 <input type="radio" name="pg_price" value="2">6 Premium Points 4 Euros<p>
 <input type="radio" name="pg_price" value="3">18 Premium Points 10 Euros<p>
 <input type="hidden" name="pg_return_url" value="http://qunteot.sytes.net/?subtopic=shopsystem">
 <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>



SOLVED
 
I changed his whole script to this: <!-- PayGol JavaScript -->
<script src="http://www.paygol.com/micropayment/js/paygol.js" type="text/javascript"></script>

<!-- PayGol Form -->
<form name="pg_frm">
Account Number:<p>
<input type="text" name="pg_custom" value=""><p>
<input type="hidden" name="pg_serviceid" value="">
<input type="hidden" name="pg_currency" value="">
<input type="hidden" name="pg_name" value="">

<!-- With Option buttons -->
<input type="radio" name="pg_price" value="1"checked><p>
<input type="radio" name="pg_price" value="2"><p>
<input type="radio" name="pg_price" value="3"> <p>
<input type="hidden" name="pg_return_url" value="">
<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>
 
Yeahh this

PHP:
I changed his whole script to this: <!-- PayGol JavaScript -->
<script src="http://www.paygol.com/micropayment/js/paygol.js" type="text/javascript"></script> 

<!-- PayGol Form -->
<form name="pg_frm">
Account Number:<p>
<input type="text" name="pg_custom" value=""><p>
<input type="hidden" name="pg_serviceid" value="">
<input type="hidden" name="pg_currency" value="">
<input type="hidden" name="pg_name" value="">

<!-- With Option buttons -->
<input type="radio" name="pg_price" value="1"checked><p>
<input type="radio" name="pg_price" value="2"><p>
<input type="radio" name="pg_price" value="3"> <p>
<input type="hidden" name="pg_return_url" value="">
<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>


SOLVED
 
Back
Top