There are a number of scenarios where the use of a PayPal donate button is a good way to garner a few extra bucks from one's web offerings. If expectations are realistic and it is understood that the key word in the phrase "a few extra bucks" is the word "few", placing a PayPal donation button on your website, blog, or in a download, is worth the effort. The one place I use a donate button is in a download I contributed to the osCommerce community:
HERE . . . it has been available since April/09 and has produced 5 donations of $5 each for a total of $25. There have been hundreds of downloads. In this case I set the donation amount to $5 (which I will refer to later).
How To: A PayPal donation button is HTML code which is taken from the pages of your PayPal account and can be placed anywhere that HTML code can be placed (duh). An example of what it will look like below:
The image you see above will be served by PayPal when you create your donation button but it can be replaced with your own custom version if desired. To find the code in your PayPal account pages: when in your PayPal account find and click on the tab at the top of the page
"Merchant Services" then scroll down to find the small heading
Create Buttons, then click on the link
"Donate" . . . this will take you to the page where you create the code for your donate button. You can also use the word "donate" in the search field at the top of the page.
Once you are on the page entitled
"Create PayPal payment button" . . it is simply a matter of scrolling down and selecting your preferences. You have the choice here to select a pre-set amount for the donation or allow the donator to fill in their own amount. Which is preferable depends on the application or what the donation is for.
When this page is completed, click on Create Button at the bottom of the page which will take you to your button code. It will look much like what you see below:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="394HUMMAC2XC8">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Part 2. . . . what to do with this code.
Once you have generated your donation button code, the next step is to place it somewhere onto your blog or website. As it is, there is no control over the appearance and positioning on your web page. A simple solution is to place the form code generated by PayPal into an HTML table. Example code below:
<table align="center" width="100" border="0" cellspacing="0" cellpadding="4" bgcolor="#ffffff" >
<tr>
<td>
<p align="center" style="padding-top:10px;margin-bottom:-10px">
<font style="font-size: 14px;font-weight: bold; line-height:20px;">TIP JAR</font></p>
<!-- REPLACE THE CODE BELOW WITH YOUR OWN PAYPAL DONATE BUTTON CODE -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="394HUMMAC2XC8">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- END OF PAYPAL DONATE BUTTON CODE -->
</td>
</tr>
</table>
Copy and paste the code above into a text editor such as Notepad, (everything from <table> to </table> inclusive). Next; replace the button code with your own button code (everything from <form> to </form> inclusive), then remove the notes <!- CAPS --> and the spaces . . . and you are ready to place the code into the source code of your blog or website. This is what it will look like:
HERE