Integration Guide

Table Of Contents
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Sample HTML Code for View Cart Buttons
4
240 September 2008 Website Payments Standard Integration Guide
method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="kin@kinskards.com">
<!-- Specify a PayPal Shopping Cart View Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<!-- Display the View Cart button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_viewcart_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>
For more information, see “Sample HTML Code for Add to Cart Buttons that Open the
Shopping Cart in the Merchant Window” on page 233.
Sample HTML Code for View Cart Buttons that Continue Shopping on the
Current Merchant Webpage
When buyers click View Cart buttons, the PayPal Shopping Cart page opens. Buyers can see
the items in their carts, and they can begin checking out. In addition, buyers can click the
Continue Shopping button to return to your website and add more items to their carts.
If your website has many product pages, browsers may have difficulty returning buyers to the
same product pages that they leave when they click your View Cart buttons. Returning buyers
to a different page, such as the home page of your website, degrades the shopping experience
for buyers who want to add more items to their carts before checking out.
Use the shopping_url variable to let PayPal control which page buyers return to when they
click the Continue Shopping button.