Pay Later Upgrade Options

Add Pay Later offers to your existing integration

DocsCurrentLast updated: July 28th 2021, @ 1:19:19 pm


If you have an existing PayPal integration and want to add Pay Later messages, choose from the options below.

You can use the PayPal JavaScript SDK messages component with other components of the SDK to integrate with many PayPal features and services simultaneously. You can also use PayPal JS SDK messages independently on pages that need only messaging.

The PayPal JS SDK is also compatible with older versions of PayPal checkout integrations, such as checkout.js, the immediate predecessor to the PayPal JavaScript SDK. To use the SDK on the same page as checkout.js, you must include the data-namespace attribute on the <script /> tag.

In this section

Use on pages with no other PayPal integrations

Set the value of the components parameter to messages in the script src attribute for the SDK.

Example

<script src="https://www.paypal.com/sdk/js?client-id=YOUR-CLIENT-ID&currency=EUR&components=messages"></script>

Legacy PayPal checkout.js

You can update your checkout integration to use the PayPal JavaScript SDK. However, if you can't update but still want to use messaging features, keep your checkout.js script include and add a new script include to the PayPal JavaScript SDK with the data-namespace attribute set to paypal2.

Example

<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script data-namespace="paypal2" src="https://www.paypal.com/sdk/js?client-id=YOUR-CLIENT-ID&currency=EUR&components=messages"></script>

Legacy PayPal REST API or static button

You can include the PayPal JavaScript SDK with just the messages component.

Example

<script src="https://www.paypal.com/sdk/js?client-id=YOUR-CLIENT-ID&currency=EUR&components=messages"></script>