Socket
Book a DemoInstallSign in
Socket

sezzle-react-widget

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sezzle-react-widget

A react component of sezzle widget where props are used to provide config

latest
npmnpm
Version
2.0.3
Version published
Maintainers
2
Created
Source

Sezzle

sezzle-react-widget is a React-based component to render Sezzle's widget on React platforms.

Installation

Using npm: npm install sezzle-react-widget

Within your product page, add the two following snippets in the appropriate locations:

import SezzleWidget from 'sezzle-react-widget'

<SezzleWidget
  price={YOUR PRICE VARIABLE HERE}
  merchantId={'YOUR MERCHANT ID HERE'}
/>

Customization

The following props can be specified in the element to customize the widget's content and appearance

  • {price} (Required)

    • Type: String
  • {merchantId} (Required)

    • Purpose: Site's 36-character Merchant ID, found in the Business Settings of Sezzle Merchant Dashboard.
    • Type: String
  • {theme} (Optional)

    • Purpose: To control the Sezzle image variant. Use light or black-flat for light backgrounds, dark or white-flat for dark backgrounds.
    • Type: String
    • Options: light, dark, white-flat, black-flat
    • Default: light
  • {alignment} (Optional)

    • Type: String
    • Options: auto, left, center, right
    • Default: auto
  • {fontWeight} (Optional)

    • Type: Number
    • Default: 500
  • {fontFamily} (Optional)

    • Type: String
    • Default: inherit
  • {fontSize} (Optional)

    • Type: Number
    • Default: 14
  • {textColor} (Optional)

    • Type: String
    • Default: inherit
  • {logoSize} (Optional)

    • Purpose: To scale the logo (1 = 100%)
    • Type: Number
    • Default: 1
  • {includeAPModal} (Optional)

    • Purpose: To enable Afterpay's logo within the Sezzle widget
    • Type: Boolean
    • Default: false
  • {minPrice} (Optional)

    • Purpose to display a checkout minimum within the Sezzle widget
    • Type: Number
    • Default: 0

Example

<SezzleWidget
  price={'$29.99'}
  merchantId={'12a34bc5-6de7-890f-g123-4hi5678jk901'}
  theme={'light'}
  includeAPModal={false}
  minPrice={35}
  fontWeight={500}
  fontFamily={'inherit'}
  fontSize={12}
  textColor={'inherit'}
  alignment={'auto'}
  logoSize={1}
/>

Keywords

sezzle

FAQs

Package last updated on 13 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts