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
6
282 June 2012 PayPal Payments Standard Integration Guide
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.
Copying and Pasting the HTML Code for the Add to Cart Button
The Website tab on the You are viewing your button code page contains the generated
HTML code for your Add to Cart payment button.
If in “Step 2 – Tracking Inventory With Your Add to Cart Button” on page 275 you specified
that you do not want to save your button in your Paypal account, PayPal protects the generated
HTML button code with encryption. Protected HTML code helps secure your buttons against
malicious tampering and fraudulent payments.
You can the expose the code of your payment button by clicking the Remove code protection
link at the upper right of text box. For example, you might remove protection so that you can
edit the code later to change the item price. If you remove code protection, you must use other
methods that PayPal recommends to secure your payment button. Click the Protect code link
to restore the button protection that you removed.
IMPORTANT: Merchants with significant payment volume are required to take precautions
on securing PayPal Payments Standard buttons.
For more information, see “Securing Your PayPal Payments Standard
Buttons” on page 337.”
To copy and paste the HTML code for your Add to Cart payment button:
1. Click the Select Code button on the Websites tab to select all of the generated HTML
code.
2. Copy the text that you selected to the clipboard, by:
Pressing Ctrl+C.
– or –
Right-clicking your mouse, and selecting Copy.
3. In your web editing tool, open the webpage where you want the button.
IMPORTANT: Be sure that your tool is ready for you to paste HTML code, such as by
switching to an HTML view from a design view of your webpage.
4. Paste the text that you copied from the clipboard onto your webpage where you want the
button to appear, by:
Pressing Ctrl+V.
– or –
Right-clicking your mouse, and selecting Paste.
Copying and Pasting the Code for the Add to Cart Email Payment Link
The Email tab on the You are viewing your button code page contains the generated URL
code for your Add to Cart email payment link.