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

Windows [Gesior AAC] PayGOL system

Wartio

Any game ideas?
Joined
Apr 2, 2010
Messages
457
Reaction score
29
Location
Sweden
Hey there!

i just installed PAYGOL System to my website, but when i enter the website i get "Error: Unknown IP" so i need help with this

Paygol.php
Code:
<?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     = "****"; //Database username
$dbpassword = "****"; //Database password
$db         = "*****"; //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);

?>

Buypoints.php
Code:
<?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>
</br>
<center><b><li>2 Premium Points for 3 EUR</li>
<li>4 Premium Points for 6 EUR</li>
<li>1 Premium Points for 10 EUR</li>
</center></b>

</br>
';

$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 number:<p>
<input type="text" name="pg_custom" value=""><p>
<input type="hidden" name="pg_serviceid" value="10****">
<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>2 Premium Points 3<p>
<input type="radio" name="pg_price" value="2">4 Premium Points 6<p>
<input type="radio" name="pg_price" value="3">1 Premium Points 10<p>
<input type="hidden" name="pg_return_url" value="http://******.hopto.org/index.php?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/125/red_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>  </center>';

?>

N3kQO4Otx.png



PAYGOL Settings:

hRgVcr0vS.png
 

Attachments

  • upload_2014-11-27_2-59-52.png
    upload_2014-11-27_2-59-52.png
    158.7 KB · Views: 15 · VirusTotal
Because you are using paygol.php as IPN, to make donations the url should be ?subtopic=buypoints
 
Because you are using paygol.php as IPN, to make donations the url should be ?subtopic=buypoints
I changed it now when i enter it says

z96KvW_CH.png


and when i enter only "****.sytes.net/?subtopic=buypoints then i get the paygol options when i write my account number and choose premium points amount and click "Buy" i get this

l2786pAcu.png
 
Back
Top