User's Manual

Table Of Contents
Merchant User Manual and Integration Guide May, 2005 131
A
HTML Samples
PayPal Buy Now and Donation Buttons HTML and Variables
By understanding how your Buy Now Button HTML code and hyperlinks work, you can edit
the attributes of your buttons or create appropriate Buy Now code “on the fly” for each
payment. This can be used to collect aggregated payments with your shopping cart.
Integrating Buy Now Buttons with your Shopping Cart
To integrate Buy Now Buttons with your shopping cart, your shopping cart will need to
populate the necessary Buy Now fields when your customers proceed to checkout.
The following tables itemize the different parameters within the Buy Now Buttons HTML
code and the Buy Now hyperlink.
Sample Buy Now Button HTML
The HTML for a Buy Now Button looks similar to the following.
NOTE: Several optional fields are shown.
IMPORTANT:You can change the values for any of the variables, with the exception of the
first two lines:
<form target="paypal" action="https://www.paypal.com/cgi-
bin/webscr" method="post">
<input type=”hidden” name=”cmd” value=”_xclick”>
These lines are required and must not be changed
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=”jsmith@paypal.com”>
<input type=”hidden” name=”return” value=”http://www.yoursite.com/thankyou.htm”>
<input type=”hidden” name=”undefined_quantity” value=”1”>
<input type=”hidden” name=”item_name” value=”Baseball Hat”>
<input type=”hidden” name=”item_number” value=”123”>
<input type=”hidden” name=”amount” value=”5.95”>
<input type=”hidden” name=”custom” value=”merchant_custom_value”>
<input type=”hidden” name=”invoice” value=”merchant_invoice_12345”>
<input type=”hidden” name=”no_shipping” value=”1”>
<input type=”hidden” name=”image_url” value=”https://www.yoursite.com/logo.gif”>