PayPalDonatePluginThis is a plugin for WordPress that adds a small PayPal Donation form on your sidebar. It allows visitors of your site to make a donation or contribution via PayPal, the most popular and largest online payment processing service. Some settings can be changed via the Options Page.

For a while now every (almost) technology blog I came across on the internet has the PayPal Donate button. Sometimes they are located on an article, but most of them they can be found on the sidebar. Obviously I didn’t want to be left out, so I went to seek the code for my own PayPal Donate button.

However, I thought WordPress had a plugin for almost everything and did a quick search. To my surprise, there weren’t any (if there are please let me know so I can correct this). The closest that I found was Patrick Chia’s PayPal Donate Widget Plugin. I must thank him for his creating that plugin. Nonetheless, I’m not ready to play with Widgets yet, so I was still out of luck.

I thought to myself, how hard is it to create a plugin for WordPress? After looking at some sample codes and reading some articles found on WordPress (watch out for this cool video demonstration on creating your first plugin), I decided to give it a shot.

And so, the PayPal Donate Plugin for WordPress was born.

Installation is very straight-forward:

  1. extract the zip file into your wp-content/plugins/ folder
  2. activate it in your WordPress Plugins Dashboard
  3. enter your details in the Options page (make sure you do this!)
  4. insert code snippet to your sidebar.php

These settings are currently configurable on the Options page:

  1. PayPal E-mail Address
  2. Currency
  3. Donation Reference
  4. Return URL
  5. Cancelled URL
  6. Choice of buttons (the ones in use by PayPal)

Example code snippet:

<h2><?php _e('Tip Jar'); ?></h2>
<?php if (function_exists('ec_paypaldonate')) { ec_paypaldonate(); } ?>

This is my first ever WordPress plugin so please be gentle. The code is still a bit messy, but it definitely works on my installation of WordPress (v2.0.3). It still needs to be thoroughly tested so please don’t blame me if anything breaks! Testers, suggestions and comments are most welcome.

Please report any bugs and support questions in this WordPress forum thread.

Oh, and if you happen to like my plugin, I wouldn’t mind a small donation as well. *cheeky-grin*

Download PayPal Donate Plugin for WordPress here:
wp-paypal-donate-v0.3.zip (12kb)
wp-paypal-donate-v0.2beta.zip (12kb)

Changelog:

  • 18 June 2006 (Version 0.3)

    • No longer beta.
    • Moved currency options from actual form to the Options page.
    • Remove 1.00 as an amount selection.
    • Removed Yen as a currency selection since 100 Yen works only to about 86 cents.
    • Improved Options page, now remembers button and currency selection.
    • Added credits to source code
  • 15 June 2006 (Version 0.2beta) - Now validates ok on XHTML 1.0.
  • 14 June 2006 (Version 0.1beta) - First public Release.

Credits:

Print This Post/PagePrint This Post E-Mail This Post/PageEMail This Post

40 Responses to “PayPal Donate Plugin for WordPress”  

  1. Gravatar Icon 1 maxpower

    Hey dude,

    Nice plugin, I was looking for exactly this kind of thing a few weeks ago. I’ll give it a try shortly. That said, I have a hard time trusting any website with 8 ads on a page. You are crazy! That just my personal opinion.

    Cheers!

  2. Gravatar Icon 2 eJone

    Haha! Thanks. I was waiting for somebody to comment on the ads. I promise to reduce them on your next visit.

    Hope the plugin works for. Let me know if you have any problems. :)

  3. Gravatar Icon 3 Seven_stripes

    Hello,

    I’m having a very hard time configuring the options-paypaldonate.php file.

    Can you please specify which of the lines needs to be modified, and in what way?

    Specifically I’m having a couple problems:
    First, this line: $location = get_option(’siteurl’) - Where do i point it to?

    Second, I get this error when I click the PayPal button which takes me to this site:
    https://www.paypal.com/cgi-bin/webscr
    “We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the “Ask Seller a Question” link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.”

    and Third, the PayPal button does not show up in the sidebar. I thought it was because maybe the image was HotLink protected on the paypal website. But I changed it and put it on my server and still nothing.

    Any ideas?
    Thanks in advance!

  4. Gravatar Icon 4 Ed

    Hi there;

    First thanks very much for the Plugin. My theme doesn’t do widgets (I don’t think) so it saves grief.

    Now I’m really sorry if this is a bone headed question but I’m nor figuring it out :-/

    Where is the output for the “code snippet”? I have everything else installed and the options are configured…but I keep expecting a popup or an email or something with the code for the sidebar: Am I missing something fundamental?

    Thanks.

    Ed

  5. Gravatar Icon 5 Ed

    HaHaHa

    Never mind I figured it out….

    I’m a dork… :-)

    Great PI Thanks!

  6. Gravatar Icon 6 lil wyte

    Hello!

    I installed Wordpress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and

    couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
    – ad here –
    and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
    Do you know a plugin that can handle this?

  7. Gravatar Icon 7 Robin

    Is there a way to add the function of keeping track of donations and listing names of donators under the form?

  8. Gravatar Icon 8 Johan

    ahhhhhhhhhhhhh, Thanks a lot man. I been trying to code one for me but my php skill seems to be far from functional. THANKS (in big words)

  9. Gravatar Icon 9 OFFI

    Vielen Dank für das Plugin. Genau sowas habe ich gesucht

  10. Gravatar Icon 10 Jermaine

    Hello,
    Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?

    Thanks.

  11. Gravatar Icon 11 Mark S. Meritt

    A nice plugin. I wonder, is it possible to add to the plugin the additional functionality provided at PayPal for creating buttons, such as encryption for secure processing, allowing donors to add an optional note, etc.? That would be great. Even so, nice work on this. Thanks very much.

  12. Gravatar Icon 12 weirdoux

    thanx my friend…
    really love it!

  13. Gravatar Icon 13 menj

    Is it possible to have a Sidebar Widgets version of this plugin? The code does not seem to work with Widgets :(

    - MENJ

  14. Gravatar Icon 14 Acro

    Could someone please explain to a new blogger how to add the code to the Sidebar inside SmartFTP? I see a subfolder for “Sidebar Widget” but no Sidebar.php and it’s impossible to copy and paste the code snippet into the inside of a folder. Help! :)

  15. Gravatar Icon 15 eJone

    MENJ: If you read through my post, there’s a link to the Widgets version of this plugin, where I got my inspiration from. :)

    Acro: Sorry, I’m not to sure how Blogger works. This plugin is for Wordpress only :)

  16. Gravatar Icon 16 Raymond

    Can you please tell me how to find the output code? I know it is here somewhere but I am lost. :-( Thanks!

    ~Ray

  17. Gravatar Icon 17 Raymond

    I have been reading and understand that the example code is the output code??? Well Where exactly in sidebar.php do I put the code because I have been trying and trying but no matter where I put it nothing shows up. :(

  18. Gravatar Icon 18 TotalBalance

    Great plug-in. One question …
    At least on my system, when I click the donate button and go to PayPal payment form, the email for the customer to donate via PayPal (sign in username and password) is filled in with MY email (the email filled in via options).

    This happened even after I rebooted and cleared cookies. Is there something I’m missing? If this is “as designed” how can I leave it blank?

  19. Gravatar Icon 19 eJone

    Sorry for the late replies. Been busy with other stuff.

    Raymond: Please give me more details. What version of Wordpress are you running? Did you remember to activate it?

    TotalBalance: This sounds like an “AutoFill” issue. Are you using Firefox or Internet Explorer?

  20. Gravatar Icon 20 jj

    This paypal file does not work. When you go to the options page and click on the paypal button…a page comes up ‘ERROR 404 FILE NOT FOUND”

  21. Gravatar Icon 21 Leisel

    Hi, I was wondering what exactly needs to be done to insert code into the sidebar.php. I don’t understand how to access this. I have the program installed and activated and my account changed, but the last step is really making me confused.

    I’d appreciate any help. Thanks!

  22. Gravatar Icon 22 Leisel

    Hi, I was wondering what exactly needs to be done to insert code into the sidebar.php. I don’t understand how to access this. I have the program installed and activated and my account changed, but the last step is really making me confused.

    I’d appreciate any help. Thanks!

  23. Gravatar Icon 23 Rick

    I love the plugin but, how do you change the text that reads Tip Jar?

  24. Gravatar Icon 24 admin

    We recently installed your plugin wp-paypal-donate-v0.3, but we need certain changes we could not make due to our poor php knowledgement.

    Ffirst we would like to add an radio button wher donors choose the currency the want to use, second to eliminate the website field, and third the amount to be donated should be entered by donors.

    Hope to hear from you soon.

    Best regards,

  25. Gravatar Icon 25 admin

    We recently installed your plugin wp-paypal-donate-v0.3, we use WP 2.3.2, but we need certain changes we could not make due to our poor php knowledgement.

    Ffirst we would like to add an radio button wher donors choose the currency the want to use, second to eliminate the website field, and third the amount to be donated should be entered by donors.

    Hope to hear from you soon.

    Best regards,

  26. Gravatar Icon 26 Mike

    Can you please let me know how the “return URL” function is supposed to work? I’ve filled in the desired return URL in the options page for this plug in, but do I need to make additional changes anywhere else? I tested making a donation but I did not return to the page I specified, instead it just went to a pay pal default page of sorts…

    Thank for you help.
    Mike

  27. Gravatar Icon 27 Mike

    Can you please let me know how the “return URL” function is supposed to work? I’ve filled in the desired return URL in the options page for this plug in, but do I need to make additional changes anywhere else? I tested making a donation but I did not return to the page I specified, instead it just went to a pay pal default page of sorts…

    Thank for you help.
    Mike

  28. Gravatar Icon 28 Jasz

    Just want to say thanks!
    You rule and I hope everyone donate to you.

  29. Gravatar Icon 29 Jasz

    Just want to say thanks!
    You rule and I hope everyone donate to you.

  30. Gravatar Icon 30 SciFiDrive

    Thanks for the plugin!
    Cya!

  1. 1 straydog scraps � Add a Paypal Donate button to your Wordpress Blog
  2. 2 PayPal Donate Plugin for WordPress Widget Support · supriyadisw dot net
  3. 3 wp blog » Blog Archive » poi ci sono i plugin
  4. 4 BlogCarta.com · PayPal Donation Widget For WordPress
  5. 5 MyBlog2U.net - Free WordPress Blog Host » Top Wordpress Plugins
  6. 6 Computer Game News and Game Reviews
  7. 7 Paypal Donation facility activated | Top Left Hand Page
  8. 8 Leonaut.com
  9. 9 International Voip Free
  10. 10 Theme Collection » Blog Archive » PayPal Donate Plugin for WordPress


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Subscribe

Subscribe to my RSS Feeds




Text Link Ads


Your Ad Here



visitors | Copyright (C) 2006 eJoneClicks.com