Integration Guide

Table Of Contents
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Sample HTML Code for Add to Cart Buttons
4
232 September 2008 Website Payments Standard Integration Guide
value="Select a color scheme">
-- Select a color scheme --</option>
<option value="Blue">Blue</option>
<option value="Pink">Pink</option>
<option value="Yellow">Yellow</option>
</select> <br />
<!-- Provide a dropdown menu option field with prices. -->
<input type="hidden" name="on1" value="Size">Size <br />
<select name="os1">
<option
value="Select a size">-- Select a size --</option>
<option value="2x4">2 x 4 - $3.95 USD</option>
<option value="3x5">3 x 5 - $4.95 USD</option>
<option value="4x6">4 x 6 - $5.95 USD</option>
</select> <br />
<!-- Specify the price that PayPal uses for each option. -->
<input type="hidden" name="option_index" value="1">
<input type="hidden" name="option_select0" value="2x4">
<input type="hidden" name="option_amount0" value="3.95">
<input type="hidden" name="option_select1" value="3x5">
<input type="hidden" name="option_amount1" value="4.95">
<input type="hidden" name="option_select2" value="4x6">
<input type="hidden" name="option_amount2" value="5.95">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_cart_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 on your webpage:
Paste the code onto your webpage below an image or a text description of the item.
Sample Code for an Add to Cart Button With Product Options as a Text Box
The sample code below illustrates a basic Add to Cart button with a text box for entering
product options.
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"