Integration Guide

Table Of Contents
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Sample HTML Code for View Cart Buttons
6
300 June 2012 PayPal Payments Standard Integration Guide
value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify the discount amounts that apply to the item. -->
<input type="hidden" name="discount_rate" value="0">
<input type="hidden" name="discount_rate2" value="100">
<input type="hidden" name="discount_num" value="1">
<!-- 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>
Sample HTML Code for View Cart Buttons
The sample HTML code in this section demonstrates various features of View Cart buttons:
“Sample HTML Code for a View Cart Button” on page 300
“Sample HTML Code for a View Cart Button That Opens the Shopping Cart in the
Merchant Window” on page 301
“Sample HTML Code for View Cart Buttons that Continue Shopping on the Current
Merchant Webpage” on page 302
Sample HTML Code for a View Cart Button
View Cart buttons contain no payment information, so you do not need to take on precautions
on securing them.
The value for the business variable must match a confirmed email address on file with your
PayPal account, and it must match the value that you used for the business variables on your
Add to Cart buttons.