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

Paygol dont give points

Scorpvm 101

Active Member
Joined
Feb 23, 2010
Messages
459
Solutions
3
Reaction score
27
Location
Spain
Well, the problem I have is that I dont get points when put the pin code.
I have reviewed the data of the script and everything is fine, but I dont get the points.

I use that two scripts:


HTML:
<?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 [url=http://www.slideshare.net/paygol/paygol-automatic-sms-payments-in-tibia]Paygol automatic sms payments in Tibia[/url] which will guide you step by step.

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

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 [url=http://www.slideshare.net/paygol/paygol-automatic-smspaymentsintibiaes]Paygol pagos automaticos por sms en Tibia[/url] que te ayudara paso a paso..

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


// 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     = "MYIP"; //Your database domain
$dbuser     = "root"; //Database username
$dbpassword = "MYPASSWORD"; //Database password
$db         = "MYDATABASENAME"; //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);

?>
and


HTML:
<?PHP


$main_content .= '
<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 Pay by mobile button.</li>
	<li>Follow the instructions.</li>
	<li>Your points will be added automatically.</li>

</ol>
-Click on image:


';

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

<!-- PayGol Form -->
<form name="pg_frm">
 Enter account<p>
 <input type="text" name="pg_custom" value=""><p>
 <input type="hidden" name="pg_serviceid" value="13709">
 <input type="hidden" name="pg_currency" value="EUR">
 <input type="hidden" name="pg_name" value="Swelandia">

 <!-- With Dropdown -->
 <select name="pg_price"> 
  <option value="1" selected>Points x100 1</option>
  <option value="2">Points x300 4</option>
  <option value="3">Points x500 6</option>
 </select>

 <input type="hidden" name="pg_return_url" value="http://MYIP/?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/175/black_es_pbm.png" border="0" alt="Realiza pagos con PayGol: la forma mas facil!" title="Realiza pagos con PayGol: la forma mas facil!" onClick="pg_reDirect(this.form)">
</form>  </center>'; 

?>

- - - Updated - - -

Bump
 
Last edited:
Back
Top