Integration Guide

Table Of Contents
PayPal Payments Standard Integration Guide June 2012 303
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Creating PayPal Shopping Cart Buttons with JavaScript Disabled
6
Use the shopping_url variable to let PayPal control which page buyers return to when they
click the Continue Shopping button.
<form target="paypal" 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="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">
<!-- Continue shopping on the current webpage of the merchant site. --
>
<input type="hidden" name="shopping_url"
value="http://www.kinskards.com/birthday_cards.html">
<!-- 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 Continue
Shopping on the Current Merchant Webpage” on page 293.
Creating PayPal Shopping Cart Buttons with JavaScript
Disabled
The button creation tool on the PayPal website requires JavaScript. If JavaScript is disabled in
your browser, PayPal offers you an alternative tool that does not require JavaScript.
“Getting Started with Add to Cart Buttons With JavaScript Disabled” on page 304
“Getting Started with View Cart Buttons With JavaScript Disabled” on page 305
“Creating Advanced Shopping Cart Buttons With JavaScript Disabled” on page 306
“Limitations When Creating Shopping Cart Buttons With JavaScript Disabled” on
page 314
“Enabling JavaScript in Your Browser” on page 314