Notice of non-liability:
PayPal, Inc. is providing the information in this document to you “AS-IS” with all faults. PayPal, Inc. makes no warranties of any kind (whether express,
implied or statutory) with respect to the information contained herein. PayPal, Inc. assumes no liability for damages (whether direct or indirect), caused
by errors or omissions, or resulting from the use of this document or the information contained in this document or resulting from the application or use
of the product or service described herein. PayPal, Inc. reserves the right to make changes to any information herein without further notice.
Website Payments Standard Integration GuideSeptember 200811
Contents
12September 2008Website Payments Standard Integration Guide
Preface
P
About This Guide
The Website Payments Standard Integration Guide describes how to integrate your website
with PayPal by using HTML buttons and forms. Website Payments Standard lets you accept
payments for:
z Single-item purchases with Buy Now buttons – Sell from websites that offer single or
mutually exclusive products.
z Contribution payments with Donate buttons – Raise financial support for any cause.
z Recurring bills with Subscribe buttons – Collect membership dues, set up installment
plans, and offer other subscription services.
z Multiple-item purchases with Add to Cart and View Cart buttons – Sell from online
stores with catalogs and shopping carts.
The following table summarizes the contents of this guide.
TABLE P.1 Summary of the Contents of This Guide
FeatureDescriptionSee
Buy Now ButtonsAccept payments for single items at one time.
Donate ButtonsAccept payments for donation and contributions.
Subscribe ButtonsAccept recurring payments for membership dues,
installment plans, and other subscription services.
The PayPal Shopping
Cart
Third-Party Shopping
Carts
Button Protection and
Encrypted Website
Payments
Accept payments for multiple items at one time.
Develop a third-party shopping cart that is
compatible with PayPal and Website Payments
Standard.
Protect against fraudulent payments by protecting
the code in your payment buttons with the
encryption setting when you create buttons on the
PayPal website or with Encrypted Website
Payments when you write or generate payment
buttons yourself.
Chapter 1, “Single-Item
Payments – Buy Now
Buttons
Chapter 4, “The PayPal
Shopping Cart – Add to Cart
and View Cart Buttons
Chapter 5, “Third-Party
Shopping Carts – The Cart
Upload Command
Chapter 6, “Securing Your
Website Payments Standard
Buttons
”
”
”
”
”
”
Website Payments Standard Integration GuideSeptember 200813
Preface
P
About This Guide
ABLE P.1 Summary of the Contents of This Guide
T
FeatureDescriptionSee
Automatic Calculation
of Sales Tax
Automatic Calculation
of Shipping Charges
Custom Payment PagesBrand the PayPal checkout pages with your own
PayPal Account
Optional
Auto ReturnRedirect people to your website automatically after
Payer Contact
Telephone
Multi-User AccessCreate separate user names for your account with
Specify tax rates that PayPal uses to calculate taxes
automatically.
Specify shipping rates that PayPal uses to calculate
shipping charges automatically.
logo and colors.
Let people pay by credit card without having to
sign up for a PayPal account.
they pay you on PayPal.
Prompt people for their contact telephone numbers
when they pay you on Paypal.
different permission levels.
“Automatic Calculation of
Sales Tax” on page 285
“Automatic Calculation of
Shipping Charges (U.S.
Merchants Only)” on
page 290
– or –
“Automatic Calculation of
Shipping Charges (non-U.S.
Merchants Only)” on
page 304
“Co-Branding the PayPal
Checkout Pages” on page 267
“PayPal Account Optional”
on page 276
“Auto Return” on page 271
“Getting Contact Telephone
Numbers” on page 274
“Allowing Multiple Users to
Access Your PayPal Account”
on page 312
Authorization &
Capture
RefundsRefund entire payments or portions of them.
14September 2008Website Payments Standard Integration Guide
Authorize payments during checkout, and capture
payment amounts or portions of them later.
Chapter 8, “Using
Authorization & Capture
”
Chapter 9, “Issuing Refunds”
Intended Audience
This guide is for:
z Merchants and developers who want to understand:
– The checkout experiences that people go through when they make payments with
Website Payments Standard payment buttons
– How account profile settings affect the way that Website Payments Standard works
z Developers who want to learn how to implement Website Payments Standard
Revision History
The following table lists the revisions made to the Website Payments Standard Integration
Guide.
TABLE P.2 Revision History for This Guide
Preface
Intended Audience
P
Date PublishedDescription
September 2008Revised information on creating payment buttons on the PayPal website,
including saving buttons in your PayPal account and tracking inventory; see
button -specific chapters for details.
Added sample code for Add to Cart buttons that open the PayPal Shopping Cart
in the same window as the merchant website and how to use the shopping_url
variable to control which merchant page buyers return to when they click the
Continue Shopping button; see
Buttons” on page 228
June 2008Added chapter on Subscribe buttons; see
Subscribe Buttons
.
.” Added chapter on Third-Party Shopping Carts; see
“Sample HTML Code for Add to Cart
Chapter 3, “Recurring Payments –
Chapter 5, “Third-Party Shopping Carts – The Cart Upload Command.”
March 2008Changes to definition of authorization honor periods; see
Authorization Period” on page 321
January 2008Separate checkout experience and command for Donate buttons; see
“Contribution Payments – Donate Buttons
August 2007Shipping calculations with tiered rates in different destination regions; see
.”
.”
“Honor Period and
Chapter 2,
“Automatic Calculation of Shipping Charges (U.S. Merchants Only)” on
page 290
May 2007Added information on securing buttons; see
Website Payments Standard Buttons
.
Chapter 6, “Securing Your
.”
April 2007Added
October 2006Minor clarifications.
Website Payments Standard Integration GuideSeptember 200815
August 2006New PayPal Shopping Cart variable, shopping_url
The value _ext-enter of the cmd variable for FORM prepoulation is now no
longer necessary.
Clarification of values for the rm variable
"POST".
July 2006Added information on how to use PayPal Authorization & Capture with Website
Payments Standard, including how to capture multiple authorizations in batches
on the PayPal website; see
March 2006Miscellaneous minor corrections.
Expanded description of creating Encrypted Website Payments buttons.
Where to Go for More Information
– 0, 1, or 2; not the strings "GET" or
Chapter 8, “Using Authorization & Capture.”
z Merchant Gift Certificates Guide
z Order Management Integration Guide
z Sandbox User Guide
z Password Management Installation Guide
Documentation Feedback
Help us improve this guide by sending feedback to:
documentationfeedback@paypal.com
16September 2008Website Payments Standard Integration Guide
1
Single-Item Payments – Buy Now
Buttons
Use Buy Now buttons to accept single-item purchase payments. A Buy Now button can sell
one or more units of a single item. Make additional Buy Now buttons for additional items that
you want to sell.
You can create Buy Now buttons that you add to your website by using a tool on the PayPal
website, or you can write the HTML code for Buy Now buttons manually. You can create
buttons with limited functionality before you create your PayPal account or with JavaScript
disabled in your browser.
Read the following topics to learn more about Buy Now buttons:
z “Getting Started With Buy Now Buttons” on page 18
z “The Checkout Experience With Buy Now Buttons” on page 25
z “Managing Buy Now Transactions” on page 34
z “Advanced Features of Buy Now Buttons” on page 36
z “Creating Advanced Buy Now Buttons on the PayPal Website” on page 37
z “Sample HTML Code for Buy Now Buttons” on page 61
z “Sample URL Code for a Buy Now Email Payment Link” on page 67
Website Payments Standard Integration GuideSeptember 200817
Single-Item Payments – Buy Now Buttons
1
Getting Started With Buy Now Buttons
Getting Started With Buy Now Buttons
The easiest way to add a Buy Now button to your website is by using the button creation tool
on the PayPal website. As soon as you add the button, you can begin accepting payments on
your website.
Follow one of these procedures to get started creating your own Buy Now buttons:
z “Using the Button Creation Tool for a Basic Buy Now Button” on page 18
z “Creating Basic Buy Now Buttons With JavaScript Disabled” on page 19
z “Creating Buy Now Buttons Before You Create Your PayPal Account” on page 22
N OTE: For more detailed instructions, see “Creating Advanced Buy Now Buttons on the
PayPal Website” on page 37.
Using the Button Creation Tool for a Basic Buy Now Button
To use the button creation tool for a basic Buy Now button:
1. Log in to your PayPal Premier or Business account at
The My Account Overview page opens.
2. Click the Profile subtab.
The Profile Summary page opens.
3. Under the Selling Preferences heading, click the Create new button link.
The Create PayPal payment button page opens.
4. In the Accept payments for dropdown menu, select “Products” or “Services”.
https://www.paypal.com.
5. Select the No; create a “Buy Now” button radio button.
6. Enter the payment details of your item.
– Item name – Enter the name of the item or service that you wish to sell.
– Price – Enter the price of your item.
18September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
Getting Started With Buy Now Buttons
7. Scroll to the bottom of the page, and click the Create Button button.
The You are viewing your button code page opens.
8. Click the Select Code button on the Websites tab to select all of the generated HTML
code.
9. Copy the text that you selected to the clipboard, by:
– pressing Ctrl+C.
– or –
– right-clicking your mouse, and selecting Copy.
10.In your web editing tool, open the webpage where you want the button to be seen.
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.
11. Paste the text that you copied from the clipboard onto your webpage where you want the
button to appear, by:
1
– pressing Ctrl+V.
– or –
– right-clicking your mouse, and selecting Paste.
Creating Basic Buy Now Buttons With JavaScript Disabled
The button creation tool for Buy Now buttons, described above, requires JavaScript. If
JavaScript is disabled in your browser, PayPal automatically offers you an alternative button
creation tool that does not require JavaScript.
Read these topics to learn more about creating Buy Now buttons with JavaScript disabled:
z “Limitations When Creating Payment Buttons With JavaScript Disabled” on page 19
z “Creating a Basic Buy Now Button With JavaScript Disabled” on page 20
z “Enabling JavaScript in Your Browser” on page 21
Limitations When Creating Payment Buttons With JavaScript Disabled
The alternative tool that works with JavaScript disabled lets you create Buy Now buttons on
the PayPal website. However, the following features are not supported by the alternative tool:
z Saving your buttons in your PayPal account
z Tracking inventory
z Product options with separate pricing
z Language choices for button images
z Creating payment buttons before you create your PayPal account
To use any of the above features when creating payment buttons on the PayPal website, you
must enable JavaScript in your browser.
Website Payments Standard Integration GuideSeptember 200819
Single-Item Payments – Buy Now Buttons
1
Getting Started With Buy Now Buttons
For more information, see “Enabling JavaScript in Your Browser” on page 21.
Creating a Basic Buy Now Button With JavaScript Disabled
To create a basic Buy Now button for your website with JavaScript disabled:
1. Log in to your PayPal Premier or Business account at
https://www.paypal.com.
The My Account Overview page opens.
2. Click the Edit Profile link.
The Profile Summary page opens.
3. Under the Selling Preferences heading, click the Create New Button link.
The Create PayPal payment button page opens.
4. Click the Buy Now link.
The Buy Now buttons page opens.
5. Enter the details of your item.
– Item name/service – Enter the name of the item or service that you wish to sell.
– Price – (optional) Enter a fixed price for your item. If you leave the field blank, buyers
“name their own price” after they click the Buy Now button.
IMPORTANT: PayPal recommends that you enter a price so that you collect an
appropriate amount for the item.
6. Scroll to the bottom of the page, and click the Create Button Now button.
The Add a Buy Now button to your website page displays the generated code.
7. Click the HTML code for Websites text box to select all of the generated HTML code.
8. Copy the text that you selected to the clipboard, by:
– pressing Ctrl+C.
– or –
– right-clicking your mouse, and selecting Copy.
9. In your web editing tool, open the webpage where you want the button to be seen.
20September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
Getting Started With Buy Now Buttons
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.
10.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.
Enabling JavaScript in Your Browser
PayPal recommends that you keep JavaScript enabled at all times. Many features of the PayPal
website require that JavaScript be enabled in your browser.
Read one of the following topics to learn how to enable JavaScript in your browser.
z “Enabling JavaScript in Internet Explorer” on page 21
z “Enabling JavaScript in FireFox” on page 22
After you enable JavaScript in your browser, you can create a basic Buy Now button by
following the instructions for “Using the Button Creation Tool for a Basic Buy Now Button”
on page 18
1
Enabling JavaScript in Internet Explorer. To enable JavaScript in Internet Explorer:
1. Select Tools > Internet Options… from the menu bar.
The Internet Options dialog box opens.
2. Click the Security tab.
3. Select the Trusted sites icon in the box of Web content zones.
4. Click the Custom level… button.
The Security Settings dialog box opens.
Website Payments Standard Integration GuideSeptember 200821
Single-Item Payments – Buy Now Buttons
1
Getting Started With Buy Now Buttons
5. Scroll down to the Scripting section, and then select the Enable radio button as the option
for active scripting.
6. Click the OK button to dismiss the Security Settings dialog box.
A War ning message box asks if you are sure you want to change the security settings.
7. Click the Ye s button to dismiss the message box.
8. Click the OK button to dismiss the Internet Options dialog box.
Enabling JavaScript in FireFox. To enable JavaScript in Firefox.
1. Select Tools > Options… from the menu bar.
The Options dialog box opens.
2. Select the Content icon at the top of the dialog box.
3. Select the Enable JavaScript checkbox.
4. Click the OK button.
Creating Buy Now Buttons Before You Create Your PayPal Account
You can create basic Buy Now buttons, add them to your website, and begin accepting
payments before you sign up for your PayPal account. Read the following topics to learn more
about creating Buy Now buttons before you create your PayPal account.
22September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
Getting Started With Buy Now Buttons
z “Limitations of Buy Now Buttons Created Without a PayPal Account” on page 23
z “Unclaimed Payments From Buttons Created Without a PayPal Account” on page 23
z “Creating a Basic Buy Now Button Without a PayPal Account” on page 24
Limitations of Buy Now Buttons Created Without a PayPal Account
Consider the following limitations of payment buttons that you create and add to your website
before you sign up for your PayPal account.
z You cannot claim the payments that people authorize during checkout. PayPal collects and
holds the payments as unclaimed until you sign up for your PayPal account.
z Buyers must have a PayPal account to pay you. Any ability to pay by credit card is
disabled.
z PayPal limits the features that you can specify with the button creation tool, such as:
– Saving your buttons in your PayPal account
– Tracking inventory
N OTE: You cannot create payment buttons without a PayPal account if Javascript is disabled
in your browser.
1
Unclaimed Payments From Buttons Created Without a PayPal Account
For buttons that you create without a PayPal account, payments that buyers authorize are held
as unclaimed by PayPal until you sign up. PayPal holds your unclaimed payments under the
email address that you specify when you create the buttons. Make sure to use the same email
address when you sign up for your account. Otherwise PayPal cannot transfer your unclaimed
payments to your PayPal account balance.
In their PayPal accounts, buyers see unclaimed payments that they made to you from Buy
Now buttons that you created without a PayPal account. Such unclaimed payments are
displayed in their recent account activity and in their transaction history. Until you finish
signing up for your PayPal account, buyers can cancel your unclaimed payments and recover
their funds.
Website Payments Standard Integration GuideSeptember 200823
Single-Item Payments – Buy Now Buttons
1
Getting Started With Buy Now Buttons
FIGURE 1.1 Unclaimed Payments From Buttons Created Without a PayPal Account
Creating a Basic Buy Now Button Without a PayPal Account
To create a basic Buy Now button without a PayPal account:
1. Visit the PayPal website at
https://www.paypal.com.
2. Click the Business tab.
3. Under the Need to accept credit cards? heading, click the On your website link.
The Choose a payment solution page opens.
4. Under the Website Payments Standard heading, click the Learn more link.
The PayPal Website Payments Standard: Overview page opens.
5. Under the Sell single items heading, click the Create payment button link.
The Create PayPal payment button page opens.
6. In the Accept payments for dropdown menu, select “Products” or “Services”.
7. Select the No; create a “Buy Now” button radio button.
8. Enter the payment details of your item.
– Item name – Enter the name of the item or service that you wish to sell.
– Price – Enter the price of your item.
– Email address to receive payments– Enter the email address that you will use when you
sign up for your PayPal account.
9. Click the Create Button button.
The PayPal account required for this button type message box appears.
24September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
The Checkout Experience With Buy Now Buttons
10.Click the close icon in the upper right corner of the message box to proceed.
The You’ve created your button page opens.
11. Click the Select Code button on the Websites tab to select all of the generated HTML
code.
12.Copy the text that you selected to the clipboard, by:
1
– pressing Ctrl+C.
– or –
– right-clicking your mouse, and selecting Copy.
13.In your web editing tool, open the webpage where you want the button to be seen.
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.
14.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.
The Checkout Experience With Buy Now Buttons
This section demonstrates the PayPal checkout experience for people who click Buy Now
buttons on your website. The following diagram illustrates the steps.
Website Payments Standard Integration GuideSeptember 200825
Single-Item Payments – Buy Now Buttons
1
The Checkout Experience With Buy Now Buttons
FIGURE 1.2 The Checkout Experience with Buy Now Buttons
Read these topics to better understand the checkout experience with Buy Now buttons:
z “Begin – Buyers are Ready to Purchase Your Item on Your Website” on page 26
z “1 – Buyers Enter Their Billing Information or They Log In to PayPal” on page 27
z “2 – Buyers Confirm Their Transaction Details Before Paying” on page 29
z “3 – Buyers View and Print Their PayPal Payment Confirmations” on page 30
z “End – Buyers Receive Payment Authorization Notices by Email” on page 31
z “Enhancing the Checkout Experience With Buy Now Buttons” on page 32
Begin – Buyers are Ready to Purchase Your Item on Your Website
The basic checkout experience with Buy Now begins when someone on your website is ready
to purchase your item.
26September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
The Checkout Experience With Buy Now Buttons
FIGURE 1.3 Buyers Begin on Your Website When They Are Ready To Buy Your Item
1
In this example, Steve begins on Herschel’s Hot Sauce website and decides to try a bottle. He
clicks the Buy Now button for a single 12 oz. bottle to check out.
1 – Buyers Enter Their Billing Information or They Log In to PayPal
PayPal displays a billing information/log-in page, which lets buyers enter their credit card
information or log in to PayPal to pay.
Website Payments Standard Integration GuideSeptember 200827
Single-Item Payments – Buy Now Buttons
1
The Checkout Experience With Buy Now Buttons
FIGURE 1.4 Buyers Enter Their Billinng information or Log In to PayPal
For Buy Now buttons, the PayPal billing information/log-in page shows transaction details
near the top, such as item name and transaction subtotal.
If buyers are satisfied with the details, they do one of the following to select a payment
method:
z To pay with a credit card – Buyers enter their billing information. They also enter their
contact information – email address and home phone number– so that PayPal can send
them their PayPal transaction receipts and can contact them if necessary to complete the
transaction. Then, they click the Review Order and Continue button.
z To pay with a PayPal account – Buyers enter their PayPal credentials and click the Log in
button.
28September 2008Website Payments Standard Integration Guide
Single-Item Payments – Buy Now Buttons
The Checkout Experience With Buy Now Buttons
In this case, Steve is satisfied with the total transaction amount of $5.95 USD. He doesn’t have
a PayPal account. Instead, he enters his billing and contact information, and then he clicks the
Review Order and Continue button.
2 – Buyers Confirm Their Transaction Details Before Paying
PayPal displays a transaction confirmation page to let buyers confirm the details before they
complete their transactions and authorize their payments.
FIGURE 1.5 Buyers Confirm Their Payment Details Before Paying
1
In this case, Steve reviews the transaction details and clicks the Pay $5.95 Now button to
complete the transaction and make his payment.
Website Payments Standard Integration GuideSeptember 200829
Single-Item Payments – Buy Now Buttons
1
The Checkout Experience With Buy Now Buttons
3 – Buyers View and Print Their PayPal Payment Confirmations
PayPal displays a payment confirmation page after buyers pay to let them know that they have
completed their transactions and authorized their payments successfully.
FIGURE 1.6 Buyers View Their Payment Confirmations
From the payment confirmation page, buyers can:
z View the PayPal Receipt ID – the transaction ID – to reconcile their payments.
z Click the View Printable Receipt link to print receipts for their records.
30September 2008Website Payments Standard Integration Guide
Loading...
+ 354 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.