Integration Guide

Table Of Contents
The PayPal Shopping Cart – Add to Cart and View Cart Buttons
Creating Advanced PayPal Shopping Cart Buttons on the PayPal Website
4
216 September 2008 Website Payments Standard Integration Guide
5. Add advanced variables to the HTML code of your payment button (optional).
If you are familiar with the HTML programming and the advanced HTML variables
supported by Website Payments Standard payment buttons, you can enter them here. Select
the checkbox, and then enter the variables in the text box below it.
Enter any advanced HTML variables in the following, name/value-pair format:
variableName=allowableValue
For example, if you want to handle purchases as orders rather than as final sales, use the
HTML variable paymentaction with the value order. If you were to include the
variable in HTML code that you write manually, you would use the standard HTML
format:
<input type="hidden" name="paymentaction" value="order">
Enter the variables in the text box using the shortened, name/value-pair format, instead:
paymentaction=order
Do not enclose values in quotes, even if value contain spaces. PayPal surrounds the value
from the equal sign (=) to the end of the line with quotes in the generated HTML code.
For more information, see Chapter 11, “HTML Form Basics for Website Payments
Standard.”
6. Do one of the following:
Click the Create Button button if you specified all the features for your button.
Follow the instructions for “Copying and Pasting the Add to Cart Code” on page 216.
Scroll to the top of the page and click the Step 1 bar if you want to adjust the basic
features of your button.
Follow the instructions for “Step 1 – Specifying Basic Features of Your Add to Cart
Button” on page 207, beginning with Step 6.
Scroll to the top of the page and click the Step 2 bar if you want to adjust information
that PayPal uses to track inventory levels or if you do not want to save your button in
your PayPal account.
Follow the instructions for “Step 2 – Tracking Inventory With Your Add to Cart Button”
on page 211.
Copying and Pasting the Add to Cart Code
After you click the Create Button button, PayPal displays the You are viewing your button
code page. The page contains tabs with Add to Cart code for specific situations:
z Website – Copy and paste the HTML button code on this tab onto the pages of your
website.
z Email – Copy and paste the URL email payment link code on this tab into email templates
and messages, or paste it onto webpages if your hosting provider does not allow you to
paste HTML code.
Regardless of saving your buttons in your PayPal account, you must copy and paste the code
that PayPal generates onto your own webpages and into email templates and messages.