Integration Guide

Table Of Contents
Website Payments Standard Integration Guide September 2008 105
Contribution Payments – Donate Buttons
Sample HTML Code for Donate Buttons
2
IMPORTANT: Organizations with significant payment volume are required to take
precautions on securing Website Payment Standard buttons.
Sample HTML Code for a Basic Donate Button
The sample HTML code below illustrates a basic Donate button where donors enter their own
contribution amount during checkout. The code uses the currency_code variable to set the
currency for the contribution amounts that donors enter.
<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="donations@kcparkfriends.org">
<!-- Specify a Donate button. -->
<input type="hidden" name="cmd" value="_donations">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="Friends of the Park">
<input type="hidden" name="item_number" value="Fall Cleanup Campaign">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
The sample code above produces the following result:
Paste the code onto your website wherever you want donors to click and make a contribution
in amounts that donors choose.
Sample HTML Code for a Donate Button With a Fixed Contribution Amount
The sample HTML code below illustrates a Donate button where the contribution amount that
donors make is fixed and cannot be changed. The code uses the amount and the
currency_code variables to set fixed contribution amount at $25.00 USD.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">