Checkout page widget

The checkout page widget will show on the checkout page when Raylo Pay is enabled and selected as a checkout option, and the shopping basket is eligible for Raylo Pay. It shows the lowest monthly lease price and has a "Learn more" modal.

Step 1 - Initialise the Widget

To initialise the Raylo Pay checkout widget, an integration script needs to be added to the checkout page HTML.

It asynchronously loads the contents into the page. This script needs to ideally be embedded at the bottom of the HTML page.

Replace https://widgets.staging.raylopay.com to https://widgets.raylopay.com when you move from your testing environment to Production

Step 2 - Embedding widgets into HTML Pages

Embedding the Checkout widget into the checkout page of the e-commerce site requires adding a div tag to the relevant HTML document or template.

Step 3 - Widget Configuration

Send the JWT which contains information on the merchant price and other checkout details, so the lease price can be calculated.

For a full list of the supported properties, see the Widget properties page.

Step 4 - Checkout label

Relying on the onPriceLoaded callback enables you to customise the checkout option and show a specific price.

For example, the checkout option might load by default like this:

And after the price is loaded, it can change to this:

Sample code for that example:

Last updated

Was this helpful?