The Sezzle promotional messaging widget displays available financing options on product and cart pages, encouraging purchases. Follow the installation instructions below to add the widget to your website.
Manual Installation: If one-click installation is unavailable or incompatible with your theme, refer to the manual installation guide or contact merchantsupport@sezzle.com for assistance.
Sezzle provides extensive configuration options to tailor the widget to your site’s needs. Our engineering team is available to ensure seamless integration with your website’s design and functionality.
ID, class, or path to the element in the webpage where the product price text value will be detected.
To indicate a path, subpaths are separated by ’/’, IDs are preceded by ’#’, classes by ’.’, and tag names are suffixed with index (tagName-Index). Indexes are zero-based.
e.g. ‘#ProductSection/.product-price/SPAN-1’ would target the 2nd ‘SPAN’ element contained within elements that contain the ‘product-price’ class which are contained within the element with an ID of ‘ProductSection’.
Path from targetXPath to the element after which the Sezzle widget should be rendered.
Use ’.’ for sibling placement, ’../’ to move up to parents, and tag-index selectors to move down. Same syntax as targetXPath.
e.g. ’../../BUTTON-0’ would go to the grandparent element of the targetXPath and place the widget after the first button found within that container.
Updates the logo color to coordinate with different background colors. If not specified, the widget will attempt to detect the background color and apply a contrasting logo.
Available options: dark, light, black-flat, white-flat.
Custom styling to apply to the Sezzle widget container. Accepts CSS in JSON
format. Keys must use camelCase, be wrapped in quotes, and separated by
commas.
Custom styling to apply to the Sezzle text within the widget. Accepts CSS in
JSON format. Keys must use camelCase, be wrapped in quotes, and separated by
commas.
Custom styling to apply to the Sezzle logo within the widget. Accepts CSS in
JSON format. Keys must use camelCase, be wrapped in quotes, and separated by
commas.
Function receives two parameters. The first is the related element per relatedPath, the second is the widget that corresponds to this targetXPath element. Write a custom function to check condition on relatedPath, then perform an action on widget.
Minimum price in cents for which Sezzle can be selected at checkout. If the
price at targetXPath is lower than this number, the widget will render
with a note stating the minimum eligible price required. This configuration
does not prevent a customer from checking out with Sezzle below this price.
For more information on setting a gateway minimum, contact your Merchant
Success representative or use the Contact Us section of the Sezzle Merchant
Dashboard.
Maximum price in cents for which the widget should be rendered. If the price
at targetXPath is higher than this number, the widget will not render on
the page.
After building the config, it is time to upload the widgets to your webpages! The SDK needs to be called in the HTML of the webpage for the widgets to be rendered. Place the config and the widget script at the bottom of the code file for the HTML page, and you should be all set!
A pre-populated snippet should be provided in your Sezzle Merchant Dashboard Setup Checklist.
When using this snippet to add the widget script to your site, you must replace {merchant_id} with the 36-character Sezzle Merchant ID found in the Business Settings of your Sezzle Merchant Dashboard for the applicable store. Please do not re-use IDs across multiple URLs.
The script with the applicable merchant ID must be included afterdocument.sezzleConfig is defined.