Skip to main content

Purpose

Boost conversions and increase average order value by showcasing Sezzle’s financing options to shoppers as they browse your site.

Overview

The Sezzle on-site 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. Attachment(1) Pn

Installation

  • One-Click Installation: Many leading platforms offer one-click installation with Sezzle. Check for compatibility with your platform.
  • Manual Installation: If one-click installation is unavailable or incompatible with your theme, refer to the manual installation guide or contact [email protected] for assistance.

On-Site Messaging Widget Script (required)

The following imports the Javascript file required to render the on-site messaging widget, along with any saved account settings. Place this script at the bottom of the code file for the HTML page where the widget is to render.
<script src="https://widget.sezzle.com/v1/javascript/price-widget?uuid={merchant_id}"></script>
Replace {merchant_id} with your 36-character value from your Merchant Dashboard.A pre-populated snippet should be provided in your Sezzle Merchant Dashboard Setup Checklist.

Customization

Sezzle provides extensive configuration options to tailor the on-site messaging widget to your site’s needs. Our engineering team is available to ensure seamless integration with your website’s design and functionality. Contact [email protected] for assistance, or follow the next section to configure the widget yourself.

Merchant Configuration

Merchants may opt to manage their configuration internally. If your local configuration is being overridden by a different value, please contact Sezzle Merchant Support to remove the saved override.
The below configuration script must appear in the code before the widget script in the previous section.

document.sezzleConfig Options

<script type="text/javascript">
    document.sezzleConfig = {
      configGroups: [
        {
          "targetXPath": string,
          "renderToPath": string,
          "urlMatch": string,
          "theme": string,
          "ignoredPriceElements": [string],
          "ignoredFormattedPriceText": [string],
          "alignment": string,
          "alignmentSwitchMinWidth": number,
          "alignmentSwitchType": string,
          "containerStyle": {
            "property": string,
          },
          "textStyle": {
            "property": string,
          },
          "logoStyle": {
            "property": string,
          },
          "hideClasses": [string],
          "relatedElementActions": [{
            "relatedPath": string,
            "initialAction": function(r,w){}
          }]
        }
      ],
      "language": string,
      "apDualInstall": boolean,
	  "klarnaDualInstall": boolean,
      "minPrice": number,
      "maxPrice": number,
      "observeElements": [
        {
          "eventType": string,
          "element": string
        }
      ]
    }
</script>

Simple Example

<script type="text/javascript">
    document.sezzleConfig = {
        configGroups: [
            {
                targetXPath: string,
            },
        ],
    };
</script>

FAQs

The widget SDK is fast and lightweight, and has not been shown to directly impact site performance. Additionally, it is designed to load last so it does not interrupt the user experience. If site performance is already slow, this may cause the widget to appear “late”. Perform a site performance test before and after installation to confirm, being sure to review the itemized report, not just the overall score.
There is no cost associated with the widget itself. In fact, having widgets are a prerequisite to some of our merchant perks.