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

Cant get paygol working modern acc! :(

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Hello i use modern acc and i cant get paygol working..(The problem is that i can go in and pay with mobile and all that but when im done and back to swespel.se i dont get(have) the points on my account but people have lost there money) i have done everythink perfect.. register on paygol..
are there any port i need to open for paygol or smth :O ?
(my website: www.swespel.se)
The person that help me can get a donate from me .. like 10-20 euro



EDIT:
And when i look on Paygol log i see this:
http://theduvbo.com/paygol.php?keyword=GOL50&message=488407&points=80&shortcode=9999&message_id=45544&sender=9999999999&operator=Testing&country=SE&currency=EUR&price=4&service_id=41070&custom=6310
Theduvbo.com are not my webbaddress?!



Image of my paygol:
http://3.imgland.net/56Nflk.png


www/system/pages/sms.php
PHP:
<!-- PayGol Form using Post method -->
<table style="background-color:lightblue;">
<tr>
<th>How to:</th>
</tr>
<tr>
<td>1. Type in your account number! <font color="red"><B>(Dont leave this blank)</b></font></td>
</tr>
<tr>
<td>2. Choose donate option</td>
</tr>
<tr>
<td>3. Press "pay by phone"</td>
</tr>
</table>
<center><b>1.</b></center>
<b>Account Number:</b>

<form name="pg_frm" method="post" action="http://www.paygol.com/micropayment/paynow" >
<p>
<blink><font color="red"><b>></b></font></blink><input type="text" name="pg_custom" value=""><blink><font color="red"><b><</b></font></blink><p>
<input type="hidden" name="pg_serviceid" value="41070">
<input type="hidden" name="pg_currency" value="EUR">
<input type="hidden" name="pg_name" value="SweSpel">
<table style="background-color:lightgreen;">
<tr>
<th></th>
</tr><tr>
<center><b>2.</b></center>
<!-- With Option buttons -->
<td><input type="radio" name="pg_price" value="1"checked> 80 Points = 4 Euro</td><p></tr></table>
<table style="background-color:lightgreen;">
<tr>
<th></th>
</tr><tr>
<td><input type="radio" name="pg_price" value="2"> 200 Points = 7 Euro</td><p></tr></table>
<table style="background-color:lightgreen;">
<tr>
<th></th>
</tr><tr>
<td><input type="radio" name="pg_price" value="3"> 300 Points = 10 Euro</td><p></tr></table>
<table style="background-color:lightgreen;">
<tr>
<th></th>
</tr><tr>
  <td><input type="radio" name="pg_price" value="4"> 500 Points = 14 Euro</td><p></tr></table>
<input type="hidden" name="pg_return_url" value="http://swespel.se//index.php/p/v/gifts">
<input type="hidden" name="pg_cancel_url" value="http://swespel.se/">
<center><b>3.</b></center>
<input type="image" name="pg_button" src="http://www.paygol.com/micropayment/img/buttons/175/black_en_pbm.png" border="0" alt="Make payments with PayGol: the easiest way!" title="Make payments with PayGol: the easiest way!" >
</form>

www/paygol.php
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('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        = "newduvbo"; //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);

?>
 
Last edited:
Back
Top