Integration Guide

Table Of Contents
PayPal Payments Standard Integration Guide June 2012 9
Contents
Pricing Items in Multiple Currencies . . . . . . . . . . . . . . . . . . . . . . . . . . .270
Working with View Cart Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271
Generating Code for Payment Buttons and Email Payment Links . . . . . . . . . . .271
Protecting HTML Code for Payment Buttons . . . . . . . . . . . . . . . . . . . . . .271
Step 1 – Specifying Basic Features of Your Add to Cart Button . . . . . . . . . . . .271
Step 2 – Tracking Inventory With Your Add to Cart Button . . . . . . . . . . . . . . .275
Step 3 – Adding Advanced Features to Your Add to Cart Button . . . . . . . . . . . .279
Copying and Pasting the Add to Cart Code . . . . . . . . . . . . . . . . . . . . . . .281
Using the Button Creation Tool for a View Cart Button . . . . . . . . . . . . . . . . .283
Avoiding Problems With Pasted HTML Code . . . . . . . . . . . . . . . . . . . . . .285
Sample HTML Code for Add to Cart Buttons . . . . . . . . . . . . . . . . . . . . . . . .285
Sample HTML Code for a Basic Add to Cart Button. . . . . . . . . . . . . . . . . . .285
Sample HTML Code for Add to Cart Buttons With Product Options. . . . . . . . . . .286
Sample HTML Code for Add to Cart Buttons that Open the Shopping Cart in the Merchant
Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .290
Sample HTML Code for Add to Cart Buttons that Continue Shopping on the Current
Merchant Webpage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293
Sample HTML Code for Add to Cart Buttons with Discounts . . . . . . . . . . . . . .296
Sample HTML Code for View Cart Buttons . . . . . . . . . . . . . . . . . . . . . . . . .300
Sample HTML Code for a View Cart Button . . . . . . . . . . . . . . . . . . . . . . .300
Sample HTML Code for a View Cart Button That Opens the Shopping Cart in the Merchant
Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301
Sample HTML Code for View Cart Buttons that Continue Shopping on the Current
Merchant Webpage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302
Creating PayPal Shopping Cart Buttons with JavaScript Disabled . . . . . . . . . . . . .303
Getting Started with Add to Cart Buttons With JavaScript Disabled . . . . . . . . . . .304
Getting Started with View Cart Buttons With JavaScript Disabled. . . . . . . . . . . .305
Creating Advanced Shopping Cart Buttons With JavaScript Disabled . . . . . . . . .306
Limitations When Creating Shopping Cart Buttons With JavaScript Disabled. . . . . .314
Enabling JavaScript in Your Browser . . . . . . . . . . . . . . . . . . . . . . . . . .314
Chapter 7 Third-Party Shopping Carts – The Cart Upload Command 317
The Checkout Experience With the Cart Upload Command . . . . . . . . . . . . . . . .317
What Buyers See With Third-Party Shopping Carts . . . . . . . . . . . . . . . . . .317
Implementing the Cart Upload Command . . . . . . . . . . . . . . . . . . . . . . . . . .322
Required Third-Party Shopping Cart Variables . . . . . . . . . . . . . . . . . . . . .322
Passing Individual Item Details to PayPal . . . . . . . . . . . . . . . . . . . . . . . .323
Setting the Tax for the Entire Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . .325
Setting the Weight for the Entire Cart . . . . . . . . . . . . . . . . . . . . . . . . . .325
Setting Discounts for the Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .325