Automatic PayPal Donation System

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Automatic PayPal Donation System

Post by dasoldier »

Maby its also recommended to remove the login server check since it is not needed anymore.
I only used it to compare passwords.
orophix
Posts: 13
Joined: Sat Apr 25, 2015 1:42 am

Re: Automatic PayPal Donation System

Post by orophix »

Code: Select all

Notice: Undefined index: custom in index.php on line 21

Notice: Undefined index: custom in index.php on line 27
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

orophix wrote:

Code: Select all

Notice: Undefined index: custom in index.php on line 21

Notice: Undefined index: custom in index.php on line 27
Check your files. No errors in my test.
Image
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Automatic PayPal Donation System

Post by dasoldier »

orophix wrote:

Code: Select all

Notice: Undefined index: custom in index.php on line 21

Notice: Undefined index: custom in index.php on line 27
I think its because the form isnt called yet and the value is not known.
You can ignore it and disable error logging.

Or try to change in index.php:

Code: Select all

if(isset($_POST['submit']) 
{
// Select character name
$charname = mysqli_real_escape_string($db_link, $_POST['custom']);
}
I have not tested it yet.
rubenalonso
Posts: 7
Joined: Sat Feb 02, 2013 10:26 am

Re: Automatic PayPal Donation System

Post by rubenalonso »

Hi All
One question
if someone donate for example 10€ i get 10€? or i get a % of the total amount?
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

rubenalonso wrote:Hi All
One question
if someone donate for example 10€ i get 10€? or i get a % of the total amount?
10€ - paypal commission.
Image
rubenalonso
Posts: 7
Joined: Sat Feb 02, 2013 10:26 am

Re: Automatic PayPal Donation System

Post by rubenalonso »

u3games wrote:
rubenalonso wrote:Hi All
One question
if someone donate for example 10€ i get 10€? or i get a % of the total amount?
10€ - paypal commission.
and how much is that paypal commision?
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Automatic PayPal Donation System

Post by Sdw »

User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

Any suggestions to improve or bug?

I need help in php ;)
Image
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Automatic PayPal Donation System

Post by dasoldier »

Hey U3games
Yes please, test out this version.
I have not tested the telnet function yet on a test server.
I dont have a server running right now.

1. Edit and place connection.ini outside the public domain
2. Go to system/config.php and change this file according to YOUR preferred settings
3. add sql/dc_donations.sql to your database.

EDIT: I have changed the download url.
The code is changed from mysqli to pdo.
Still working on it when i have time.
I'm new to this method of handling a database, ideas are welcome.

http://www.filedropper.com/donationcenterpdo

If anyone has any suggestions or problems let me know.

Greetings,
Dasoldier :wave:
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Automatic PayPal Donation System

Post by dasoldier »

Here i have made some more changes.
Added error logging.
Created a simple donation overview page system/admin/donateoverview.php.
Added ip security so that not anyone can access this page see config.
Now you can actually see if you are in sandbox mode.

Edit: Cleaned up the code a bit.

http://www.filedropper.com/donationcenter1-25-2016
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

dasoldier wrote:Here i have made some more changes.
Added error logging.
Created a simple donation overview page system/admin/donateoverview.php.
Added ip security so that not anyone can access this page see config.
Now you can actually see if you are in sandbox mode.

Edit: Cleaned up the code a bit.

http://www.filedropper.com/donationcenter1-25-2016
Nice work @dasoldier!

Is best create PR in git for up the code, i up ;)

https://github.com/u3games/U3G_PayPal_S ... RPG/pull/2
Image
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

code up ^^
Image
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Re: Automatic PayPal Donation System

Post by dasoldier »

Test this one out.
https://github.com/Dasoldier1/U3G_PayPal_System_MMORPG
I have added a second donation option, it is barely tested.
Ill try to add more options later on. :think:
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Automatic PayPal Donation System

Post by u3games »

dasoldier wrote:Test this one out.
https://github.com/Dasoldier1/U3G_PayPal_System_MMORPG
I have added a second donation option, it is barely tested.
Ill try to add more options later on. :think:
Plss use PR in proyect ;)

TODO: https://github.com/u3games/U3G_PayPal_S ... G/issues/3
Image
Post Reply