[AutoVIP][HELP]PayGol Script

jappe

Member
Sep 16, 2011
65
3
Hey as the title say, do any of you guys have a script for VIP phurchases on the VIP page? If you have, can you send me it? Notice, im using paygol/zaypay


Best regards.
 

Jeffrey

Devbest Indian Tech Support
FindRetros Moderator
Feb 5, 2013
1,180
412


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 and .

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; 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 , find your service and click on this icon "
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:
PHP:
 <input type="hidden" name="pg_custom" value="">
And then change it to this:
PHP:
 <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:
 $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
Then add this on a new line over:
PHP:
 $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
 

jappe

Member
Sep 16, 2011
65
3


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 and .

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; 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 , find your service and click on this icon "
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:
PHP:
 <input type="hidden" name="pg_custom" value="">
And then change it to this:
PHP:
 <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:
 $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
Then add this on a new line over:
PHP:
 $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
Thank you!
 

Users who are viewing this thread

Top