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. It can be used anywhere on your site (sidebar, posts, pages etc).
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.
WordPress admins can also configure this plugin with a ‘Donate’ button to receive donations through PayPal.
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 like that. 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.
The Plugin can also be configured to accept donation too. See the screenshots for example.
You can also configure it to accept a donation amount entered by the user.
This plugin does not give you a shopping cart or e-commerce functionality. Check out the WordPress Simple Paypal Shopping Cart plugin, If you are looking for an e-commerce plugin for your WordPress site.
WordPress PayPal Payment Plugin 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/shortcode to a post or page where u want it to appear. see the Usage section for more details.
WordPress PayPal Payment Plugin Usage
There are three ways you can use this plugin:
1. Add the following shortcode to a post or page.
2. Call the function from a template file:
3. Use the ‘WP Paypal Payment’ Widget from the Widgets menu.
Usage Video Tutorial
Usage with Shortcode to Create PayPal Payment Widget
This plugin comes with a couple of very powerful shortcodes to create a PayPal payment button. The following section has usage examples so you can see how to use these shortcodes.
You can use the following shortcode to create a PayPal payment button on the fly and show it anywhere on your site:
[wp_paypal_payment_box email="[email protected]" options="T-Shirt Payment:15.50|Ticket Payment:30.00|Membership Payment:47.95"]
Note: You will need to replace the example values in the shortcode parameter with actual value for your site.
Optionally, you can add some more parameters in the above mentioned shortcode to customize the currency code, reference title, return page URL, tax etc. Below is a list of the supported parameters in the payment button shortcode
Here is an example shotcode usage with some extra parameters to give you an idea of how to use it:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service One:15.50|Payment for Service Two:30.00|Payment for Service Three:47.00" currency="USD" reference ="Your Email Address" return="the-return-url-page"]
Allow Your Users to Specify an Amount
You can use the “other_amount” parameter in the shortcode to allow your customer to specify an account (name your price). Here is an example usage:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service One:15.50|Payment for Service Two:30.00|Payment for Service Three:47.00" other_amount=true]
This shortcode can be used anywhere on your site and as many times as you want with different values to accept payment for another product or service.
Use a Custom Button Image
You can use the “button_image” parameter in the shortcode to specify a custom button image for the payment button. Here is an example usage:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service 1:15.50|Payment for Service 2:30.00|Payment for Service 3:47.00" button_image="http://example.com/my-custom-button.jpg"]
Specify a Country Code for Language
Use the “country_code” parameter in the shortcode to specify a country code. Here is an example usage:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service 1:15.50|Payment for Service 2:30.00|Payment for Service 3:47.00" country_code="US"]
Specify a Cancel URL
Use the “cancel_url” parameter in the shortcode to specify a cancel URL in the widget
[wp_paypal_payment_box email="[email protected]" options="Payment for Service 1:15.50|Payment for Service 2:30.00|Payment for Service 3:47.00" cancel_url="example.com/cancel-url"]
Open Payment Page in a New Window
Use the “new_window” parameter in the shortcode to open the payment page in a new window. Here is an example shortcode usage with the new_window parameter:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service 1:15.50|Payment for Service 2:30.00|Payment for Service 3:47.00" new_window="1"]
It will open the paypal payment page in a new window when the user clicks the buy now button.
Collect Tax For the Payment
You can use the “tax” parameter to specify a tax amount for the payment.
Hiding the Reference Field From the Payment Widget
Use the parameter reference=”” in the shortcode will hide/disable that field.
Using a Text Based Payment Button
If you want to use a text based payment button (instead of an image) then use the “button_text” parameter in the shortcode.
Here is an example shortcode that will create a payment button widget with “Pay Now” as the button text:
[wp_paypal_payment_box email="[email protected]" options="Payment for Service 1:15.50|Payment for Service 2:30.00|Payment for Service 3:47.00" button_text="Pay Now"]
Payment Widget to Accept Any Amount
You can use the following shortcode to create a payment widget that your users can use to send you any amount of money.
[wp_paypal_payment_box_for_any_amount email="[email protected]" description="payment for xyz"]
You can use the following shortcode to create a payment widget for any amount with a specified currency.
[wp_paypal_payment_box_for_any_amount email="[email protected]" description="payment for xyz" currency="USD"]
Adding a Payment Widget to the Sidebar
Check this tutorial to learn how to add a payment widget to the sidebar.
Download Latest Version
Download the Plugin.
version 4.2 and 4.3
Cleaned up the settings area a bit and made the options more user-friendly.
Fixed a small issue using the other amount option with the shortcode.
The currency code will now be shown after the “Other Amount” field.
Added the option to create text based payment button. Use parameter “button_text” in the shortcode to use it.
Added an option to specify “tax” parameter in the payment shortcode.
Added an option to exclude the “reference” field from the payment widget
Added more parameters in the “wp_paypal_payment_box_for_any_amount” shortcode. New parameters are “reference” and “currency”.
Added a new shortcode to create a payment widget to accept any payment amount
Added an option to specify a custom button image for the payment widget.
Added an option in the shortcode to specify a payment subject. This can be handy if you have multiple payment widgets on your site.
WordPress 3.7 compatibility
Fixed some deprecated calls
Added an option in the shortcode to specify a country code for paypal checkout page language
Added an option to specify a different amount (any amount your user whish to pay) via the shortcode.
WordPress 3.6 compatibility
Fixed a minor bug with the PayPal buy button shortcode
Added a custom shortcode option where all the parameters can be specified in the shortcode. this will allow you to create multiple paypal payment widget in various places of your site.
Added a new shortcode to place the payment accept form
Fixed an issue whereby the decimal numbers were getting stripped from the paypal payment amount.
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.
Removed the link to settings option from the widget panel.
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 Widget Support.
Added more payment options (up to six).
Fixed up some minor ‘html’ bugs.
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.
Don’t forget to check out the WordPress Simple Paypal Shopping Cart plugin which also allows you to sell proucts and services site-wide and has shopping cart functionality or the WordPress Donation Plugin which allows you to receive a simple donation.
If you are looking for a professionally supported, feature rich and robust way to sell products or services then checkout our WP eStore plugin.