keep me logged in
forgot password?






Implementation for Web apps


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

<!-- PayGol Form -->
<form name="pg_frm">
 <input type="hidden" name="pg_serviceid" value="123">
 <input type="hidden" name="pg_currency" value="EUR">
 <input type="hidden" name="pg_name" value="DEMO">
 <input type="hidden" name="pg_custom" value="">
 <input type="hidden" name="pg_price" value="1">
 <input type="hidden" name="pg_return_url" value="http://www.paygol.com/micropayment/implementation">
 <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>

<!-- PayGol Form using Post method -->
<form name="pg_frm" method="post" action="http://www.paygol.com/micropayment/paynow" >
 <input type="hidden" name="pg_serviceid" value="123">
 <input type="hidden" name="pg_currency" value="EUR">
 <input type="hidden" name="pg_name" value="DEMO">
 <input type="hidden" name="pg_custom" value="">
 <input type="hidden" name="pg_price" value="1">
 <input type="hidden" name="pg_return_url" value="http://www.paygol.com/micropayment/implementation">
 <input type="hidden" name="pg_cancel_url" value="">
 <input type="image" name="pg_button" 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!" >    
</form>


Go to Top
Go to Top
Go to Top
<?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 the variables from PayGol system
$message_id = $_GET['message_id'];
$service_id = $_GET['service_id'];
$shortcode = $_GET['shortcode'];
$keyword = $_GET['keyword'];
$message = $_GET['message'];
$sender = $_GET['sender'];
$operator = $_GET['operator'];
$country = $_GET['country'];
$custom = $_GET['custom'];
$points = $_GET['points'];
$price = $_GET['price'];
$currency = $_GET['currency'];

// Here you can do whatever you want with the variables, for instance inserting or updating data into your Database

?>
Go to Top

 Who's using PayGol? Coverage & Payouts How it works