Checkouts
Create checkouts and capture payments with Sezzle.
Integrations
Checkout in an iframe, pop-up window, or redirect to Sezzle.
Payments
Handle payment success, failure, or cancel with your Sezzle orders.
Sezzle Button
Render the Sezzle checkout button on your store.
Include SDK code
Include the following script in the<head> section of the page.
Checkout Configuration
The first requirement to get started with the direct JavaScript SDK is to configure a new Checkout object.Configuration Options
- Template
- Example
- Options
Sezzle Button
Sezzle Button Configuration
Create a placeholder element for the Sezzle Button to be rendered on the page(s).- Template
- Example
- Options
Render the Sezzle Button
Requires having thecheckout object created from above to render the button. Call renderSezzleButton passing the id of the placeholder element defined in Button Configuration, above.
Initialize the Checkout
Event Handlers
The SDK requires the following event handlers that can be used to extend features in your application.- Template
- Example
- Options
Checkout Initialization
- Template
- Example
- Options
Alternatively, start checkout by URL:
onClick handler. There are two methods for hosting a checkout.
Use a checkout payload as detailed in the Session Object
- The cancel and complete URLs are not required for
iframeandpopupmode.
- The
modeused when configuring the SDK checkout must match thecheckout_modewhen creating a session. - The parent window
originmust be provided in the cancel and complete urls when thecheckout_modeisiframeorpopup.
Customer Tokenization This is not supported in the
onComplete event. To receive a customer UUID, subscribe to the customer.tokenized event.Checkout completed by Payload
Checkout completed by URL
Capture Payment
Capturing an order is not required if the
CAPTURE intent was used when creating the checkout.- Template
- Example
- Options
Installment Plan
- Template
- Example
- Options
checkout without any configuration can also be used to quickly get installment details.