<input type="hidden" name="pg_custom" value="">
<input type="hidden" name="pg_custom" value="{id}">
$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
$this->setParams('id', $users->getInfo($_SESSION['user']['id'], 'id'));
Thank you!You must be registered for see links
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 atYou must be registered for see linksandYou must be registered for see links.
![]()
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;You must be registered for see linksand 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 toYou must be registered for see links, 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:
And then change it to this:PHP:<input type="hidden" name="pg_custom" value="">
{id} will only work in RevCMS, it gets the user ID so the user get VIP.PHP:<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:$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
This will make {id} work.PHP:$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
If I helped you or anyone else, Mark the best post so that other people knowThank you!