Author Topic: PUDS v0.2.7 - PayPal-ULX Donation System  (Read 336607 times)

0 Members and 3 Guests are viewing this topic.

Offline Streetlight

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #45 on: September 27, 2013, 04:00:28 PM »
Hello Streetlight,

You need to enable allow_url_fopen in your PHP configuration. If you are using a webhost you will most likely need to contact them to ask them to enable it. If you do have access to php.ini configuration file change allow_url_fopen=0 to allow_url_fopen=1


Apologises there has not been many updates to the application the last 2 weeks. I am still in London training for my job, another 4 weeks to go and I'll be home :)

Thanks for the help! Sadly my webhost is ... !   Not allowing me or them to change any php settings. So I have had to transfer my donation script to another webhost that allows the "Allow_url_fopen=1"! Thank you though! + rep!

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #46 on: September 28, 2013, 07:53:23 AM »
Thanks for the help! Sadly my webhost is ... !   Not allowing me or them to change any php settings. So I have had to transfer my donation script to another webhost that allows the "Allow_url_fopen=1"! Thank you though! + rep!

My webhost is the same, I will change the Allow_url_fopen is only needed for the steam login functionality.
I will change the steam login system when I have time after training.
[/url]

Offline thetomm2010

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #47 on: September 29, 2013, 11:16:31 AM »
My primary website does not allow me to change my php settings sooo I use this free sight and it works fine lol members.000webhost.com
« Last Edit: October 04, 2013, 11:45:38 PM by thetomm2010 »

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #48 on: October 02, 2013, 03:02:17 AM »
Hey wully, any chance you could make it so it works with multiple servers?
Uhm, whats a signature?

Offline Darkness717

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #49 on: October 07, 2013, 02:31:05 PM »
Did anyone figure out how to add
self:PS_GivePoints( xxx );?

I'd like it to auto give points as well.

Offline cah98

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #50 on: October 27, 2013, 01:41:19 AM »
I attached a screenshot of what my finished donation page looks like and it has some kinds of errors that i would like help with.

Edit: I disabled these notifications inside the php.ini and it seems to be working as it should now.

Edit#2 Nvm when i press the paypal donate button nothing happens.
« Last Edit: October 27, 2013, 02:32:20 AM by cah98 »

Offline Scratch

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • vinh'll fix it
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #51 on: October 27, 2013, 11:10:32 AM »
So I got to thinking, what would happen if someone gives me money on PayPal without using PUDS

I don't know much about PayPal, I had to set up a premier account or something, even then the IPN didn't show (Found it in the actual profile settings page)

Offline cah98

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #52 on: October 27, 2013, 02:02:30 PM »
You need to change your account to premier for ipn to become available. It is free so just do it  :)

Offline Scratch

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • vinh'll fix it
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #53 on: October 28, 2013, 04:51:22 PM »
Okay, so I have set up the config.php to my liking, and have followed (what I think is outdated) Installation Tutorial

But I have no idea how to set up the DataBase table.
Anyone able to give a hand?

One More Thing:

Quote
<A shitty Email> Scratch 2.00 STEAM_0:0:32493517 donator
IP: 103.23.148.228 Port: 27025 Password: HIDDEN Command: status STEAM_0:0:32493517 donator
Unable to connect!Unable to connect to Rcon, please check your configuration.

IP, Port and RconPass are correct, is there an off chance that my host is blocking outside access?
« Last Edit: October 28, 2013, 05:29:17 PM by Scratch »

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #54 on: October 31, 2013, 12:18:16 PM »
Hey guys,

I'm finally back from training finally, I can start fixing things that have broke since I've been away and start adding features.

Firstly:
My webhost is the same, I will change the Allow_url_fopen is only needed for the steam login functionality.
I will change the steam login system when I have time after training.
The steam login system depends on Allow_url_fopen, I'll try get this changed to use Curl as soon as I figure it out xD.

Hey wully, any chance you could make it so it works with multiple servers?

Certainly! You mean a user donates once and gets the rank/perk on both servers? I can do that :)

Did anyone figure out how to add
self:PS_GivePoints( xxx );?

I'd like it to auto give points as well.

I'll get this added as well once I finish the web based configuration, which will make it a lot easier for users to add in what servers/ranks/perks they want for each donation!

So I got to thinking, what would happen if someone gives me money on PayPal without using PUDS

I don't know much about PayPal, I had to set up a premier account or something, even then the IPN didn't show (Found it in the actual profile settings page)

Without PUDS the donation will go through like a regular paypal donation, you would get an e-mail regarding it, but you would need to do your own administration for giving the player any ranks/perks they applied for.

Okay, so I have set up the config.php to my liking, and have followed (what I think is outdated) Installation Tutorial

But I have no idea how to set up the DataBase table.
Anyone able to give a hand?

One More Thing:

IP, Port and RconPass are correct, is there an off chance that my host is blocking outside access?

The database is automatically made the first time a donation comes through ( this includes the first donation done using the paypal sandbox).
The only thing you need to do for the database is set up a user in your mysql database and a database for the donation info to be stored in. Then fill out the config details in config.php.

Code: [Select]
///MySQL Database Configuration///
$UseDB = "true"; //Change to false if you do not want to use a MySQL database.
$HOST = "localhost";     //If this script is on the same webserver as your database leave as localhost
$DBUSER = "scratch_paypal";        //The user for the MySql database
$DBPASS = "passwordhere";    //Password for the MySql user
$DBNAME = "scratch_donations";        //The name of the database
$DBTABLE = "donations";      //The name of the database table to store the donation information

The table does not need to be created already, the script will do that for you so you can name $DBTABLE whatever you want and the script will create it. Or if you already have created a table, input that tables name.

Finally Scratch,

There may be a chance your host is blocking outside access, you will need to send them a support ticket to request the port to be open (27015 I believe JamminR said).
[/url]

Offline frogger50

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • Effortless Synergy Gaming
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #55 on: November 01, 2013, 04:09:35 AM »
The problem in having is that it does not set the players rank that they bought and the verification email doesn't have any of the info that should be filled out. this is what it looks like

Thank you for your purchase

Your rank information
-------------------------
Paid: 
SteamID: 
Rank: 
-------------------------
           
There has been an issue when adding your SteamID to the correct usergroup.
Please contact the server admin to resolve this issue.

Also in the log.txt it says

Connected to database
Table does not exist, creating table.
IPN Validated.
meow@gmail.com Van Hohenheim 0.01 STEAM_0:0:33963289 contributor
Added to database.
IP: 108.61.76.154 Port: 27016 Password: HIDDEN Command: ulx adduserid STEAM_0:0:33963289 contributor
Unable to connect!Unable to connect to Rcon, please check your configuration.

Connected to database
Table exists, Connecting to table.
IPN Validated.
meow@gmail.com Van Hohenheim 0.01 STEAM_0:0:33963289 contributor
Added to database.
IP: 108.61.76.154 Port: 27016 Password: HIDDEN Command: ulx adduserid STEAM_0:0:33963289 contributor
Unable to connect!Unable to connect to Rcon, please check your configuration.

The server configuration is filled out correctly in the config.php
« Last Edit: November 04, 2013, 11:23:11 AM by frogger50 »

Offline Darkness717

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #56 on: November 01, 2013, 04:33:07 PM »
Wully616 is the best <3 much love!

Offline rainbow Dash

  • Newbie
  • *
  • Posts: 35
  • Karma: -2
  • Owner of Friendship is Gaming Servers
    • Friendship is Gaming
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #57 on: November 03, 2013, 01:22:07 AM »
Hey uh, been experiencing issues. Players will donate, but not receive their rank, for whatever reason..

I know that my web host is allowing rcon TO the server, but I have noticed people donate and not receive rank, regardless of the IPN being correctly linked.

How can I troubleshoot this without money to feed to paypal?
Uhm, whats a signature?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #58 on: November 03, 2013, 05:13:27 AM »
How can I troubleshoot this without money to feed to paypal?
Doesn't Paypal have a 'sandbox' that allows for such testing?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline frogger50

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • Effortless Synergy Gaming
Re: PUDS v0.2.5 - PayPal-ULX Donation System
« Reply #59 on: November 04, 2013, 11:32:46 AM »
How can I troubleshoot this without money to feed to paypal?

Well on the main post it has the tutorial on how to use the paypal sandbox here it is again in case you missed it.

PUDS v0.2.5
PayPal Sandbox Testing Tutorial:
https://github.com/Wully616/PUDS/wiki/PayPal-Sandbox-Tutorial