There are a lot of websites or blogs where the site owner shares the content with users absolutely free. For a non-profit organization, keeping its website alive always needs a fund or helping hands. If your website really helps users or solves the problems of your visitors then in return you can ask for a donation. Of course, if your website has built trust with the audience they decide to pay a donation to your website.
The next question is how to accept donations online. The site owner can receive a donation in several ways. They can provide bank details for an online wire transfer or tend to use a service that accepts payment online.
PayPal is one of the popular ways to accept donations online. Sending or receiving payment through PayPal is more secure. And that’s why it is a popular payment gateway. In this article, we study how to add PayPal donate button on your website.
Add PayPal Donate Button
For accepting donations through PayPal, you should have a PayPal account. Creating an account on PayPal is free and you don’t need to pay anything upfront.
Using PayPal, we can place the donate button anywhere on our website. When a user clicks on the button they will redirect to a PayPal website where they can complete the payment process. The amount will be credited to your PayPal account which you can transfer to your bank accounts anytime.
To generate a donate button, you need to place a code below where you want to display your donate button.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business"
value="YOUR_PAYPAL_EMAIL_ADDRESS">
<!-- Specify a Donate button. -->
<input type="hidden" name="cmd" value="_donations">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="WRITE_PURPOSE_HERE">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif"
alt="Donate">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
Make sure to replace placeholders with the actual values. After adding the above code, the PayPal donate button should look like as below:
You can customize the button and place your own button also. All you need to do is replace the current image src path with your image path.
Add PayPal Donate Button Using Plugin
If you are running a WordPress website, then you can choose the WordPress PayPal donation plugin for it. It’s up to users actually. The above method also does the same thing that the plugin does. If you are not comfortable with adding HTML code to your file then go for a plugin.
First, install and activate the plugin PayPal Donations.
Upon activation, go to the menu PayPal Donations->Buttons and create a PayPal donation button.
On the next page, you have to fill in some information regarding the donation. Here, all fields are optional. You can keep the default settings or fill in the details. Don’t forget to save the changes.
After creating the PayPal button, you will get a shortcode that you need to place where you want to display the donate button. But before that go to PayPal Donations->Settings page and add your PayPal email address.
Now place your shortcode anywhere you want and donate button will appear on your website.
Related Articles
- Get Social Share Buttons For WordPress Using ShareThis Share Buttons Plugin
- A Guide For Stripe Integration In Website With PHP
If you liked this article, then please subscribe to our YouTube Channel for video tutorials.