Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 07:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Make paypal donations automatic

Discussion on Make paypal donations automatic within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Make paypal donations automatic

Just like the title says, I was wondering how you would go at making the paypal donations automatic. Such as they donate for some cps, it automatically goes to the Prize NPC where they can claim it.

Any help would be appreciated.
.Light is offline  
Old 11/28/2013, 18:56   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
this is all php related. Basically you pass data TO the paypal transaction and then process the confirmation FROM paypal using php to add the correct rewards to the correct account in the database.

The source simply loads these rewards during login.
pro4never is offline  
Old 11/28/2013, 19:13   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Yeah I understand that its PHP. When you set up a paypal donate button/shop sort of thing, you can set it to go to a certain page if its successful, and a certain page if it failed. I can figure out how to implement the npc and that whole part. The part I would have trouble with is how exactly does it know which option they chose. Say they choose 1kk cps instead of 10kk cps. I'm confused on how I would set that up.

Thanks for the quick reply by the way
.Light is offline  
Old 11/28/2013, 19:22   #4
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
Instant Payment Notification. (IPN)
turk55 is offline  
Old 11/28/2013, 19:43   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Quote:
Originally Posted by turk55 View Post
Instant Payment Notification. (IPN)
Elaborate on that will ya? (:
.Light is offline  
Old 11/28/2013, 20:20   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by .Light View Post
Elaborate on that will ya? (:
I think google.com could do that.
Super Aids is offline  
Old 11/28/2013, 21:13   #7
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Quote:
Originally Posted by Super Aids View Post
I think google.com could do that.
>.< I googled. I was wanting the explanation in his words, never a bad idea to hear it in a different way. But thanks for the reply xD
.Light is offline  
Old 11/28/2013, 21:53   #8
 
Smallxmac's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 105
Received Thanks: 13
You will not find better docs than from paypal themselves. What I did is that you bought donation points and with those points you bought items, it makes things a bit more simple for me. But all of that stuff is easy to do in php and easy to test within the paypal sandbox
Smallxmac is offline  
Thanks
1 User
Old 11/28/2013, 22:09   #9

 
Otakanikaru's Avatar
 
elite*gold: 133
Join Date: Nov 2013
Posts: 454
Received Thanks: 451
big tnx
Otakanikaru is offline  
Old 11/28/2013, 22:14   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
As we've said. IPN notifies you with a structured response when a payment is made. Make sure that the transaction is linked to a specific account ID and it's VERY easy to add a new entry to db based on the payment information received.

EG:

Paypal sends IPN that uid 1000010 donated 10 usd. Your PHP script takes that data and adds say... 10 prize codes to the prizes table for that UID. The npc then reads from that table to control what options it displays and what prizes it gives out.


Again... it all boils down to the paypal API and has nothing really to do with programming (assuming you can write a basic php script and a basic npc script, you're fine)
pro4never is offline  
Thanks
1 User
Old 11/28/2013, 22:27   #11
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
And on the other hand not related to Conquer at all, considering the process is the same for everything else. This should be in another section.
Super Aids is offline  
Old 11/29/2013, 01:44   #12
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Quote:
Originally Posted by pro4never View Post
As we've said. IPN notifies you with a structured response when a payment is made. Make sure that the transaction is linked to a specific account ID and it's VERY easy to add a new entry to db based on the payment information received.

EG:

Paypal sends IPN that uid 1000010 donated 10 usd. Your PHP script takes that data and adds say... 10 prize codes to the prizes table for that UID. The npc then reads from that table to control what options it displays and what prizes it gives out.


Again... it all boils down to the paypal API and has nothing really to do with programming (assuming you can write a basic php script and a basic npc script, you're fine)
Thank you xD believe it or not this did help a lot!
.Light is offline  
Old 12/03/2013, 05:28   #13

 
MeGaMaX's Avatar
 
elite*gold: 1537
Join Date: Sep 2006
Posts: 1,085
Received Thanks: 2,346
Post

this is not hard at all just use p a y m e n t w a l l . c o m like



then do pingback script for the specify transaction id to allow the appliction you did in the pyw to add the w/e you want to the customer.

something like

Quote:
if($type == CREDIT_TYPE_CHARGEBACK)
{
include('../../...');
$query = $sql->Query("UPDATE UsersData SET VALUE = VALUE + $credits WHERE CustomerID = '$userId'");
$today = date("F j , Y , g:i a");
$username = $sql->fetcharray($sql->Query("SELECT email FROM Accounts WHERE CustomerID ='$userId'"));
$username = $username[0];
$query1 = $sql->Query("INSERT INTO _points_history VALUES('$username','$credits','$today')");
}
#Edit dont forget to do check if the transaction id is already received by the member or not or they will exploit it.
MeGaMaX is offline  
Reply


Similar Threads Similar Threads
Automatic sale system of TQ Point Cards by krisswoj.com (PayPal)
05/18/2014 - Conquer Online 2 Trading - 170 Replies
Automatic sale system working again! http://krisswoj.com/style/krisswoj_logo.gif Read it - Before you are going to buy somewhere that you don’t know! --------------------------------- Hello dear players!
[Buying] WBB3 "PayPal Donations / Spenden" Plugin
10/29/2013 - Trading - 2 Replies
Guten Tag, ich bräuchte folgendes WBB3 Plugin: WoltLab® - Plugin-Store - Paypal Spenden / Paypal Donation Da ich momentan kein PayPal besitze, wäre es nett wenn mir jemand jenes Plugin kaufen bzw. geben könnte. ;) Bezahlen kann ich mit e*gold, Nitrado oder auch Paysafecard. Dankeschön im Vorraus, onomato
paypal automatic
12/23/2012 - Off Topic - 1 Replies
Hai epvpers' Iam looking for an way to make payments with paypal go automatic. I have checked several paypal api's but iam unable to set it up correctly. Atm if an player wants to pay for something they pay with the pre comiled button from paypal. Iam having the trouble to understanding how to imtergrate the paypal api into the website. And i mean the comtole script not the main page. If anyone has. An sample for it i will be thankfull. With kind regards Raventh
[Help] How do I make a automatic voting system + reward?
08/06/2012 - Shaiya Private Server - 1 Replies
Hi, I've been looking for a while now for a automatic voting system + reward. to like type /vote 1 or something ingame and you vote. Anyone knows how to do this? Please send a private message or post me back (a) Appreciate it Dreams <3
Help me make a Private CO Server! No paypaling or "Donations"!
07/26/2009 - CO2 Programming - 3 Replies
I want to make a CO server that has a lot of features from 1.0 with only the features from 2.0 that are actually good. No paypaling garbage, no "donate xxx amount and get full +12 -7". This is lame to me. I want a server where it's totally legit. Everyone levels up and works hard to get ahead and it's even. I'm looking for programmers that have some experience on CO and want to have a good server again finally! I will admit I'm not the master, but I learn very quickly and I'm sure with the...



All times are GMT +2. The time now is 07:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.