Set Paypal As A Secondary Checkout For Your Store



Important: PayPal supports these Checkout integrations:

Set Paypal As A Secondary Checkout For Your Store
  • Smart Payment Buttons, which use the PayPal JavaScript SDK. Valid from February 2019 for new integrations.
  • Checkout with checkout.js. Valid before February 2019. Customers who use checkout.js can access reference and support material in this Checkout guide. However, PayPal does not update checkout.js with new features and enhancements.

PayPal Checkout offers several style options to customize the appearance and behavior of your smart payment button. You can also use options to display multiple funding sources to the buyer, when appropriate.

These topics describe how to customize your checkout button:

Customization example

Go to your store admin page, click Settings and then click on the Payments section. By default, we define your PayPal account email with the default store email. If you already have another PayPal account, you only need to change this email. If you do not have a PayPal account, you can keep the email you used to create your store. Set PayPal as a Secondary Checkout For Your Store Now, in just a few quick steps, your store can accept both credit cards and PayPal. With PayPal as a secondary checkout your store can provide new payment combinations between credit card gateways (Stripe or Authorize.net) and PayPal. WordPress PayPal plugin allows you to easily create PayPal Buy Now, Add to Cart, Donation or Subscription type buttons. It generates dynamic buttons using shortcodes that enable PayPal checkout on your WordPress site. Your customers will be able to pay for your products using PayPal or Credit Card.

This example shows customizations for the PayPal button's locale and style:

To customize the button, use these parameters:

OptionValueTypeDescription
localeSupported localesStringOPTIONAL
The locale code of the country and language to display on the button.
Default: en_US
styleButton stylesObjectOPTIONAL
Style options for the button, including color, shape, size, and label.

Supported locales

To specify the button language, set locale to a supported locale.

For example:

Set Paypal As A Secondary Checkout For Your Store Manager

  • locale: 'en_US' displays PayPal Checkout
  • locale: 'de_DE' displays PayPal Zur Kasse

Button styles

To define the color, shape, size, and label of the button, use the button style parameters. These guidelines recommend certain styles.

Set paypal as a secondary checkout for your store onlineSet

Color

Set Paypal As A Secondary Checkout For Your Store

Set the style.color option to one of these values:

ValueDescriptionButton
goldRecommended
People around the world know us for the color gold and research confirms it. Extensive testing determined just the right shade and shape that help increase conversion. Use it on your website to leverage PayPal’s recognition and preference.
blueFirst alternative
If gold does not work for your site, try the PayPal blue button. Research shows that people know it is our brand color, which provides a halo of trust and security to your experience.
silver
white
Second alternatives
If gold or blue does not work for your site design or aesthetic, try the silver or white buttons. Because these colors are a bit recessive and less capable of drawing people’s attention, we recommend these button colors as a second alternative.

blackThird alternative
If your website demands a monochromatic button, try the black button. Because black is a common website color and less capable of drawing people's attention, we recommend this button as a third alternative.

Shape

Set the style.shape option to one of these values:

ValueDescriptionButton
pillRecommended
Whenever possible, use the pill-shaped button. Its unique and powerful shape signifies PayPal in people’s minds.
rectUse the rectangular button as an alternative for media such as mobile where pill-shaped buttons might pose design challenges.

Size

Set the style.size option to one of these values:

ValueDimensionsDescriptionButton
small150 pixels by 25 pixelsUse to match the size of other small buttons on the page.
medium250 pixels by 35 pixelsUse to match the size of other medium buttons on the page.
large350 pixels by 40 pixelsUse to match the size of other large buttons on the page.
responsiveDynamicRecommended
Matches the width of the container element, with the height decided dynamically based on width. Minimum width is 100px, maximum width is 500px.

Set the style.height option to one of these values:

ValueDimensionsDescriptionButton
small25 to 55 pixelsUse to match the height of other small buttons on the page.
medium35 to 55 pixelsUse to match the height of other medium buttons on the page.
large30 to 55 pixelsUse to match the height of other large buttons on the page.

About responsive buttons

If you set style.size to 'responsive', the button matches the width of the container element, and auto-calculates an appropriate height based on the width.

This example creates a button that is 200 pixels wide:

This example creates a button that is 50 percent of the width of the parent element:

Note: The minimum width of the button for this example is 100 pixels.

This example code shows a responsive button with a media query. The button displays:

  • 100 percent on mobile
  • 250 pixels wide on a desktop

Label

Set Paypal As A Secondary Checkout For Your Store

Set the style.label option to one of these values:

Set Paypal As A Secondary Checkout For Your Store Online

ValueDescriptionButton
checkoutDisplays the PayPal Checkout button.
Default: checkout
creditDisplays the PayPal Credit button and initializes the credit flow. Cannot be used with any custom color option.

(UK merchants) Credit is a regulated activity in the UK. Before integrating a PayPal Credit button, you must be authorized to act as a credit broker and have a credit agreement with PayPal. For more information, contact business customer support through paypal.com or by calling 0800 358 7929.

payDisplays the Pay With PayPal button and initializes the checkout flow.
buynowDisplays the Buy Now button and initializes the checkout flow. The default Buy Now button is unbranded. To include PayPal branding, set branding: true.
paypalDisplays the generic PayPal button and initializes the checkout flow. This button contains only the PayPal brand logo.
installmentDisplays the PayPal Installment button and offers a specified number of payments during a payment installment period.
Note: The installment feature is available only in these locales: en_MX, es_MX, en_BR, pt_BR
Set style.installmentperiod to set the number of payments during the installment period:
  • en_BR, pt_BR: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
  • en_MX, es_MX: 3, 6, 9, 12

Tagline

Set the style.tagline to false to disable the tagline text:

ValueDescriptionButton
trueDisplay tagline text
Default.
falseDisable tagline text.

Multiple button layout

By default, PayPal shows a single button. However, if additional funding sources are available to the buyer through PayPal, such as Venmo, then multiple buttons are displayed in the space provided. The style.layout option determines if the buttons are stacked horizontally (side-by-side) or vertically (top-to-bottom).

Layout

Set the style.layout option to determine the button layout when multiple buttons are available:

ValueDescriptionLayout
verticalDefault. Buttons are stacked vertically with a maximum of four buttons. Recommended when:
  • Presenting a dynamic list of payment options on checkout and shopping cart pages.
  • Leveraging Checkout as a full stack payments platform.
Mobile
Venmo is available on mobile in U.S. markets only. PayPal Commerce Platform for Marketplaces and Platforms does not support Venmo.Web
horizontalButtons are stacked horizontally with a maximum of two buttons. Recommended when:
  • Placing buttons on a product page, next to the product.
  • Space on the page is limited.
  • Alternative payment options are already provided.
Mobile
Venmo is available on mobile in U.S. markets only. PayPal Commerce Platform for Marketplaces and Platforms does not support Venmo.Web

Funding methods

When multiple funding sources are available to the buyer, PayPal automatically determines which additional buttons are appropriate to display. However, you can choose to opt in or out of displaying specific funding sources in either the horizontal or vertical layout.

Set the funding option to one of these values:

ValueDescription
allowedDisplays the specified funding methods, if the buyer is eligible.
disallowedHides the specified funding methods.

Then, specify one or more of these funding sources.

The Default column shows the default settings for each payment method type:

ValueDescriptionDefault
paypal.FUNDING.CREDITEnable buyers to pay with PayPal Credit.
Note:paypal.FUNDING.CREDIT should be set to disallowed for merchants that fall into these categories:
  • Non-USD currency
  • Real Money Gaming
  • Existing PayPal Credit button integration
The default for U.S. buyers.
paypal.FUNDING.CARDAllow buyers to pay with their credit or debit card (Visa, Mastercard, American Express, Discover, and so on).The default for all buyers.
paypal.FUNDING.VENMOAllow buyers to pay with Venmo.The default for U.S. buyers.
paypal.FUNDING.ELVAllow German buyers to pay with their bank account using Elektronisches Lastschriftverfahren.The default for DE (German) buyers.

This example opts in to PayPal Credit:

Displays the PayPal Checkout and PayPal Credit buttons:

This example opts out of displaying the PayPal Credit button:

Note: When you add a funding source to funding.allowed, the funding source appears to eligible buyers. For example, if you set the following value, the credit button is shown only to buyers in countries where PayPal Credit is offered:

Funding icons

When using the horizontal layout, you can set style.fundingicons to display or hide funding instrument icons beneath the payment button.

Set the style.fundingicons option to one of these values:

ValueDescriptionIcons
trueDisplays funding instrument icons. Not valid for the credit button.
falseHides funding instrument icons.

Interactive code demo

To create and test your PayPal button, use the interactive code demo.

You can edit the code in the demo to try out different button styles and optional button features.

Set Paypal As A Secondary Checkout For Your Store Card

See also

Set Paypal As A Secondary Checkout For Your Store Bought

  • Advanced checkout.js docs in the PayPal Checkout GitHub repository