Notice of non-liability:
PayPal, Inc. is providing the information i n this document t o you “AS-IS” with all faults. PayPal, Inc. makes no warranties of any kind (whether express,
implied or statutory) with respect to the information co ntained 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 f rom 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.
Digital Goods for Express Checkout streamlines the checkout process for buyers and keeps
buyers on your website.
“Introducing Digital Goods Payments” on page 9
Introducing Digital Goods Payments
Digital goods payments combine JavaScript with the Express Checkout API to streamline the
checkout process for buyers of digital goods.
Digital goods are items such as e-books, music files, and digital images distributed in
electronic format. The buyer can conveniently purchase digital goods during checkout with a
minimum of clicks without leaving your website or interrupting their online activities.
The following figure encapsulates digital goods payments:
PayPal for digital goods payments
To make a payment for a digital goods item, the buyer:
1. Clicks Pay With PayPal.
The button click triggers the call to the SetExpressCheckout API operation. PayPal
redirects the buyer to a lightbox overlaying your website.
2. Clicks Pay to accept the order.
The button click triggers JavaScript code that closes the lightbox.
Digital Goods Integration Guide - EC EditionJanuary 20129
Introducing Digital Goods for Express Checkout
1
Introducing Digital Goods Payments
3. Confirms the order on your page after the lightbox closes.
4. Resumes activity on your page.
Express Checkout Buttons
The button you place on your web page to initiate PayPal digital goods transactions is
available at the following URL:
NOTE: Do not host copies of the PayPal images locally on your servers. Outdated PayPal
images reduce buyer confidence in your site.
Digital Goods Payments In More Detail
To the buyer, the digital goods payment process appears to be built into your website. The
digital goods payment process occurs in a lightbox that temporarily overlays your website.
Your buyer’s digital goods payment experience depends upon two factors:
1. The value you set for the experience type variable on your web page
You determine how the digital goods flow appears to your buyers by setting (or not setting)
the experience type variable (expType) on your web page
(For details on setting expType, see “JavaScript Functions For Digital Goods Payments”
on page 28).
2. Whether the buyer is remembered from a previous transaction
Your buyers partially determine the digital goods flow by choosing whether to check the
“remember me” box on the login page. (Checking the box creates a “remember me cookie”
on the buyer’s machine that lets them skip the login page on subsequent visits.)
The following table describes the possible digital goods (DG) flows that the combination of
expType and “Remember Me Cookie” present to a buyer:
expType Remember Me CookieDG Flow Experience
instantNoThe login page opens in a mini-browser.
YesThe merchant review page opens in a lightbox, and a mask is
applied over the underlying web page.
miniNoThe login page opens in a mini-browser, and a mask is applied
YesThe merchant review page opens in a mini-browser, and a
mask is applied over the underlying web page.
popupNoThe login page opens in a mini-browser, and a mask is not
applied to the underlying web page.
YesThe merchant review page opens in a mini-browser, and a
mask is not applied to the underlying web page.
(not set)NoA launch page opens in a lightbox. From here the buyer can
log in (the flow then proceeds to the login page in a minibrowser) or sign up with PayPal, or pay as a guest.
YesDG opens the merchant review page in a lightbox, and a mask
is applied over the underlying web page.
NOTE: New DG Merchants: Set expTyp e to ‘instant’ for the best performance.
Existing DG Merchants: You can bypass the legacy flow’s lightbox launch page by
setting expType, or leave your web page unchanged to maintain the current behavior.
1
Digital Goods Flows
This section shows examples of different Digital Goods flows. The first example shows the
DG Instant flow (expType set to ‘instant’) for a new buyer (or a buyer who didn’t check
the “remember me” box on the login page). The second example shows the same DG Instant
flow for a returning buyer who checked the “remember me” box. The third example shows the
legacy flow (expType is unset) for a new buyer.
The buyer initiates all DG flows by clicking Pay with PayPal:
1. The expType variable is set to ‘instant’ and the buyer is new:
The DG flow opens the Log in to your PayPal account page in a mini-browser, with a
mask over the underlying page:
Digital Goods Integration Guide - EC EditionJanuary 201211
Introducing Digital Goods for Express Checkout
1
Introducing Digital Goods Payments
From this page, the buyer can log in (optionally checking the “remember me” box for
subsequent purchases if there is little risk of their account being misused), or cancel the
transaction.
IMPORTANT: Opting in to the remember me behavior does not guarantee that the buyer
will not be asked to provide log-in credentials.
Buyers without a PayPal account can sign up for one, or proceed as a guest and complete
their purchase with a credit card.
NOTE: Guest checkout provides only the visual benefits of a digital goods payment. It
does not reduce the payment steps.
After successfully logging in, the digital flow presents the You are about to pay page in a
mini-browser:
If the buyer chooses Cancel, PayPal redirects the buyer’s browser to the cancel URL
specified in the SetExpressCheckout API operation’s request message. If the buyer
chooses Pay, the Thank you for using PayPal page appears in the mini-browser:
Digital Goods Integration Guide - EC EditionJanuary 201213
Introducing Digital Goods for Express Checkout
1
Introducing Digital Goods Payments
When the buyer clicks Close, PayPal redirects the buyer’s browser to the return URL
specified in the SetExpressCheckout API operation’s request message.
2. The expType varible is set to ‘instant’ and the buyer checked the “remember me” box:
The digital goods flow skips the login screen and the flow proceeds directly to the payment
page in a lightbox:
The PayPal server calls your callback server to instantly update the PayPal pages based on
shipping options changes the buyer selects.
Parallel payments
Parameter fields describe the details of up to 10 payments. Digital goods supports passing a
value for one payment only.
Immediate Payment
Immediate Payment checks that you receive payment at the time the buyer commits to a
purchase (instant payment methods only).
Authorization and Capture API
SetCustomerBillingAgreement API
Giropay
Incentives
Several fields in the Recurring Payments API and in the Reference Transaction API are not
relevant for digital goods transactions and thus are not supported. Do not use the API fields in
the following lists for digital goods operations.
1
Unsupported Fields in the Recurring Payments and Reference Transaction Name/Value
Pair (NVP) APIs:
This chapter describes how to integrate Digital Goods for Express Checkout with your
website.
“Overview of Digital Goods Integration” on page 19
“Integrating Digital Goods Payments With Express Checkout” on page 22
Overview of Digital Goods Integration
There are two possible ways to integrate the digital goods flow with Express Checkout:
Merchants using PHP can use the PHP Wizard, located here: https://www.paypal-
labs.com/integrationwizard/.
Merchants using other platforms must take the manual approach to integration. Future
releases will feature integration wizards for other platforms.
In either event, when the integration is successfully completed, you will have added the digital
goods JavaScript to the page, set up code to invoke the digital goods flow, and specified URLs
for return and cancel pages.
The following figure summarizes the manual integration steps for the digital goods payments
flow:
Digital Goods Integration Guide - EC EditionJanuary 201219