The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Paypal Donations (With Instant Payment Notification) -- RC1 (Public Testing) Details »» | |||||||||||||||||||||||||||
Paypal Donations (With Instant Payment Notification) -- RC1 (Public Testing)
Developer Last Online: Feb 2022
This hack is obsolete, and is currently being ported to 3.0.7, and will be ported to 3.5 when it is allowed.
Thank you for your understanding.[b] Version 0.9.5 is a major fix to a bug that was found by shortywz. Please download the new archive and overwrite your old files to upgrade to 0.9.5 if you are running 0.9.4, if you are running any version lower than 0.9.4 then after overwriting the old files run the installer Paypal Donations for vBulletin What it does: Quite simply this hack provides you a way to receive donations from your website's users and provide them with the recognition deserving of a donating member of you community. It uses Paypal exclusively for the time being because of Paypal's "Instant Payment Notification" system. For more information on Paypal's IPN, please see the supplied manual for IPN located here in the docs directory. The file name is: "IPN.PDF". The basics are this, your users goto your donations page where you have certain levels of donations available via hyperlinked "buttons". These buttons take your user to paypal's secure payment processing system where they pay you your donation. Once payment has been received, paypal sends your server a notification containing certain information pertaining to that specific transaction. Your server then repeats this information to the verification server (which is hardcoded into the system so that *spoofing* is rendered virtually impossible) which first checks to see if the information was sent by it, then checks the validity of the information. If everything checks out, it then sends your server a response of "VERIFIED". When this hack see that word after running the script it inserts all the information into your database so that you can see what was donated, who donated it, and where. If the server returns a response of "INVALID" then this script drops the information into a separate table so that you can investigate the transaction further to detect fraud attempts. It also does this on any suspicious entries after a few checks. Once payment is verified and information has been inserted into the tables, the system then adds a few toys and items for the user to be recognized as a donating user. What you do with that recognition is up to you. Features:
Files to upload: 9 Files to modify: 7 Templates to modify: 4 Queries to run: (The install script does this for you, uninstallation is also provided as well) Ease of install: Simple, but abit intensive with some file edits Time of install: ~10 minutes ***REMEMBER! Add your email address that Paypal has on file in the ppfunc.php file. This step is not an option, your payments, although they may be valid, will all be considered invalid if you do not do this! Sign up for Paypal's Premiere Account (Business), and setup IPN. Paypal Registration: You will need to register with Paypal for a premiere account if you have not already, if you have, but your account is probably a personal account, you will need to upgrade the account to a premiere account. Assuming that you have a premiere account and have been verified, you then go into your profile at https://www.paypal.com and the select Instant Payment Notification. There will be a checkbox that you must check, and an inputbox where you will need to place your script file. Simply place your entire URL to the paypal.php file there. On most systems it will be either: http://www.yourdomain.com/paypal.php or http://www.yourdomain.com/forum/paypal.php That's all there is to setting up Paypal to work with your site! Install: Upload the following files to your $ROOT/forum directory: paypal.php ppverify.php ppfunc.php Upload the following files to your $ROOT/forum/admin directory: paypal_admin.php paypal_donations_install.php Upload the following files to your $ROOT/forum/images directory: donate.gif donate2.gif donate3.gif donate4.gif Run the provided install file, after installation, DELETE THE FILE! This will usually be: http://www.yourdomain.com/forum/admi...ns_install.php or http://www.yourdomain.com/admin/payp...ns_install.php Upgrading: Upload the following files to your $ROOT/forum directory overwriting the old files: paypal.php ppverify.php ppfunc.php Upload the following files to your $ROOT/forum/admin directory: paypal_admin.php paypal_donations_install.php Upload the following files to your $ROOT/forum/images directory: donate.gif donate2.gif donate3.gif donate4.gif Run the provided install file and follow the upgrade instructions, after upgrading, DELETE THE FILE! This will usually be: http://www.yourdomain.com/forum/admi...ns_install.php or http://www.yourdomain.com/admin/payp...ns_install.php After Install: You will need to add a link somewhere in your navigation system for vBulletin pointing your users to the donations page. ------------------------------------------------------------------------ I sincerely hope that you enjoy this hack. This thread is specifically for the use of bugs reporting and feature suggestions. You are allowed to hack the crap outta this here script for your own personal use, BUT, if you do, I will not be able to provide you with support for the system if the base code has been changed! Also, if we find another hack that interferes with this one, I will do my best to provide a work around for it, but I will not garuantee that to occur! For those of you who have been alpha testing this for me, THANK YOU! To upgrade from Alpha to Beta, you will have to do a complete uninstall (including file modifications) and reinstall. This is due to the extensive redo of code in vb resident pages. I hope you can understand. Thank you! )O( Cloudrunner )O( P.s. --> I you want to be notified whenever I updated the Paypal Donations System, I suggest that you push that little button up top and down below that says install, It's especially useful to you to do so, cus when a New Version comes out, I can simply update and anyone who has it installed will be notified.....Just a suggestion... A special thank goes out to ap0c for keeping me on my toes during Alpha testing...dude can find some bugs, lemme tell ya! And thanks for the suggestions as well bro! I added all of em. Attached is the full release which includes screenshots and the manuals from Paypal for IPN and Donations for those of you who really want to play with the code for reference. Warning, the file is large! If you want a smaller file, then look here. The archive in that post is the smaller of the two at ~30K compared to ~1M. It does NOT contain the manuals OR the screens (as requested by gmarik). Enjoy (with the addition of the manuals and screens, the archive is too big to attach. If you want these, pm me and I'll send it them too you, or simply download the screens archive a few posts down, and then download the manuals from Paypal.) Supporters / CoAuthors Show Your Support
|
Comments |
#72
|
||||
|
||||
Bouncer --
Simply manually insert your information into the tables: paypal_funds paypal_contributors and then change the donate field in your user table under your username to read '1'. Heffe -- Currently, due to the way paypal has IPN setup with only one IPN per paypal account, there is no way to avoid this circumstance. I have asked paypal if they are planning on implementing a multiple site IPN, but thus far I have not received an answer. 99SIVTEC -- Yes, you can use this script globally across your sites, but it will require some slight modifications to the system, and requires that they all be on the same server. I don't think I'll be implementing this however due to time constraints on my part, but it would simply require that the other sites use the main site's paypal.php, ppfunc.php, and ppverify.php files, and also to read off the main site's database. It wouldn't be too hard to do I don't think, but I just don't have the time at the moment. Shorty -- thank you for answering that one. You are correct. Paypal has a minimum fee of $0.01, so if you donate 0.01, and paypal deducts 0.01, and the mathematical law of 1-1=0 remains in effect, then it stands to reason that the total amount of the donation will be $0.00. I am debating removing the fee paypal deducts from the user's donation to show what they intended to donate instead of the total minus the fee....still weighing the pros and cons of this scenario. As for the rest of you I'll be gone this entire weekend, so further updates will not be occurring probably until next weekend. I have a highland games to go to. So while I'm out there drumming with the pipes in me kilt, I'll be thinking about...well...the competition Enjoy! )O( Cloudrunner )O( |
#73
|
||||
|
||||
First of all, thanks for the great hack. But I'm curious, do you still plan to integrate this with Lesane's Store Hack?
|
#74
|
||||
|
||||
It is planned yes, but I've not had time to even sleep properly with the new baby....He's starting to sleep longer during the night, so hopefully I'll be able to sleep better myself shortly, when that happens, production will again be in ernest . Until then I'm working on it as I get the chance and can think straight...who'da thought that sleep was something you need to actually function properly...
|
#75
|
|||
|
|||
Alright, I have a strange problem
INSERT INTO paypal_contributors( userid, username, avatarurl, datelast, amount, guest_ip ) VALUES ( '166', 'Jaago', 'images/avatars/0/160.gif', NOW( ) , '23.97', NULL ) MySQL said: Duplicate entry '127' for key 1 Why would key 1 be entering 127, when the query says 166. Here is what has happened recently : I received an echeck payment, which went into the DB as "pending" - ever since then, no donations have been able to enter the db because of strange problems like this.. i have more info cloud, if you can send me an AIM msg when you get around. |
#76
|
||||
|
||||
Another update....Thanks for finding the prob Shorty.
run the following in your DB manager: Code:
ALTER TABLE `paypal_contributors` CHANGE `userid` `userid` INT( 255 ) DEFAULT '0' NOT NULL; )O( Cloudrunner )O( |
#77
|
|||
|
|||
Alright, just thought of something.. do funds/goals ever expire?
I don't know how to go about it.. but otherwise in about six months I'm going to have 2 pages of goals and my frontpage is going to say that we need to raise $1000 worth of donations.. |
#78
|
|||
|
|||
yea i manually entered it into my DB
but what i was saying was maybe add an IF THEN statement to it so it atleast shows up as $0.00 rather then just $ |
#79
|
|||
|
|||
What would be the chance of this running on 2 seperate VB setups, on 2 different domains, via one paypal account? (I'm guessing that it won't, or would be too difficult...).
Could you use the donation name to route to a different paypal.php or something? I'm setting up a new domain with a seperate VB running on it, and would like donations to show up on there & the older forums. If paypal would allow you to have multiple accounts, this would be irrelevent, but since they restrict you to one (even if you have 2 people living in the same house with seperate accounts, you can have them blocked...). |
#80
|
||||
|
||||
great hack, thanks a lot!
|
#81
|
||||
|
||||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|