Customize Pay Later messaging
DocsCurrentLast updated: December 18th 2023, @ 12:37:08 pm
Learn about the customization options you can use to modify the style and layout for your Pay Later messaging.
Tip: Explore these customization options and get custom code samples with the interactive messaging tool. PayPal account required.
data-pp-amount attribute in each Pay Later message to render more specific text that is tailored to the product's price or total amount in a payer's shopping cart. Without an amount, the SDK uses a more generic message.
The value for the
data-pp-amount attribute depends on where the Pay Later message is used:
|Product detail and product list pages
|Cart or checkout pages
|Total cart value
1<div2 data-pp-message3 data-pp-placement="product"4 data-pp-amount="120.00"5>< /div>
Customize page type
data-pp-placement attribute to identify the type of page where a Pay Later message appears. This data is processed and displayed on the analytics dashboard in your merchant account. Using this information, you can view Pay Later message performance across different page types on your website.
Note: The page type attribute is only for your analytics dashboard and doesn't affect the rendered Pay Later message.
data-pp-placement attribute accepts the following values:
For more information about the
data-pp-placement attribute, see placement.
1<div2 data-pp-message3 data-pp-placement="product"4>< /div>
The HTML attribute
data-pp-style-layout determines the message's layout. You can configure messages for different layouts and styles using optional HTML attributes. If you omit this attribute, the SDK defaults to
The message layout determines the available style options. The two layout options are:
- Text-based messages:
- Flexible display banners:
The following examples use these 2 layouts and other attributes to show Pay Later offers next to the product, at checkout, and on the home page of a site:
- Home page
Text-based messages with the product
Display messaging next to the product to provide specific and messages related to the product.
1<div2 data-pp-message3 data-pp-placement="product"4 data-pp-amount="251.00"5 data-pp-style-layout="text"6></div>
The available styling options depends on the type of messages you integrate.
For text-based messages, you can configure the following attributes:
- Logo type
- Logo position
- Text color
- Text size
- Text align
For flexible display banners, you can configure the following attributes:
For more information about the available styling options, see the Pay Later messaging reference guide