Results 1 to 2 of 2

Thread: Implementing paygol

  1. #1
    Thread Starter
    Junior Member mijmu's Avatar
    Join Date
    Jul 2011
    Posts
    27
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Implementing paygol

    Hi

    I am looking at implementing paygol on my website (under construction).

    paygol give you most of the code for the popup. I put this in gateway.php

    <!-- 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="XXXX">
    <input type="hidden" name="pg_currency" value="EUR">
    <input type="hidden" name="pg_name" value="Pay by SMS">
    <input type="hidden" name="pg_custom" value="">
    <input type="hidden" name="pg_price" value="1.5">
    <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/175/pay_en_4.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>

    first thing is, what can I use as the return url. Normally there is a page to say the ad is paid for etc.

    Second thing is they have given this example of code that can be used to update the database to put in paid status.

    can anyone tell me how to do that.

    <?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'];
    $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

    ?>

    Thanks for your help.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,694
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Paygol SMS payment gateway
    By acidrainz in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 26th, 2012, 12:53 PM
  2. Implementing adsense codes on ad pages
    By panks7077 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 2nd, 2011, 03:53 AM
  3. Implementing a new Payment Gateway
    By tinygiantstudios in forum JobRoller General Discussion
    Replies: 13
    Last Post: April 14th, 2011, 11:29 AM
  4. [MOD NEEDED] Implementing a new taxonomy
    By aaronsmith in forum JobRoller General Discussion
    Replies: 0
    Last Post: April 7th, 2011, 01:48 PM