User's Manual

Table Of Contents
Merchant User Manual and Integration Guide May, 2005 71
7
Adding PayPal to Your Third-
party Shopping Cart
Some Web developers may wish to integrate PayPal payment processing with their own third-
party shopping cart instead of the standard PayPal Shopping Cart. Please use the following
instructions and variables to allow your buyers to pay with PayPal when they are ready to
check out after adding all of their items to your third-party shopping cart.
There are now two ways to integrate your third-party shopping cart with the PayPal payment
flow. The first is to pass in the aggregate amount of the Cart payment, rather than of the
individual items. The second is to pass details of the items that have been selected to PayPal,
instead of an aggregated amount for the entire Cart.
For a complete list of variables, see “PayPal Shopping Cart HTML and Variables” on
page 137.
NOTE: Posting the necessary variables to PayPal as described in the following instructions
will probably require you to implement some scripting on your website.
Passing the Aggregate Shopping Cart Amount to PayPal
If you wish, you may aggregate your entire shopping cart and pass the total amount into
PayPal’s Buy Now code. In other words, you will need to post a single name for the entire cart
and the total price of the cart’s contents as though it were a purchase of a single item.
One drawback of this method is that your buyers will not be able to see the individual items
appearing in their carts. In addition, you cannot change our variable names, nor can you add
your own variable names.
Passing Individual Items to PayPal
If your third-party shopping cart can be configured to pass individual items to PayPal,
information about the items will be included in the buyer’s and seller’s History logs and
notifications. To include information about the items, you will post HTML form elements to a
new version of PayPal’s Shopping Cart flow. This process is much like the one described in
Passing Aggregate Shopping Cart Amount to PayPal, with the following exceptions:
1. Set the cmd variable to _cart.
2. Replace this required HTML line:
<input type="hidden" name="cmd" value="_xclick">
with
<input type="hidden" name="cmd" value="_cart">