Note: Pay Later messaging requires a PayPal Checkout integration. To integrate PayPal Checkout, see our PayPal Checkout documentation or video tutorial.
1. Enable Pay Later messaging on your website
Add the PayPal JavaScript SDK to your website to enable Pay Later messaging. Copy the following code and paste it in the head tag of your website. Replace CLIENT_ID with your sandbox or production client ID.Note: If you’ve already added the PayPal JavaScript SDK to your website, add‘messages'
tocomponents
insrc
, as shown in the following example.
2. Customize and preview Pay Later messaging
Decide where you want dynamic messaging to appear and how you want it to look. The places that you choose for displaying this option to users determines what options you have when you display the image. For more information, select one of the options from the following list. The following topics provide some basic examples of the code to use. For more information about what you can with the messaging on these pages, see the Pay Later reference page.Product page
For messages on a product page, you can:- Specify a logo type to use.
- Choose text and logo color formats for the message.
- Choose a text size for the message.
data-pp-amount
value.
Cart
For messages on a cart page, you can:- Specify a logo type to use.
- Choose text and logo color formats for the message.
- Choose a text size for the message.
data-pp-amount
value.
Checkout
For messages on a checkout page, you can:- Specify a logo type to use.
- Choose text and logo color formats for the message.
- Choose a text size for the message.
data-pp-amount
value.
Home page
For banners on a home page, you can:- Specify a banner color theme.
- Choose a size for the banner, either
8x1
or20x1
.
data-pp-amount
value.
Category page
For banners on a category page, you can:- Specify a banner color theme.
- Choose a size for the banner, either
8x1
or20x1
.
data-pp-amount
value.
3. Test and go live
Save your website and publish it to start testing your Pay Later messaging. Confirm that the messages appear everywhere that you expect it to appear and that it looks and behaves as intended. When you’ve tested everything, you’re ready to go live.- Change your sandbox
CLIENT_ID
to a productionCLIENT_ID
in the PayPal JavaScript SDK and in your HTML. - If you created or updated pages on a website, move that code from the test environment to the live environment.