Integration Guide

Table Of Contents
Single-Item Payments – Buy Now Buttons
Sample HTML Code for Buy Now Buttons
1
62 September 2008 Website Payments Standard Integration Guide
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle">
<input type="hidden" name="amount" value="5.95">
<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_buynow_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>
Sample HTML Code for Buy Now Buttons With Product Options
When you add production options to your Buy Now buttons with HTML code that you write
yourself, you can have a maximum of ten product options, each with their own sets of choices.
The options can be either dropdown menus or text boxes. Only one of the dropdown menu
options can have options with prices.
Read the following topics for sample code that illustrates various ways to add product options
to Buy Now buttons.
z “Sample Code for a Buy Now Button With Product Options” on page 62
z “Sample Code for a Buy Now Button With Product Options With Prices” on page 63
z “Sample Code for a Buy Now Button With Product Options as a Text Box” on page 65
For more information, see “Offering Product Options With Buy Now Buttons” on page 36.
Sample Code for a Buy Now Button With Product Options
The sample code below illustrates a basic Buy Now button with a dropdown menu of product
options.
<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="herschelgomez@xyzzyu.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">