Integrating Express Checkout Buttons and Logos
PayPal hosts the PayPal button and logo images that you use on your website. Using PayPal's Express Checkout buttons and logos is convenient and helps standardize the appearance of pages that use PayPal as a payment option.
- PayPal Button and Logo Images
- Dynamic Images
- Configuring the Dynamic Image
- Dynamic Image Command Reference
- Static PayPal Button and Mark Images
PayPal Button and Logo Images
To inform buyers that PayPal is accepted on your website, you must place PayPal button and logo images in your checkout flow. PayPal recommends that you use dynamic images.
PayPal requires that you use Check out with PayPal buttons and PayPal mark images hosted on secure PayPal servers. When the images are updated, the changes appear automatically in your application. Do not host copies of the PayPal images locally on your servers. Outdated PayPal buttons and images reduce buyer confidence in your site.
Express Checkout Image Flavors
The Check out with PayPal button and the PayPal mark image are available in two flavors:
- Dynamic image
- Static image
The dynamic images enable PayPal to change their appearance dynamically. If, for example, you have signed up to participate in a PayPal campaign, PayPal can change the appearance of the image dynamically for the duration of that campaign based on parameter information you append to the image URL.
The static images cannot be changed dynamically. To participate in a PayPal campaign, you would have to manually update the image code to change the image displayed and restore the default image when the campaign is over. The only way you can have image management taken care of for you is to replace static images in your implementation with dynamic images.
Express Checkout Images
The Check out with PayPal button is the image you place on your shopping cart page. The US version of the image looks like this.
To create an Express Checkout
button, see https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Merchant/merchant/ExpressCheckoutButtonCode-outside.
PayPal also provides buttons for other countries. To locate a page
for another country, replace the country abbreviation in the link
with another country abbreviation. For example, replace
United Kingdom, as follows: https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Merchant/merchant/ExpressCheckoutButtonCode-outside.
PayPal hosts images for the countries:
|Country||URL Change||Country||URL Change||Country||URL Change||Country||URL Change|
|Switzerland||ch||United Kingdom||uk||United States||us|
The PayPal mark is the image you place on your payment methods page. It looks like this:
To implement PayPal as a payment option, which is part of the Express Checkout experience, associate the PayPal mark image with your payment options. PayPal recommends using radio buttons for payment options:
To create a PayPal mark, see https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/general/OnlineLogoCenter-outside.
To use dynamic images, you must pass information to PayPal as parameters appended to the image URL. Your unique ID tells PayPal whether or not you are participating in events that require image changes. Other information you pass instructs PayPal on the types of images to return.
If, for example, you are participating in a PayPal campaign that you have signed up for with PayPal and you have passed the appropriate parameter information to PayPal, PayPal automatically updates the image to reflect the campaign information. When the campaign is over, PayPal restores the default image. You are not responsible for scheduling or making changes to your website application code before, during, or after the campaign. Because you set up the dynamic image, PayPal handles these activities for you.
If you require localized campaign images, you can have the localized button image display for each country in which you participate. Simply assign the correct code for the country to the locale parameter you append to the dynamic image URL. PayPal returns to the default button image associated with each locale when the campaign is not available.
Configuring the Dynamic Image
To set up the dynamic image, provide the name-value pair parameter information in the image URL. You can pass information in the image URL for each option.
- Set Up the Default Image
- Set Up Image for Dynamic Use
- Change the Locale
- Provide Incentive Eligibility Feedback to Buyer
- Choose the Image
Set Up the Default Image
The following URL points to the default Check out with PayPal image:
To make the image dynamic, you need only add parameters to this URL to specify the changes you want displayed.
To test in the Sandbox environment, send the image to the following Sandbox URL:
Set Up Image for Dynamic Use
set up the image URL for dynamic use, associate the URL with your
PayPal Secure Merchant Account ID, or
the Secure Merchant Account ID in your Profile or call
is an example call to
returns the value of
PAL and your country code
[successResponseFields] &PAL=SFJCXFDLNFR5U &LOCALE=en_US
- Append the
palparameter to the image URL, and set the parameter to the value of your encrypted PayPal merchant account number.
- You can optionally change the value of
LOCALE. See Change the Locale for details.
- Place the URL with parameter information at the appropriate
image locations in your web application.
palalerts PayPal to campaigns in which you are participating. PayPal obtains this information from your account and replaces the default image with the appropriate campaign image during the relevant campaign.
palvalue for a merchant account that is not yours, PayPal displays the image for that account. Be sure to pass the
palvalue for your account.
Change the Locale
specify the locale of the image, append the
set to the code for the appropriate country to the image URL. If
a country does not have a localized image or if you do not pass
locale value, the default US image displays.
This example displays the image for the Spanish locale:
If you are participating in a campaign across multiple countries, you can set the image locale for each country in which you participate. PayPal returns the default image associated with the locale when the campaign is over.
Provide Incentive Eligibility Feedback to Buyer
Pass the order total amount in the
so PayPal can determine if the buyer is eligible for an incentive.
Say, for example, that you are participating in a campaign in which
the buyer is eligible for a 20% discount when their order meets
a minimum of $50.00. You can pass that value to PayPal in the
as shown here:
When a buyer's order meets or exceeds $50.00, PayPal displays the incentive image informing the buyer of their eligibility for the discount. When a buyer's order is less than $50.00, PayPal displays the default image.
ordertotalis not passed, PayPal does not display the incentive image even if the buyer is eligible for the incentive.
Dynamic Image Command Reference
To set up the information that enables dynamic images, add parameters to the dynamic image URL.
Dynamic Image Parameters
(Optional) The encrypted PayPal account
number. When merchants sign up for a PayPal business account, PayPal
assigns them an account number. The
(Optional) The total cost of the
order to the buyer. If shipping and sales tax are known, include
them in this value. If not, this value should be the current subtotal of
the order. By default, PayPal does not display the incentive image
even if the buyer is eligible for the incentive.
Character length and limitations: Must not exceed $10,000.00 USD in any currency. Do not specify the currency symbol.You must include two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma(,).
(Optional) The five-character locale
code. See Locale Codes and Priorities. Any other values default to
The merchant can participate in one campaign per country.
(Optional) Indicates a dynamic image.
The values are:
Locale Codes and Priorities
country code is the two-letter code for the country. Language priority
is the language associated with the country code, where
the default priority.
Static PayPal Button and Mark Images
Using the static image code on the PayPal servers eliminates the need for you to maintain them yourself. PayPal recommends that you use dynamic images, an advanced feature, instead of static images.
You can use static images initially for testing and later switch to dynamic images. PayPal requires that you use the Check out with PayPal and the PayPal mark images hosted on secure PayPal servers. When the images are updated, the changes appear automatically in your application.
Do not host copies of the PayPal images locally on your servers. Outdated PayPal images reduces buyer confidence in your site.
Follow the links in this table to obtain HTML code that displays the PayPal-hosted images.