Integration Guide

Table Of Contents
Website Payments Standard Integration Guide September 2008 7
Contents
Sample HTML Code for View Cart Buttons . . . . . . . . . . . . . . . . . . . . . . . . .238
Sample HTML Code for a View Cart Button . . . . . . . . . . . . . . . . . . . . . . .239
Sample HTML Code for a View Cart Button That Opens the Shopping Cart in the Merchant
Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
Sample HTML Code for View Cart Buttons that Continue Shopping on the Current
Merchant Webpage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
Chapter 5 Third-Party Shopping Carts – The Cart Upload Command 243
How A Third Party Shopping Cart Works . . . . . . . . . . . . . . . . . . . . . . . . . .243
What The Buyer Sees With Third Party Shopping Carts . . . . . . . . . . . . . . . .243
What Merchants See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
Integrating PayPal with Third Party Shopping Carts . . . . . . . . . . . . . . . . . . . . .249
Required Third Party Shopping Cart Variables . . . . . . . . . . . . . . . . . . . . .249
Passing Individual Item Details to PayPal . . . . . . . . . . . . . . . . . . . . . . . .249
Setting the Tax for the Entire Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
Setting the Shipping Charge for the Entire Cart . . . . . . . . . . . . . . . . . . . . .251
Setting the Weight for the Entire Cart . . . . . . . . . . . . . . . . . . . . . . . . . .251
Passing the Aggregate Shopping Cart Amount to PayPal. . . . . . . . . . . . . . . .251
Securing Your Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
Chapter 6 Securing Your Website Payments Standard Buttons . . . 253
Creating Protected Payment Buttons on the PayPal Website . . . . . . . . . . . . . . . .254
How Protected Payment Buttons Help Prevent Fraudulent Payments . . . . . . . . .254
Using the Button Creation Tool to Create a Protected Payment Button . . . . . . . . .254
Creating a Protected Payment Button with JavaScript Disabled . . . . . . . . . . . .255
Saving Payment Buttons in Your PayPal Account . . . . . . . . . . . . . . . . . . . . . .256
Reconciling Payments Manually Through Transaction History . . . . . . . . . . . . . . .257
Reconciling Payments Through Instant Payment Notification . . . . . . . . . . . . . . . .258
Protecting Payment Buttons by Using Encrypted Website Payments . . . . . . . . . . . .258
How Encrypted Website Payments Helps Prevent Fraudulent Payments . . . . . . . .258
Public Key Encryption Used by Encrypted Website Payments . . . . . . . . . . . . .259
Setting Up Certificates Before Using Encrypted Website Payments . . . . . . . . . .260
Using Encrypted Website Payments to Protect Your Payment Buttons . . . . . . . . .262
Blocking Unprotected and Non-encrypted Website Payments. . . . . . . . . . . . . . . .264