WordPress Easy Paypal Payment or Donation Accept Plugin
Categories: Featured, Wordpress Plugin
‘WordPress Easy Paypal Payment or Donation Accept Plugin’ is an easy to use WordPress plugin to Accept Paypal payment for a service or a product or Donation in one click. Can be used in the sidebar, posts and pages.
After receiving numerous requests, I have added multiple currency support and a donate button option to this WordPress plugin. See the change log section below. Now WordPress admins can configure this plugin with a ‘Donate’ button to receive donations through PayPal. If you want to accept payment for products and want shopping cart functionality then check the WordPress Simple Paypal Shopping Cart plugin. If you are just after a simple donation only plugin then check out the WordPress Simple Donation Plugin Page.
A while back I was looking for a WordPress plugin to use on one of my sites to accept payment for a simple service without the Customers having to log in to my site or become a member and stuff. I couldn’t find a simple enough WordPress plugin that does the job so I wrote one myself. One of my friends used it and suggested that I should make this plugin available for others to use. So I tidied up some code and decided to release it.
The Plugin can be configured to accept payment for a service or a product in one click. See the screenshot for example:
The Plugin can also be configured to accept donation too. See the screenshot for example.

Donation in Pound Sterling Example

Donation with Other Amount
This plugin does not give you a shopping cart or e-commerce functionality. Those features may be added in the future releases. Check out the WordPress Simple Paypal Shopping Cart plugin, If you are looking for an e-commerce plugin for your WordPress site.
Installation
1. Unzip and Upload the folder ‘WP-accept-paypal-payment’ to the ‘/wp-content/plugins/’ directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Go to Settings and configure the options eg. your email, Subject text etc.
4. Add the following trigger text to a post or page where u want it to appear in HTML view or use the Widget. see the Usage section for more details.
Usage
There are three ways you can use this plugin:
1. Add the following trigger text to a post or page in HTML view.
![]()
2. Call the function from a template file:
3. Use the ‘WP Paypal Payment’ Widget from the Widgets page.
This Plugin in Action
If you like this plugin then support my coffee habit by buying me a coffee. You can also see the Plugin in action too
Download Latest Version (v2.4)
Download the Plugin.
Change Log
- Version 2.4
- Fixed an issue whereby the decimal numbers were getting stripped from the paypal payment amount.
- Version 2.3
- Added the optional “Other Amount” donation capability
- Added a “Return URL from PayPal” field.
- Made the Reference Text customizable and optional.
- Some widget display tweaks.
- Version 2.2.1
- Removed the link to settings option from the widget panel.
- Version 2.2
- Added multiple currency support.
- USD US Dollar
- GBP Pound Sterling
- EUR Euro
- AUD Australian Dollar
- CAD Canadian Dollar
- NZD New Zealand Dollar
- HKD Hong Kong Dollar
- Added Multiple Button Types.
- Pay Now button
- Donate button
- Added multiple currency support.
- Version 2.1
- Added Widget Support.
- Added more payment options (up to six).
- Fixed up some minor ‘html’ bugs.
Feel free to leave your comments. I like comments
Additional Documentation
How to collect the Shipping Address from the customer
You don’t really need to collect shipping address from the customers manually as they can specify a shipping address when paying on PayPal. So this is how it works:
- A customer clicks on the Pay Now/Buy Now button and goes to paypal to pay for the product or service.
- The customer fills in the credit card details or logs into his/her paypal account and reviews the order
- Now before hitting the “Pay Now” button the customer can specify a shipping address by clicking on “Change Shipping” that is shown below the default shipping address.
- After payment, PayPal will send you a payment confirmation email which will have this postal address so you can ship the item.
If you need help wth this plugin (such as additional currency support etc) or if you find an issue with the plugin then leave a comment and I will try to address it as soon as I can and don’t forget to check out the WordPress Simple Paypal Shopping Cart plugin which also allows you to sell proucts and services sitewide and has shopping cart functionality or the WordPress Donation Plugin which allows you to receive donation.
Tags: Paypal, Web development, Wordpress, Wordpress Plugin











#1 by Paco on November 6, 2008 - 2:26 pm
Hi,
How can i make some modifications to the plugin in order to accept payments in Euros?
Thanks,
paco
#2 by admin on November 6, 2008 - 7:14 pm
Do the following to accept payments in Euros or any other currencies:
1. Open the “WP_Accept_Paypal_Payment.php” file in your favourite php editor. You can use Windows Notepad too.
2. Search for “USD” in the file and Replace it with “EUR”.
3. Save the file and upload it to your website and you are done.
Do the same for “GBP” or “AUD” if u want to accept payment in those currencies.
I intend to include these currencies in the options menu in the next release of this plugin.
#3 by Ovais on November 7, 2008 - 12:08 am
Great plugin! Installed lickety split! Havent test it yet but so far so good!
#4 by tansu on November 12, 2008 - 12:20 pm
How can I multiply it,
I want to use it in another post with different values.
thanks
#5 by Aine on November 12, 2008 - 5:43 pm
Nice plugin, easy installation. Haven’t gotten a cappuccino yet, but I guess we’ll find out if it works when I do. *grinning*
#6 by Ovais on November 16, 2008 - 10:54 pm
just wondering if there is a way to add more than 4 payment amounts?
#7 by theokomunika on November 17, 2008 - 4:59 am
I want to have 5 Payment options. How can i do it?
#8 by admin on November 20, 2008 - 12:16 am
Adding more payment option is really easy but does require some code changes though.
I intend to add more options on the next version of this plugin but for now this is what you have to do (should only attempt this if you understand php code):
1.Open the “WP_Accept_Paypal_Payment.php” file in your favourite php editor.
2. Go to line 66 and observe the 4th option. Basically you need to introduce more of that. So copy the 4th option code block and paste it just immediately under the closing braces. Then change the variables to 5 and so forth. You can hard code the payment amounts here so you don’t have to update the settings menu option.
#9 by Harun Azis on November 20, 2008 - 1:52 am
Many thanks, i will use it on my blog.
#10 by Dan on November 28, 2008 - 10:52 pm
The php worked great, but I am not sure how to use the trigger text. Do I just create a page and drop
as the only text of the page? (that was my guess, but no luck)
#11 by admin on November 29, 2008 - 5:51 am
You can use the trigger text anywhere in the page or post(it doesn’t have to be the only text in the page).
You need to make sure that you are putting the trigger text on the page in “HTML” view and not from the “Visual” view. You can switch between the “HTML” and “Visual” view by clicking the button on the upper right hand corner of the post or page editing menu.
#12 by Dan on December 17, 2008 - 12:15 am
Nope, just not getting it, it doesn’t seem to work
Anyone have a screen shot of what it is supposed to look like (the trigger text) just so I can confirm I am not missing something obvious? Seems totally straight forward, but it just displays as text
“Add the trigger text to a post or page”
#13 by Dan on December 17, 2008 - 12:16 am
Ignore my last – works perfectly now. No clue what I was doing wrong
#14 by regerar on January 8, 2009 - 10:31 pm
Greetings! The plugin looks awesome, but i have two issues:
1.) I cannot save ANY information on the setup page. When i click “update”, it simply takes me to my general settings page, and when I go back to the WP Paypal payments settings page, all defaults have been restored.
2.) Even after adding the trigger text in the html view, it still will not show up on any of my pages. Any ideas?
#15 by admin on January 9, 2009 - 12:15 am
@Regerar, This is interesting… I have had a similar problem like this with one guy ages ago but he manually updated some php code in the plugin and that broke it. Did you change any php code of this plugin? I would suggest deactivate the plugin then delete it and download a fresh copy and reinstall it. Let me know how you go.
#16 by Anonymous on January 12, 2009 - 5:57 am
Easy paypal payment plugin isn’t working on my site. On page when I add the trigger text < !– wp_paypal_payment –>, it appears instead of payment form. What can be wrong?
#17 by admin on January 12, 2009 - 6:01 am
Looks like the trigger text you are using has one hyphen ‘-’ instead of double hyphen ‘–’
#18 by Jon on January 12, 2009 - 10:15 pm
This looks like it will do what I want.
Are there simple changes I can make to the code to test it with the PayPal sandbox? If so, what are the changes?
#19 by Jon on January 13, 2009 - 11:08 am
Never mind. To test this with the PayPal sandbox, one need only change the form action from http://www.paypal.com/... to http://www.sandbox.paypal.com/...
In a future release, maybe you can put in a configuration option for using the sandbox.
#20 by Michelle on January 13, 2009 - 12:44 pm
This looks like the perfect solution for my needs… one thing though, is there a way I can have the button go to a certain page after payment (like is done with the regular PayPal buttons)?
#21 by admin on January 14, 2009 - 11:04 pm
@Jon, sorry couldn’t get back to you in time. Thanks for the recommendation… I will definitely incorporate Paypal Sandbox option into the Paypal payment accept plugin in the next release.
#22 by Ray on January 15, 2009 - 10:20 pm
Great plugin, easy installation. I’ll be using it on a few ore sites thanks
#23 by Galt lawyer on January 15, 2009 - 10:21 pm
looks good too
#24 by admin on January 15, 2009 - 11:00 pm
Hi Michelle, At the moment you can’t have the button go to a certain page after payment without a little bit of code change. If you are familiar with php then it should be really easy… you just gotta add a return input with the value being the target webpage address to the form.
Its on my list of things to add to the next release of the WordPress Paypal plugin.
If you really really really need it then I guess i could allocate some time and do the update work now
#25 by bryce on January 19, 2009 - 4:46 pm
Hi,
Can this be used for multiple paypal accounts on the one blog. As an example if I have 4 artists who each have their own merchandise, can I action 4 various triggers, each going to thier respective paypal accounts?
#26 by admin on January 19, 2009 - 6:01 pm
@Bryce, at the moment this plugin cannot be used in the way you explained.
#27 by Steve Alm on January 26, 2009 - 12:19 pm
Great plugin. Would you comment about changing the font size of the title and leaving space after the widgit, so that I can fit it seamlessly into my theme?
#28 by Steven Alm on January 27, 2009 - 11:25 am
Setting up a new page was easier and less messy, so that’s what I did. Now let’s see if it works on the Paypal end.
#29 by Cotton Rohrscheib on January 28, 2009 - 11:11 pm
I am using this on my church website to collect payments for tickets to a conference. Is there a way I can tweak it so that when they go to paypal to complete payment that it allows them to add to the “quantity”?
#30 by admin on February 2, 2009 - 2:15 am
Hi Cotton, unfortunately the wordpress paypal payment plugin doesn’t have the ‘quantity’ modification capability but I am working on a version that will have it.
#31 by RobertF on February 10, 2009 - 1:26 am
Hi there. I’m very hopeful about your WP Easy PayPal plugin. Looks like it’s going to meet my fairly simple needs quite nicely. My next step is to give it a test run and use the form to order something via PayPal. I do have one hopefully simple question–How easy would it be to center the form on the page rather than having it be left-justified? (I tried to do this from the edit/page of my WP 2.7, but no luck.) The rest of the content on the page is center-justified and I’d love to be able to center-justify the PayPal info as well. Thanks! for providing us with this plugin.
#32 by admin on February 10, 2009 - 1:59 am
Hello Robert, To center the WordPress Paypal Payment Plugin simply put in the following in your post or page in the HTML view:
<p style=”text-align: center;”><!– wp_paypal_payment –></p>
#33 by Jonco on February 14, 2009 - 12:37 pm
How can I change the font size of the title text?
#34 by Brett on February 14, 2009 - 2:27 pm
How can I multiply it,
I want to use it in another post with different values.
thanks.
Ditto on this comment??
#35 by admin on February 16, 2009 - 6:08 am
@Brett, you can’t multiply this plugin. Please use the wordpress paypal shopping cart plugin on this page if you have multiple products http://www.tipsandtricks-hq.com/wordpress-simple-paypal-shopping-cart-plugin-768
#36 by tom on February 20, 2009 - 12:27 pm
your response to anonymous on 1-20 suggests using a double hyphen instead of single….which i tried….as well as cut and paste the trigger….i even tried a new page….but the trigger just won’t load on a page…..again it does on a sidebar widget….but it bleeds into the main part of the posting page
#37 by tom on February 20, 2009 - 2:45 pm
i give up….. i guess an online store isn’t going to happen
#38 by admin on February 20, 2009 - 4:47 pm
Hi Tom, Don’t give up just yet… it’s working on thousands of other blogs so I am sure it will work on yours. When you add the Trigger to your post or page make sure you add the trigger text in “HTML” view and not from the “Visual” view. You can switch between the “HTML” and “Visual” view by clicking the button on the upper right hand corner of the post or page editing menu.
#39 by RobertF on February 20, 2009 - 6:04 pm
Hi Admin–I’m just getting back to tweaking your plug-in on my site. I’ve just about got it the way I want it. But I’m still hoping to center the PayPal info on my page. I tried the HTML that you suggested on 2/10, but it remains justified left rather than center. I’m wondering if I’m still doing something wrong? (I tried adding a after the HTML but that didn’t do anything.) If you’d like to look at the page/code here is the link — http://lightmorning.org/hp_wordpress/publications/
Any suggestions would be much appreciated. Thanks a lot. ~Robert
#40 by RobertF on February 20, 2009 - 6:08 pm
The last note I just posted seemed to delete the piece of HTML I inserted. I’ll try again. The sentence in parens should read–(I tried adding a after the HTML [that you suggested] but that didn’t do anything.)
#41 by RobertF on February 20, 2009 - 6:16 pm
Interesting. The comments doesn’t like HTML code. So, using text, “I inserted a [end paragraph tag]…” etc
#42 by admin on February 20, 2009 - 9:32 pm
Hi Robert, Just use the following code in HTML view to place the WordPress Paypal payment module in the center.
<div align=center>
<!– wp_paypal_payment –>
</div>
It may not come out nicely in this comment but that’s a double dash (- -) in the tag. Let me know if this helps.
#43 by RobertF on February 22, 2009 - 8:28 am
Thanks!! With a bit more tweaking I was able to get the PayPal info centered. It’s a good nudge to extend my very rudimentary HTML (and CSS) skills. One more question–is it possible (yet?) to have the plugin be WordPress Easy Paypal Payment AND Donation Accept Plugin? I haven’t tried it yet, but I’d like to have the Payment option on one page of my site and the Donation option on another page of my site. Can it be both/and or is it either/or? Thanks once more for your simple, useful plugin!