PayGol IPN - Automatic VIP
Hello! tought I would re-release my PayGol IPN, I released it back in 2012 so it don't work anymore because PayGol changed a few things.
I didn't just fix the bugs I also made a way for it to work in UberCMS and not just RevCMS.
Let's get started!
Step 1
You should already be registered, if not go ahead and register. Now head over to https://www.paygol.com/micropayment/ this is where we create your PayGol service.
Step 2
Fill in Service name, Report Email, Url Success and Url Cancel. For the other options please copy what I did on the image below.
http://i.imgur.com/5I61mZt.png
(if the image don't work, http://i61.tinypic.com/20t1jr9.png)
It's very important that you use your hotel IP in "Url Background" if you use CloudFlare or any other CDN service. But no worries, your IP will remain hidden.
Step 3
Go to http://multi.sx/10 and download the necessary file. Upload the folder /bg/ to the root directory of your server so you can access it by going to http://yoururl.com/bg/paygol.php.
Open /bg/paygol.php and fill in your database details.
Step 4
You will need some HTML provided by PayGol to put on your website. Go to https://secure.paygol.com/services and find the service we created earlier. Click the tool icon "https://secure.paygol.com/images/icons/18x18/tools.png" and copy the "Button HTML code" into your hotel VIP site.
For UberCMS:
Find
PHP Code:
<input type="hidden" name="pg_custom" value="">
Replace with
PHP Code:
<input type="hidden" name="pg_custom" value="<?php echo USER_ID ; ?>">
For RevCMS:
Find
PHP Code:
<input type="hidden" name="pg_custom" value="">
Replace with
PHP Code:
<input type="hidden" name="pg_custom" value="<?php echo ($id = mysql_result(mysql_query("SELECT `id` FROM `users` WHERE `id`='" . $_SESSION['user']['id'] . "'"), 0));?>">
Step 5
Set your new PayGol service to "demo/test mode" and try to buy VIP on your website. If you followed every step you should automatically get rank 2, 100,000 credits and 50,000 pixels.
Tested on both RevCMS and UberCMS. The reason for releasing this again is because I get messages and skype requests weekly from people who can't manage to fix it.
Please leave a like, enjoy :cool:
Re: PayGol IPN - Automatic VIP
Thanks man, great re-release.
Re: PayGol IPN - Automatic VIP
Does this work with the call function to?
Re: PayGol IPN - Automatic VIP
Thanks for this release, your tutorial was very clear as well. 10/10!
Re: PayGol IPN - Automatic VIP
Is this possible to make with Paypal also ?
Re: PayGol IPN - Automatic VIP
Quote:
Originally Posted by
UartigZone
Is this possible to make with Paypal also ?
Sure, but I have no interest in using PayPal.
Re: PayGol IPN - Automatic VIP
Quote:
Originally Posted by
Exonize
Sure, but I have no interest in using PayPal.
Damn... It will be awesome if you could make one
Re: PayGol IPN - Automatic VIP
Re: PayGol IPN - Automatic VIP
Re: PayGol IPN - Automatic VIP
Does not work for me anymore, after the PayGOL update :(
Re: PayGol IPN - Automatic VIP
Quote:
Originally Posted by
Zedd
Does not work for me anymore, after the PayGOL update :(
Same here
Re: PayGol IPN - Automatic VIP
Quote:
Originally Posted by
UartigZone
Same here
Works perfectly fine, there has not been anymore update since I posted this. And a few minutes before I posted the thread I did a test on both RevCMS and UberCMS.
PM me your skype and I can take a look over TeamViewer.
Re: PayGol IPN - Automatic VIP
Re: PayGol IPN - Automatic VIP
Instead of
Quote:
<input type="hidden" name="pg_custom" value="<?php echo ($id = mysql_result(mysql_query("SELECT `id` FROM `users` WHERE `id`='" . $_SESSION['user']['id'] . "'"), 0));?>">
Shouldn't had done this,
Quote:
<input type="hidden" name="pg_custom" value="<?php echo $_SESSION['user']['id']; ?>">
instead of using a query.. Anyways, nice re-release.
Re: PayGol IPN - Automatic VIP
Quote:
Originally Posted by
JerryCool
Instead of
Shouldn't had done this, instead of using a query.. Anyways, nice re-release.
is that for Revcms?