vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PayPal Donations (Resurrected) for vB 3.0.7 (https://vborg.vbsupport.ru/showthread.php?t=82281)

Cloudrunner 05-31-2005 12:12 AM

PayPal Donations (Resurrected) for vB 3.0.7
 
This is a complete redux of my now two year old donations hack for 2.3.x. I have completely recoded this from scratch to work with both vB3.0.7 and Paypal's newest IPN (1.7 currently).

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.

The basics are this, your users go to 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.

The side effects of this script are that you can also see when transcations are pending, refunded, reversed, etc, and the reasons why. I am still coding the back end to sort these functions, but the ability is there now.

Features:
  • You as the admin have the ability to show as little or as much as you want about what happens with your donations.
  • Your users will only see what you want them to see.
  • You can show your donation goals to the public.
  • Automatic updates EVERY time a user donates or retracts a donation.
  • This can be run in "dummy" test mode using Paypal's Sandbox site for testing purposes before you go live with it.
  • User selectable currency to pay in
    • System calculates the price in the user's currency based on today's exchange rate for that currency to yours
    • Daily CRON to update currency exchange rates
**Coming Soon**
  • Your members who have donated are recognized for doing so in the memberlist and their postbit.
  • Postbit Awards for certain levels of donations that you decide on
    • User has the ability to choose whether they receive the awards recognition
Stuff you have to do:
Files to upload: 5
Files to modify: 2
Templates to modify: 0 (for now)
Queries to run: (The install script does this for you, uninstallation is also provided as well)
Ease of install: easy, simply follow the instructions in the install script.
Time of install: ~5 minutes

***REMEMBER! Add your email address that Paypal has on file in Donations settings. 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 http://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/donate.php
or
http://www.yourdomain.com/forum/donate.php
That's all there is to setting up Paypal to work with your site!

If you are going to play in PayPal's sandbox (yes that functionality is in this script too) you need to have a developer access to their sandbox. More information can be found at paypal.com, I'm not going to go into large details, we're all big kids and can figure that part out ourselves ;).
************************************************
This is currently in Alpha Stages. This is for the few who are helping me on this give feedback until Beta, when Beta is reached I will post the zip here for full public testing (I don't see this taking more than a week or two, seriously).

Thank you for your understanding.

)O( Cloudrunner )O(

trackpads 05-31-2005 12:40 AM

Excellent! I will install this and test it out, just something I was looking for!

-Jason

Trana 05-31-2005 01:26 AM

Very cool! Is there a demo online?

Cloudrunner 05-31-2005 01:32 AM

Not one that can be public due to licensing restrictions, but there will be screenies shortly.

DS MrSinister 05-31-2005 01:54 AM

Nice.. I cant wait to see them... :smoke:

Cloudrunner 05-31-2005 02:14 AM

1 Attachment(s)
Screenies of options both on and off

Image 1 -- All Options On
Image 2 -- No Currency Selector on Donation Buttons
Image 3 -- Donations Closed

Cloudrunner 05-31-2005 02:15 AM

1 Attachment(s)
Screenies of options both on and off

Image 1 -- Top Donators Turned Off
Image 2 -- Goals Turned Off
Image 3 -- No Options, Just the buttons and a thank you note.

Cloudrunner 05-31-2005 02:18 AM

And yes, we are phrased on the user-side of the house, AdminCP is not yet phrased...I'll get more pics of actual use up and admin side tomorrow.

The admin is still very CHEESY, but it's functional for now.

guvner 05-31-2005 02:58 AM

Hi Cloudrunner - looking really good :)

With the currency drop down, will your hack have the ability to set donations in Australian dollars (AUD)?

Thanks - Mike

deta 05-31-2005 03:52 AM

Where are the files?

cu deta

gruchacz 05-31-2005 05:37 AM

Quote:

Originally Posted by deta
Where are the files?

cu deta

It says in the first post.

Quote:

Originally Posted by Cloudrunner
This is currently in Alpha Stages. This is for the few who are helping me on this give feedback until Beta, when Beta is reached I will post the zip here for full public testing (I don't see this taking more than a week or two, seriously).

I still have room for one more tester for the alpha stages if you wish to assist. PM me for more information, please only those with the current release of VB.

Thank you for your understanding.

)O( Cloudrunner )O(




looks great, can't wait for the release.

Diana Notacat 05-31-2005 06:43 AM

Absolutely fantastic! I look forward to seeing this as a finished hack! <3

JTyson 05-31-2005 10:57 AM

This is hugely sought after, thanks for putting in the effort.

Cloudrunner 05-31-2005 03:38 PM

Quote:

Originally Posted by guvner
Hi Cloudrunner - looking really good :)

With the currency drop down, will your hack have the ability to set donations in Australian dollars (AUD)?

Thanks - Mike

edit: I've finished coding the currency exchange part of the script and it is being tested as we speak ;)

Snake 06-01-2005 04:25 PM

I would like to see a live demo please. I can't take a good look at the screenshots.

Cloudrunner 06-01-2005 04:54 PM

Quote:

Originally Posted by Snake
I would like to see a live demo please. I can't take a good look at the screenshots.

Provide me with a hosted and licensed version of vBulletin so that it can be publicly viewable and I'll do that, until then, you'll have to wait until the beta release just like the rest of the crew. Sorry, licensing restrictions prevent me from giving out my testing server to the public.

Trana 06-02-2005 02:38 AM

I'm very anxious to see this!

Snake 06-03-2005 10:26 AM

Quote:

Originally Posted by Cloudrunner
Provide me with a hosted and licensed version of vBulletin so that it can be publicly viewable and I'll do that, until then, you'll have to wait until the beta release just like the rest of the crew. Sorry, licensing restrictions prevent me from giving out my testing server to the public.

But you are allowed to have a test board so... there ya go! :)

Cloudrunner 06-03-2005 08:40 PM

Quote:

Originally Posted by Snake
But you are allowed to have a test board so... there ya go! :)

and I do, just not one I can give out...patience is a virtue

Trana 06-04-2005 03:18 AM

Patience is a virtue for those who like the status quo.

We're excited about this well needed hack, can you blame us?

Thanks again.

Cloudrunner 06-04-2005 04:44 AM

1 Attachment(s)
Quote:

Originally Posted by Trana
Patience is a virtue for those who like the status quo.

We're excited about this well needed hack, can you blame us?

Thanks again.

not really...lol

I'm stuck on the currency selector code at the moment, but hope to have the problem resolved tomorrow...

edit: I've finished the currency selector. It now runs a daily cron to update the exchange rates automatically to today's exchange rates, and then it converts the donation price to the user's selected currency automatically so that the user can pay in their currency and you will still get the amount you request in your currency.

Just to show that I'm not totally slacking off (this has become my one and only thing to work on over the last week or so...bear with me..), here's another screeny...

Been working on the AdminCP interface...

This is the front page of the donations admin...of course I am open to suggestions...

Snake 06-05-2005 06:32 AM

Excellent. What a good news for me today. Keep it up man. :)

mcyates 06-05-2005 07:16 AM

yes this is fantastic, hurry up though lol!!

Mickie D 06-05-2005 09:54 AM

very nice hack :)

does this use CURL ?

and when its finished will it have the auto add a gif or something to the users postbit ?

how will it intergrate into the members that already have donated via subscriptions ??

see i have a specific usergroup that is called contributed and i use template conditionals to show a donated gif for members (post bit) maybe you could use the same instead of it being complicated just add a conditional to your install txt and make your script once VEREFIED is passed to the script the script will add a user secondery group to a contributed/donated usergroup (tounge twisted sorry).

but i like this alot i can keep track of my donations alot better than browseing paypal all the time and checking emails against users :)


Regards
Mickie D

Cloudrunner 06-05-2005 12:58 PM

Quote:

Originally Posted by mcyates
yes this is fantastic, hurry up though lol!!

I'm going as fast as I can on it ;)

Quote:

Originally Posted by Mickie D
very nice hack

Thank you, but it's still a work in progress, that's why I haven't yet released it.

Quote:

Originally Posted by Mickie D
does this use CURL?

No need for CURL, just a simple fgets(); and regexp explode to get the daily exchange quotes, and the system itself is using standard $_POST variables bounced between your server and PayPal's verification server to not only give notification, but to make sure that now spoofing is being done from the outside the servers (i.e. someone tries to inject variables to the program, but paypal's server will see this as erroneous data, and give a response of invalid...thus protecting you from possible hack attempts).

Quote:

Originally Posted by Mickie D
and when its finished will it have the auto add a gif or something to the users postbit?

The current plan is to have the users be marked as a contributor, and based on that setting have the memberlist, postbit, and profile show that they have contributed, I haven't quite figured out how I want to implement this yet, but I am working on that side of the house as soon as I finish with the admin panel.

Quote:

Originally Posted by Mickie D
how will it intergrate into the members that already have donated via subscriptions?

Unfortunately, integrating it with previously subscribed purchases will make it very difficult to setup to do that automatically since historical transactions are difficult to code for on an individual basis from PayPal. So I have added the ability to mark a member as a contributor without the need for a transaction, all you have to do is input their username, and total donations, the system will do the rest.

Quote:

Originally Posted by Mickie D
see i have a specific usergroup that is called contributed and i use template conditionals to show a donated gif for members (post bit) maybe you could use the same instead of it being complicated just add a conditional to your install txt and make your script once VEREFIED is passed to the script the script will add a user secondery group to a contributed/donated usergroup (tounge twisted sorry).

That would require an extra step on the part of the admin in creating a secondary usergroup to do this, and I'm trying to keep extraneous code modifications, and side-bar database INSERTS down to a minimum, so using the current system it only requires that a user be "marked".

Quote:

Originally Posted by Mickie D
But i like this alot i can keep track of my donations alot better than browseing paypal all the time and checking emails against users.

The entire reason I'm bringing this back up folks ;)

)O( Cloudrunner )O(

artonex 06-05-2005 06:08 PM

hey Cloudrunner i cant wait for the release of this, hope it comes soon :D:D

Cloudrunner 06-05-2005 07:58 PM

Quote:

Originally Posted by TheWebJunkie
hey Cloudrunner i cant wait for the release of this, hope it comes soon :D:D

Alright, as of now we are in Alpha Final. As long as no bugs raise their ugly heads we'll be going Beta by Friday.

w00tworld 06-05-2005 08:16 PM

Now this looks like the sort of modification I have been seeking, I hope all gos well with your testing Cloudrunner and look forward to making use it ;)

dsboyce8624 06-05-2005 08:52 PM

As a tester of this, I'd just like to say that CR is working very hard, and it looks like things are going very well.

Now if I only had people interested in donating to my site!!!!

:banana:

jugo 06-06-2005 12:15 AM

Dude...you are gonna make ALOT of people very happy.

WOW!!!

dsboyce8624 06-06-2005 12:18 AM

Quote:

Originally Posted by jugo
Dude...you are gonna make ALOT of people very happy.

WOW!!!

Does that mean they'll donate to my site?

jugo 06-06-2005 12:19 AM

Well...are YOU coding it? LOL.

dsboyce8624 06-06-2005 12:35 AM

Naw, just testing it.

<insert neener, neener nosies here>

Seriously, it's gonna be real nice. CR is doing a hell of a job.

Even when I email him a bug in the middle of the night!

LOL

GSX-Racing 06-06-2005 02:10 AM

This hack will be awesome when done. Thanks in advance.

Cloudrunner 06-06-2005 02:55 AM

I've some templates issues to address over the next week or so with the Alpha (seems that IE doesn't like em much, while mozilla, firefox, opera, and all the other non-ie browsers love the templates...oh well), but nce that's been addressed barring ay new bugs, we'll be going Beta with this, so here's the call for feature suggestions. Go ahead and post em here as I'll be asking a mod to move this *back* to the beta forum once we've gone that route.

Thanks for the support on this folks, I really didn't realize there was this much of a call for it or I would have done it months ago...

)O( Cloudrunner )O(

VBUsers 06-06-2005 03:10 AM

great job cant wait for this to come out.

dsboyce8624 06-06-2005 03:45 AM

Yeah, IE'll get ya every time. But it's still the most used by a long shot.

Good thing I use it, or you'd be working on those templates under a little more pressure, LOL!

artonex 06-06-2005 08:03 AM

thanks for the updates CR, any chance the hack will look like this?

https://vborg.vbsupport.ru/

w00tworld 06-06-2005 03:40 PM

Quote:

Originally Posted by TheWebJunkie
thanks for the updates CR, any chance the hack will look like this?

http://www.sigstorage.com/upload/1329-Untitled-3.gif


TheWebJunkie, this is what I am seeking also, would be great;)

camoman 06-06-2005 06:15 PM

Man I can't wait!! Thank you !!


All times are GMT. The time now is 12:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01329 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete