Hello, i would like to release my PayGol IPN, i have been using it for a couple of months and it does all the work!
Step 1
Register at PayGol and create a service.
http://i45.tinypic.com/2zqv9fs.png
It's very important that Url Background is your hotel ip(if using cloudflare).
Choose which countries that are allowed to use your service and click "Save".
If you did everything like i told you should now have created a service.
Step 2
We are now ready to install the script, go to your root folder and create a new folder "pg", go to your new folder and create the file "_bg.php".
Step 3
Copy this; [PHP] PayGol IPN - Pastebin.com and paste it into _bg.php and configure this file with your DB details, currencies etc.
Step 4
You will need a HTML code from PayGol:
Go to https://secure.paygol.com/services, find your service and click on this icon "https://secure.paygol.com/images/icons/18x18/tools.png".
Now copy the PopUp code and add it into your CMS.
Step 5
Now you probably have a "Pay Now" button in your CMS, only one last step.
You will need to find:
And then change it to this:PHP Code:<input type="hidden" name="pg_custom" value="">
{id} will only work in RevCMS, it gets the user ID so the user get VIP.PHP Code:<input type="hidden" name="pg_custom" value="{id}">
Step 6 - Only for RevCMS
Go to app / class.template.php
Find
Then add this on a new line over:PHP Code:$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
This will make {id} work.PHP Code:$this->setParams('id', $users->getInfo($_SESSION['user']['id'], 'id'));
This script will give 100 VIP-Points, you can change the query to whatever you wan't.
Sorry for my bad English, im from Norway.
Best Regards,
Exonize

