Donation kit system?

John Lennon

Member
Trusted Member
Member
Jan 20, 2017
46
3
8
38
Just wondering if it's possible to make a donation kit system that can work like, if you have a website you can have all the kits on there to buy and then people can pay through on your server website and when there transaction has been finished they are given a generated code from the plugin eg' "/074ty789t" and this will be displayed on a private message on your website and when you gen in game u put the code in and then you'll have access to the kit when u want.
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Just wondering if it's possible to make a donation kit system that can work like, if you have a website you can have all the kits on there to buy and then people can pay through on your server website and when there transaction has been finished they are given a generated code from the plugin eg' "/074ty789t" and this will be displayed on a private message on your website and when you gen in game u put the code in and then you'll have access to the kit when u want.
Complicated, but ..... Possible
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
876
43
Canada
Its not that hard. You need to setup the web part,you'll manage the requests with Web.GET/POST (python)
Python:
 Message = str(Web.GET("http://iphub.info/api.php?ip=" + Player.IP + "&showtype=4"))
            Message = Message.replace('"', '').split(",")
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
I would take on this project but I know nothing about the PayPal API or any of the webserver stuff, I could do the Server side coding no problem if someone wanted to work on this with me?

I think the best way I see it is just get your Web Server to use your Fougerite Server's MySQL to store the redeem codes and stuff.

- User buys a code for $xx.xx
- User in puts their In Game STEAMID or User Name? Optional?
- PayPal API returns something saying yes paid
- If yes paid generate a code if no Username was entered
- Web Server open MySQL on Game Server and places the code OR Username/SteamID in a section of unclaimed Codes/Users

(Code Generated)
- In Game /redeem <Code>
- Code if code exists in MySQL
- Redeem

(User Name / SteamID Entered)
- Check MySQL every 10 seconds or so for new users in the unclaimed MySQL
- Server.FindPlayer(Name OR SteamID)
- Returns an online player if it finds someone
- Auto Redeems
- Done?
 
  • Winner
Reactions: salva

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Amazing Jakkee, complicated but possible