Raised This Month: $32 Target: $400
 8% 

[REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GabyEnragedGamers
Senior Member
Join Date: Mar 2016
Location: France, Bordeaux
Old 04-09-2016 , 06:49   [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #1

Hello sourcemod community, today i want to make a request but it's not for a plugin it's for a webinterface.

I want for my community that there is an automatic buy with paypal. I have find this plugin : https://forums.alliedmods.net/showthread.php?p=1338942
I use this store plugin :
https://forums.alliedmods.net/showthread.php?t=276677

The base
There is a webinterface in this plugin :

If he want to pay, he log-in with steam and the system check if he's registred on the server.
After, ( if he's registred ) he can pay with paypal a time for VIP.

What i want ?

I don't want the admin login just that player can pay for time in VIP.
I have an big idea for the appearance of the webinterface :

Before SignIn through steam :

http://imgur.com/1eJw0L6

After SignIn through steam Succeed :

http://imgur.com/8rAHxUa

After SignIn through steam Error ( Not playing before on the server ) :

http://imgur.com/9RXZkHH



Process :

After he was sign in with steam and after he have PAID with Payal, the process recup he's steam Id and check all steamid of the store database ( Already create with the plugin store ) and he modify the database with the correct steamid :

He add 5000 credits and put on him the nametag : [VIP] already create by me.
I want that add in the file simple_admin.ini he's steamID with an custom flag ( for exemple the flag "O") ( Maybe plugin require to do this ?! )
EDIT :

BEFORE PAY, RECUP THE STEAM ID AND CHECK THIS :

If he don't have already played on the server, he don't have any table on the store database. So, show this error :


http://imgur.com/9RXZkHH

Ressources

I have put all ressources in the archive ( Include bootstrap for button dans errors ).

In this archive, there is script for the errors messages.



Thanks for all in advence,


Gaby
Attached Files
File Type: zip Theme of webinterface.zip (711.5 KB, 272 views)

Last edited by GabyEnragedGamers; 04-09-2016 at 06:52.
GabyEnragedGamers is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-10-2016 , 04:32   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #2

Doable. I'll give a try.

EDIT: Progress can be foun here : http://serverofarkarr.no-ip.org/zsw/index.php

EDIT2: Stuck with paypal stuff... Anybody got help ?
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-10-2016 at 07:19.
Arkarr is offline
lay295
Senior Member
Join Date: Sep 2013
Old 04-10-2016 , 11:41   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #3

Quote:
Originally Posted by Arkarr View Post
Doable. I'll give a try.

EDIT: Progress can be foun here : http://serverofarkarr.no-ip.org/zsw/index.php

EDIT2: Stuck with paypal stuff... Anybody got help ?
I have a similar system I made for my community. It uses your SVAM plugin along with PayPal's IPN
https://developer.paypal.com/webapps...-notification/

With the IPN you can make a php script that will just insert time into the SVAM database and they will have VIP for the amount of time they've paid for. Only small problem was that Zephyrus' store checks flags before the SVAM plugin set them so I had to add a delay on the store plugin.
__________________

lay295 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-10-2016 , 12:01   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #4

Quote:
Originally Posted by lay295 View Post
I have a similar system I made for my community. It uses your SVAM plugin along with PayPal's IPN
https://developer.paypal.com/webapps...-notification/

With the IPN you can make a php script that will just insert time into the SVAM database and they will have VIP for the amount of time they've paid for. Only small problem was that Zephyrus' store checks flags before the SVAM plugin set them so I had to add a delay on the store plugin.
IPN part... I don't get it. Any tutorial out here ? Hint ?
My IPN url is alawys wrong. 'cause PAypal send : Error during transaction everytime.
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-10-2016 at 12:01.
Arkarr is offline
lay295
Senior Member
Join Date: Sep 2013
Old 04-10-2016 , 18:10   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #5

Quote:
Originally Posted by Arkarr View Post
IPN part... I don't get it. Any tutorial out here ? Hint ?
My IPN url is alawys wrong. 'cause PAypal send : Error during transaction everytime.
Hmmm, I honestly forget. I remember when I was working with the IPN it was a pain in the ass to get it working. Anyways here's the core of what's in my PHP script, it's based off of some code I found online but lost the link to. I would post all of the code but I use it to handle subscriptions for VIP, and don't know how to handle one time payments.

http://pastebin.com/mSrveRMD
__________________

lay295 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-11-2016 , 00:51   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #6

Quote:
Originally Posted by lay295 View Post
Hmmm, I honestly forget. I remember when I was working with the IPN it was a pain in the ass to get it working. Anyways here's the core of what's in my PHP script, it's based off of some code I found online but lost the link to. I would post all of the code but I use it to handle subscriptions for VIP, and don't know how to handle one time payments.

http://pastebin.com/mSrveRMD
Sadly, that's "only" the listener (or whatever they call it) and PayPal documentation looks nice and all but can't be used if you are totally new to this kind if stuff... Anyway, thank you !
__________________
Want to check my plugins ?
Arkarr is offline
GabyEnragedGamers
Senior Member
Join Date: Mar 2016
Location: France, Bordeaux
Old 04-11-2016 , 14:05   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #7

It's a really good start arkarr. If you want, post your code on github, i can help you for the style. Thanks, Gaby
GabyEnragedGamers is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-11-2016 , 14:10   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #8

Quote:
Originally Posted by GabyEnragedGamers View Post
It's a really good start arkarr. If you want, post your code on github, i can help you for the style. Thanks, Gaby
Thanks ! Always great to get critics ! Anyway, it's not even a start, 50 lines... I'll dig a bit more about PayPal, since it's interesting...
EDIT: I'll upload on github too.
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-11-2016 at 14:11.
Arkarr is offline
GabyEnragedGamers
Senior Member
Join Date: Mar 2016
Location: France, Bordeaux
Old 04-11-2016 , 16:09   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #9

Hello arkarr, plz, can you send the link of the github of your project i think i can help you for the style. Thanks, Gaby.
GabyEnragedGamers is offline
GabyEnragedGamers
Senior Member
Join Date: Mar 2016
Location: France, Bordeaux
Old 04-21-2016 , 04:11   Re: [REQ] WebInterface for Zephyrus Store plugin [ WITH PAYPAL]
Reply With Quote #10

I make a little UP !!!!

Q : Akarr, do you have abandoned the project ? Because the website where you have host him is down

Thanks,

Gaby
GabyEnragedGamers is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode