Integration Guide

Table Of Contents
Website Payments Standard Integration Guide September 2008 233
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Sample HTML Code for Add to Cart Buttons
4
method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="kin@kinskards.com">
<!-- Specify an Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name"
value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Provide the buyer with a text box option field. -->
<input type="hidden" name="on0"
value="Size">Enter your size (S, M, L, X, XX) <br />
<input type="text" name="os0" maxlength="60"> <br />
<!-- 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 HTML Code for Add to Cart Buttons that Open the Shopping Cart in
the Merchant Window
By default, when buyers click Add to Cart buttons, the PayPal Shopping Cart opens in a
separate browser window.