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.

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 "
".
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:
PHP Code:
<input type="hidden" name="pg_custom" value="">
And then change it to this:
PHP Code:
<input type="hidden" name="pg_custom" value="{id}">
{id} will only work in RevCMS, it gets the user ID so the user get VIP.
Step 6 - Only for RevCMS
Go to app / class.template.php
Find
PHP Code:
$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
Then add this on a new line over:
PHP Code:
$this->setParams('id', $users->getInfo($_SESSION['user']['id'], 'id'));
This will make {id} work.
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