On this page
No Headings
Last updated: June 26, 2026
Integrate messaging directly with your buttons to promote Pay Later offers and other PayPal value propositions to your customers. Adding messaging can help improve conversion and attract new customers.
Note: Messaging is currently only supported for US merchants and US customers. Merchants must be eligible for Pay Later to display Pay Later offers with buttons. Other PayPal value propositions will still show, if ineligible for Pay Later.
This feature modifies an existing checkout integration and uses the following:
You can use Postman to explore and test PayPal APIs. Learn more in our Postman guide.
Include your messaging options to the buttons configuration object. Learn more about the full list of available options by reviewing the JavaScript SDK reference page. To display the strongest message to the customer, use message.amount with the current total based on the product or cart.
Note: The message.amount option functions independently from the captured order total and has no impact on it.
const buttons = paypal.Buttons({
message: {
amount: 100, // Update to your cart or product total amount
align: 'center',
color: 'black',
}
});
buttons.render('#paypal-button-container');The message content adapts to the buttons that are displayed:
| Description | Options | Buttons |
|---|---|---|
Vertical Stack | Note: The message is positioned to the top to make room for the text that accompanies the debit/credit Card button. | ![]() |
Horizontal Stack | | ![]() |
Standalone PayPal | | ![]() |
Standalone Pay Later | | ![]() |
Learn more about standalone button integration best practices by reviewing the Standalone Buttons page.
As the product count or cart total changes, you can update the message.amount to reflect the latest total.
buttons.updateProps({
message: {
amount: 200, // Update to your cart or product total amount
align: 'center',
color: 'black',
}
});Note: Ensure that all previously specified message options are passed into updateProps including any options that have not changed; otherwise, they will be overwritten with default values.
Return to the Set up standard payments guide to create and capture the order.
Learn more about adding messaging next to your product price and cart totals by reviewing the Pay Later Messages page
Learn more about passing parameters to customize your integration by reviewing the JavaScript SDK page.