Donation center paygol / paypal

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
Post Reply
dasoldier
Posts: 73
Joined: Wed May 31, 2006 6:26 pm
Location: Holland
Contact:

Donation center paygol / paypal

Post by dasoldier » Wed Mar 18, 2015 12:47 am

Hello folks,

I have made a automated donation center for paypal and paygol.
NOTE: It is not finished and it has been awhile when i worked on it.
Some functions should work normally, and some arent working at all.

It will log donations into the database
example:
transaction_id: 12345
donation: Paypal, Change gender Male
amount: 5 (the price of the donation option, we use this to calculate the goal)
character_name: Aplayer

Also a donation log file will be updated on the webserver (only working for paypal)
Enable Telnet : players dont need to relog ingame when they donate for a item or enchant.

Maby this will help some people with making an automated donation system.

First: *WARNING !!!Use at your own risk!!! WARNING *

I will start with the problems i have not managed to solve. And be aware there could be more. :D

List of problems/todo:

1. Get coins WORKING not finished
• TODO: Finalize checks if else ?

2. item enchant NOT WORKING
• TODO: Finalize checks if else ?
• rings and earrings loc_data location change every time you relog.
• shirt enchant telnet command is not working
if ((player != null) && (itemType > 0)) in data/scripts/hanlers/telnethandlers/PlayerHandler.java says itemtype cannot be 0 while shirt item type is 0

3. Item enchant all WORKING not finished
• TODO: Finalize checks if else ?
• shirt enchant telnet command is not working

4. gender change WORKING not finished
• TODO: Finalize checks if else ?

5. change main class WORKING not finished
• TODO: Finalize checks if else ?

6. full clan skills and level NOT working
• TODO: Finalize checks if else ?
• Server needs to restart after the skills are applied
• Clan reputation doesn’t seem to be working at all, even manually editing the database value and restarting the server. The value will go back to the original clan reputation value
Maybe give the donator a custom consumable item that will give the clan reputation
NOTE: The best way i think to do this, give a player a item that will change clan level, add skills and adding reputation.

7. character name change WORKING not finished
• TODO: Finalize checks if else ?

8. char transfer WORKING not finished
• TODO: Finalize checks if else ?

Extra TODO:
• Add a telnet connection check on:
donationcenter/donate.php
donationcenter/paypal/*.php ( except recall form and thankyou page )
donationcenter/paygol/donatepaygol.php


How to do:
Create a account on paygol. ( if you dont want to use paygol disable it in config.php )
Here is a old post of mine for paygol how to create a micropayment service.
viewtopic.php?f=73&t=26248&p=154742#p154725

Create a account on paypal.

Add dc_donations.sql to your gameserver database.

Change Donationcenter/donate/config.php

Code: Select all

<?php
// Made by Dasoldier
// Here we can define if we want to work on the sandbox or live
// Here you can find the Paypal ipn simulator https://developer.paypal.com/webapps/developer/applications/ipn_simulator
// NOTICE: IPN simulator will give invalid response back if this is set to 1

// Set to 1 once you're ready to go live
define("USE_SANDBOX", 0);

if(USE_SANDBOX == true) {
// Fill your PayPal email below. (PAYPAL)
// This is where you will receive the donations.
$myPayPalEmail = 'YourPaypal@Account.com';
$payPalURL = "https://www.paypal.com/cgi-bin/webscr";
} else {
//test seller account
$myPayPalEmail = 'test.seller@account.com';
$payPalURL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
}

// Define if paygol or paypal is turned on or off.
define("USE_PAYPAL", 1);
define("USE_PAYGOL", 1);

// Set your server name here.
$Servername = 'Lineage 2 Vision';

// Here we going to define what paypal donation options are enabled or disabled (PAYPAL)
// Set to 0 to disable a donate function.
define("USE_COINS", 1);
define("USE_ITEM_ENCHANT", 1);
define("USE_ITEM_ENCHANT_ALL", 1);
define("USE_GENDER_CHANGE", 1);
define("USE_CHANGE_MAIN_CLASS", 1);
define("USE_FULL_CLAN_SKILLS_AND_LVL", 1);
define("USE_CHARACTER_NAME_CHANGE", 1);
define("USE_TRANSFER_CHARACTER", 1);

// Your paypal ipn's files directory (PAYPAL)
$urlipn = 'http://yourweb.site/donationcenter/donate/ipn';

// Your paypal thank you page directory (PAYPAL)
$urlthx = 'http://yourweb.site/donationcenter/paypal';

// Your paygol success page directory (PAYGOL)
$urlpaygolthx = 'http://yourweb.site/donationcenter/paygol';

// Your paygol serviceid (PAYGOL) Create this service id on http://www.paygol.com
$paygolserviceid = 1234;

// Your paygol serviceid NAME (PAYGOL) http://www.paygol.com
$pg_name = 'test';

// Your paygol serviceid PRICE (PAYGOL)
$pg_price = 1;

// Your paygol donation failed page directory (PAYGOL)
$urlpaygolfailed = 'http://yourweb.site/donationcenter/paygol';

// define your currency code (PAYPAL)
// you can find them here https://developer.paypal.com/docs/classic/api/currency_codes/
// Notice: if you wanna change the currency on the donatation center page also ? Go here \donationcenter\paypal and change the $ signs manually
$currency_code = 'USD';

// define your currency code (PAYGOL)
// The currency code of the transaction (E.g.: EUR, USD, GBP, MXN, etc.)
$pg_currency_code = 'USD';

// Your total goal:
$goal = 1000;

//Let's define some coins per donation (PAYGOL)
$coins = 3;

// Define the donation item_id (PAYGOL)
$item_idgol = '4037';

// Define the donation item_id (PAYPAL)
$item_id = '4037';

// Define coin option 1, coin amount and donate amount.(PAYPAL)
$donatecoinamount1 = 5;
$donatecoinreward1 = 10;

// Define coin option 2, coin amount and donate amount.(PAYPAL)
$donatecoinamount2 = 10;
$donatecoinreward2 = 25;

// Define coin option 3, coin amount and donate amount.(PAYPAL)
$donatecoinamount3 = 15;
$donatecoinreward3 = 40;

// Define coin option 4, coin amount and donate amount.(PAYPAL)
$donatecoinamount4 = 20;
$donatecoinreward4 = 55;

//ENCHANT ITEMS (PAYPAL)
// Define the enchant amount and donate amount.
$enchantamount = 18;
$enchantdonateamount = 10;

//ENCHANT ALL ITEMS (PAYPAL)
// Define the enchant amount and donate amount.
$enchantallamount = 18;
$donateallamount = 50;

//CHANGE GENDER (PAYPAL)
// Define the change gender donate amount
$changegenderamount = 5;

//CHANGE main class (PAYPAL)
// Define the change gender donate amount
$changeclassdonateamount = 25;

// CHANGE CLAN LVL FULL SKILLS AND REPUTATION (PAYPAL)
//Define the clan lvl donate amount
$donateclanlvlamount = 5;
//Define the clan lvl with skills donate amount
$donateclanlvlskillsamount = 10;
//Define the clan lvl with skills and reputation donate amount
$donateclanlvlskillsrepamount = 15;
//Define the reputation donate amount
$donateclanrepamount = 5;
//Define the TOTAL reputation reward amount
$repamount = 100000;

//CHANGE NAME (PAYPAL)
//Define the change name donate amount
$donatechangenameamount = 10;

//TRANSFER ACCOUNT (PAYPAL)
//Define the transfer account donate amount
$donatetransferaccountamount = 13;

//Turn error reporting on or of (1=on | 0=off )
define("USE_REPORTING", 1);

if(USE_REPORTING == true) {
} else {
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
}

//Use a delay when someone submit a form
// it will give a little bit protection against a brute force attack
// Enable or Disable loading delay
define("LOADING_DELAY", 1);
// Total delay in seconds
$delaytime = 3;
?>
Change Donationcenter/donate/connect.php

Code: Select all

// Made by Dasoldier
/* Gameserver database config */
$db_host		= 'Host';
$db_user		= 'User';
$db_pass		= 'Password';
$db_database	= 'Gameserver';

/* Login database config */
$login_host		= 'Host';
$login_user		= 'User';
$login_pass		= 'Password';
$login_database = 'Loginserver';

/* Telnet config */
$telnet_host		= 'GameserverHost';
$telnet_port		= 'Port';
$telnet_pass		= 'Password';
And ofcourse put those files somewhere on a webserver.

Donation center download:
http://www.2shared.com/file/ITikgL1q/Do ... r-L2J.html

This donation system is tested on a high five server about a year ago.

Some functions can better be done server side like changing the charname . But my java is primitive.
My coding is a mess but i hope this donation script is usefull for someone. :)
I will try to polish the code a bit more in the near future.


For more security you should use a secure connection and create a new database account with certain rights for this donation system.

A screenshot for the people:
Image
Credits to Mamba for the design.

Sources:
http://www.l2jserver.com
http://www.paygol.com
http://www.slideshare.net/paygol/paygol ... in-lineage
http://tutorialzine.com/2010/05/donatio ... aypal-api/
http://stackoverflow.com/

Greetings,
Dasoldier



rdtxszcf821
Posts: 65
Joined: Fri May 20, 2022 6:50 am

Re: Donation center paygol / paypal

Post by rdtxszcf821 » Thu May 26, 2022 3:51 am

Nike Outlet
Nike
Red Bottom Shoes For Women
Pandora Necklaces For Women
Basketball Shoes
Adidas Stan Smith
Nike Clearance
Nike Sneakers Outlet
New Air Max 2019
Yeezy Boost 350 V2
Nike Clearance
Nike Store
Nike Store
Air Force 1
Red Bottom Heels
Nike Basketball Shoes
Nike Outlet
Lebron Shoes
Asics Shoes
Red Bottom Shoes For Women
Jordan 11 Blue
Pandora
Nike Shoes For Men
Golden Goose Sneakers
Yeezy Boost 350
Nike Air Max 95
Fjallraven Kanken
Air Jordan Sneakers
Pandora Charms
Nike Air Max 270
Nike Sneakers
Adidas NMD
Pandora Charms
Lebrons Shoes
Christian Louboutin shoes
Nike Factory
Yeezy Sneakers
Christian Louboutin
Louboutin Heels
Nike Clearance Outlet
Pandora Official Website
Vans
Lebron 16 Shoes
Nike Shoes
Air Force Ones
Nike Outlet Store Online Shopping
Kyrie Basketball Shoes
Nike Presto
Air Max 720
Adidas Sneakers For Women
Pandora Outlet
Moncler Outlet
Nike Zoom
Pandora Earrings
Nike Sneakers For Women
Pandora Charms
Fjallraven Kanken Backpack
Nike Shoes
Christian Louboutin Sale
Air Max 98
Ferragamo
Jordans Sneakers
Nike Shoes For Men
Nike Air Zoom
Valentino Shoes
Nike Factory
Yeezy
Womens Nike Shoes
Christian Louboutin Shoes
Ferragamo Belt
Nike Running Shoes For Men
Nike Black Friday
Yeezys
Christian Louboutin Outlet
Adidas Yeezys
Adidas Yeezy
Nike Air Max
Nike Store
Air Jordans
Cheap Nike Shoes
Ferragamo Shoes
Louboutin Shoes
Nike Factory Outlet
Jordan Retro 11
Pandora
Yeezy 500 Blush
Nike Shoes Outlet
Christian Louboutin Shoes
Louboutin Outlet
Nike Huarache Women
Nike Air Max 97
Nike M2k Tekno
Nike Outlet Online
Nike Outlet Online
Nike Outlet Store Online
Pandora Bracelets
Christian Louboutin
Nike Free Rn
Pandora
Nike Lebron 17
Adidas Ultra Boost
Pandora Rings
Michael Jordan Shoes
Nike Air Monarch
Nike Air Force 1
Jordan 13 Retro
Louboutin Shoes
Nike Cortez Women
Christian Louboutin
New Nike Shoes 2019
Air Max 720
Nike Air Force
NMD Adidas
Yeezy
Nike Outlet Store Online Shopping
Nike Outlet
Adidas Ultra Boost Women
Nike Free Run
Nike Outlet Online
Lebron 16 Shoes
Nike Air Max 98
Nike Running Shoes
Kevin Durant Shoes
Nike Website
Kyrie Irving Shoes
Pandora Canada
Jordan Shoes For Kids
Retro Jordans
New Nike Shoes
Womens Nike Shoes
Nike Outlet Store
Pandora Earrings
Pandora Bracelets
Nike Shoes
Pandora Canada
Pandora Charms
Yeezy
Air Jordan Sneakers
Christian Louboutin
Nike Outlet Store
Nike Air Uptempo
Nike Shoes

rdtxszcf821
Posts: 65
Joined: Fri May 20, 2022 6:50 am

Re: Donation center paygol / paypal

Post by rdtxszcf821 » Sun May 29, 2022 4:50 pm

Men's Nike Shoes
Jordan One
Pandora
Jordan 1 High
Pandora Jewelry 70% Off Clearance
Pandora
Nike Snkrs Canada
Jordan 1 Retro High
Nike Store
Adidas Shoes
Pandora Jewelry
Discount Jordan Shoes Wholesale
Balenciaga Shoes
Balenciaga
Pandora
Balenciaga Shoes
Moncler Factory Outlet
Pandora Jewelry Official Site
Nike Shoes Outlet Online
Jordan 1 Retro
Pandora Official Site
Air Jordan 1 Dior
Pandora Charms Bracelets
Jordans 1
Nike Canada
Pandora Jewelry
Moncler Coat
Nike Shoes For Men
Pandora Jewellery
Pandora Jewelry
Nike
Asics Gel Kayano
Pandora Jewellery
Adidas
Nike Outlet Store
Moncler Jacket For Women
Yeezy
Puma Shoes
Balenciaga Sneakers
Nike Shoes Women
Asics Shoes
Pandora Jewelry Outlet
Pandora Charms Outlet
NMD
Adidas Yeezy
Asics Outlet
Nike Factory
Asics Shoes Outlet
Pandora
Nike Shoes
Air Jordan 1 Low
Pandora Jewelry Official Site
Moncler Outlet
Pandora Jewelry Black Friday
Ferragamo Belt Men
Nike Sneakers For Women
Cheap Jordan Shoes
Moncler Sale
Adidas Sale
Goyard Bag
Pandora
Pandora Outlet
Air Jordan 1 Retro
Adidas Store
Nike Air Jordan 1
Pandora Jewelry
Nike Canada Online Shopping
Nike Outlet Store
Nike Shoes
Pandora Outlet
Adidas Shoes Women
Balenciaga
Cheap Womens Adidas Shoes
Nike Shoes For Women
Nike Canada
Mens Adidas Shoes
Adidas Shoes
Nike Canada
Pandora Official Site
Air Max 270 Men
Jordan Retro 1
Nike Shoes
Air Jordan 1 Mid
Pandora Ring
Pandora Bracelets
Nike Store
Pandora Jewelry
Jordans Wholesale
Pandora Outlet
Pandora Jewelry
Pandora
Pandora Bracelets
Wholesale Jordan
Nike Shoes
Pandora Outlet
Pandora Jewelry Website
Pandora Charms
Asics Sneakers
Nike Sneakers Men
Pandora Charms
Pandora Bracelet Charms
Pandora Outlet Online
Asics Running Shoes Men
Ferragamo Belts
Ferragamo Shoes
Pandora Charms Sale Clearance
Asics Shoes
Pandora Charms
Pandora Outlet
Adidas Official Website
Moncler Jacket
Pandora Charms
Pandora Charms
Pandora Charms
Womens Basketball Shoes
Nike Outlet
Salvatore Ferragamo Belt
Moncler Jackets Women
Pandora Jewelry
Nike Running Shoes Sale
Adidas Trainers Sale
Air Jordan 1s
Nike
Pandora Jewelry
Sneakers Adidas
Moncler Outlet
Nike Outlet
Pandora Charms
Adidas Running Shoes For Men
Pandora Jewelry
Triple S Balenciaga
Shoes Nike
Pandora Rings Official Site
Pandora Jewelry
Jordan 1 Low
Pandora Charms
Pandora Jewelry Bracelets
Pandora Charms Outlet
Goyard Handbags
Yeezys
Yeezy Boost 350 V2
Ferragamo Shoes
Balenciaga
Adidas Canada
Adidas Canada
Cheap Moncler

rdtxszcf821
Posts: 65
Joined: Fri May 20, 2022 6:50 am

Re: Donation center paygol / paypal

Post by rdtxszcf821 » Mon May 30, 2022 4:55 am

Raptors Jersey
Jordan 28
Nike Outlet
Pandora Jewelry
Nike Zoom
Nike Sneakers For Men
Nike Blazer
Nike Shoes Wholesale
Air Jordan 32
Nike Blazer Mid
Pandora Jewelry 70% off Clearance
Cheap Jordan Shoes For Women
Wholesale Jerseys
Nikes Shoes
Nike Air Max 270
Jordan 15
Pandora
Nike Air Jordan 1
Pandora Rings Official Site
Wholesale Air Jordans
NFL Shop
Nikes Wholesale
NMD R1
Jordan 31
Nike
Nike Clearance
AJ1
Jordan 14
Jordan Dior
Nike Wholesale Dealer
Nikes
Nike Cyber Monday
Nike Outlet
Nike Air Force 1 Low
Pandora Bracelet
Nike Running Shoes For Women
Air Jordan 11 Low
Jordan 11
Ice Jersey
Nike Factory
Jordan 33
Jordan 21
Adidas Yeezy Boost 350 V2
Jordans 29
Nike Acg Shoes
Air Jordan 33 shoes
Nike Shoes Women
Lebron James Shoes
Soccer Jerseys
Baby Jordans
Jordan 6s
Nike Shoes
Jordan 23
Air Jordan 17
Wholesale Nike Shoes
Air Jordan 5 What The
Jordan 2
Nike Outlet
Adidas Outlet Store
Jordan 35
Wholesale Sneakers
Adidas Shoes Canada
Huarache
Christian Louboutin
Jordan 25
Rings Pandora
Nike Outlet Store Online Shopping
Cheap Shoes Wholesale
Nike SB
Fjallraven
Jordan 16
Air Jordan 30
Nike Air Max 720
Nike Air Max
Jordan 18
Cheap Nikes
Jordan 13
Jordan Retros
Nike Shoes For Men
Cheap Jordans Free Shipping Wholesale
Jordan 22
Cheap Jordan
Nike Outlet
Adidas Shoes
Jordan Retro 11
Red Bottom Shoes
Jordan 26
Nike Air Force 1 High
Nike Metcon
Huaraches
Air Jordan 13
Wholesale Adidas
Nike Air Force 1 Women
Nike Running Shoes
Nike Outlet
Nike Jordan 1
Ice Jerseys
Nike React
Air Max
Wholesale Nike Shoes
Nike Slides
Nike Huarache Men
Nike Free Run
Nike Outlet
Jordans 27
New Jordans 2021
Air Jordan
Yeezy Boost 350 V2
Nike Cortez Women
Wholesale Nike Shoes
Air Force 1s
Pandora Jewelry Official Site
Air Jordan 4
Jordan 20
Nike Womens Shoes
Wholesale Jordans
Cheap Jerseys From China
Cheap Adidas Shoes
Nike Outlet Store
Nike Air Max 720
Nike Air Force 1
Nike Wholesale
Nike Running Shoes For Women
Pandora Canada
Nike Shoes
Air Max 2019
Pandora Charms
Retro 12
Nike Outlet
Michael Jordan Shoes
Nike Air Force Ones
Christian Louboutin Shoes
Nike Canada
Nike Outlet Online
Jordans For Kids
Jordan 11
Nike Air Max 270 Flyknit
Jordans 12
Adidas Yeezy
Nike Zoom
Nike Air Jordan Shoes
Nike Hyperdunk
Air Jordan 19
Air Jordan 24
Air Jordan Shoes
MLB Shop
Air Jordan 33
Nikes Shoes
Jordan 12
Jordan 34
Jordan Shoes From China
Nike Off White
Pandora Jewelry
Adidas Outlet
Cheap Jordans Free Shipping Wholesale

rdtxszcf821
Posts: 65
Joined: Fri May 20, 2022 6:50 am

Re: Donation center paygol / paypal

Post by rdtxszcf821 » Wed Jun 01, 2022 3:07 am

Jordans 11
GGDB Sneaker
Pandora Canada
Balenciaga
Adidas NMD
Nike Air Force
Golden Goose Sneakers
Red Bottoms Louboutin
Jordan 6
Pandora Jewelry
Nike Outlet
Moncler Jackets For Men
James Harden Shoes
Jordan 11 For Sale
Air Jordans
Pandora Bracelets
ECCO
Air Jordan
Jordan Shoes For Men
GGDB
Golden Goose Shoes
Red Bottom Shoes
Pandora
Air Jordans
Fitflop Sandals
Pandora Rings
Hermes Birkin
Men Moncler Vest
Nike Shoes
Jordan Win Like 96
Red Jordan 11
Air Jordan Retro 12
Jordans Retro
Moncler
Pandora
Moncler Outlet
Air Jordan
Nike Huarache
Nike Air Max 270
Air Jordan Shoes
Christian Louboutin Shoes
Nike Snkrs
Nike Shoes
Pandora Official Site
Pandora
Jordan Retro 3
GGDB Shoes
Jordan Sneakers
Kyrie Irving Shoes
Jordans Sneakers
Jordan Retro 10
Air Jordan 3
Moncler Outlet
Air Force Ones Shoes
Air Jordan Retro 14
Moncler Outlet
Air Jordan 11
Cheap Jordan Shoes
Air Jordan 11
Jordan Shoes For Men
Air Jordan 5 Retro
Jordan 6 Retro
Nike Outlet Store
Jordan 11s
Jordan Retro 4
Retro Jordan
Pandora
Jordan 9
Nike Outlet
Yeezy
Golden Goose Outlets
Harden vol 1
Moncler Jackets
Red Bottom Shoes
Air Jordan 5 Retro
Golden Goose Shoes Men
Nike Air Max
Moncler Jacket
Jordans 4
Adidas NMD
Jordan 11
Air Jordan Sneakers
Air Jordan 4
Retro Jordans
Ferragamo
Nike Shoes
Nike Air Max 2018
Golden Gooses Sneakers Sale
Yeezy Shoes
Nike Running Shoes Sale
Air Max 90
Jordan 5s
New Jordans
Jordan 12
Golden Goose Mid Star
Air Jordan 12
Pandora Jewelry Official Site
Air Jordan Retro
Christian Louboutin
Nike Air Max 95
Valentino Shoes
Jordan 13
Jordan 11s
Pandora Ring
Nike Outlet
Jordans 2021
Adidas Yeezy
Moncler Store
Jordan Retro 12
Fitflops Clearance Outlet
Ferragamo Outlet
Pandora Jewelry
Soccer Cleats
Jordan 6 Rings
Yeezy
Pandora Charms
Nike Air Max 98
Balenciaga Triple S
Air Jordan 11
Jordan 11
Golden Goose Outlet
Nike Mens Shoes
Nike Shoes For Women
Air Jordan 4
Nike Shoes Outlet Store Online Shopping
Jordan Retro 8
Yeezy Shoes
Golden Goose Sale
Nike Outlet Store
Jordan 11 Retro
Jordan 1
Yeezy Shoes
Cheap Jordan Shoes For Men
Fjallraven Kanken
Nike Website
Sneakers Golden Goose

Post Reply