sezzle-brasil / sezzlepay
Sezzle extension for Magento 2
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/sezzle-brasil/sezzlepay
This package is auto-updated.
Last update: 2025-12-18 21:51:48 UTC
README
Sezzle Extension for Magento 2
Introduction
This document will help you in installing Sezzle's Magento 2 extension. The plugin can also be downloaded from github.
How to install the extension?
There are two ways of installing and upgrading the extension.
- By composer.
- Manual Process.
For all purposes assume [Magento] as your Magento 2 root directory.
Composer
- Open terminal and navigate to
Magentoroot path. composer require sezzle-brasil/sezzlepayphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deployphp bin/magento cache:clean
Manual
- Download the .zip or tar.gz file from
Sezzle'sgithub repository. - Unzip the file and follow the following instructions.
- Navigate to
Magento[Magento]/app/code/either throughSFTPorSSH. - Copy
Sezzledirectory from unzipped folder to[Magento]/app/code/. - Open the terminal.
- Run the following command to enable
Sezzle:php bin/magento module:enable Sezzle_Sezzlepay - Run the
Magentosetup upgrade:php bin/magento setup:upgrade - Run the
MagentoDependencies Injection Compile:php bin/`magento` setup:di:compile - Run the
MagentoStatic Content deployment:php bin/magento setup:static-content:deploy - Login to
MagentoAdmin and navigate toSystem > Cache Management. - Flush the cache storage by selecting
Flush Cache Storage.
You can now directly navigate from the Configuration Page to get signed up for Sezzle. To do so, you need to click on Register for Sezzle which will redirect you to the Sezzle Merchant Signup Page. If you have the details already, you can simply click on I've already setup Sezzle, I want to edit my settings to move ahead.
How to upgrade the extension?
Composer
- Open terminal and navigate to
Magentoroot path. composer update sezzle-brasil/sezzlepayphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deployphp bin/magento cache:clean
Manual
- Download the .zip or tar.gz file from
Sezzle'sgithub repository. - Unzip the file and follow the following instructions.
- Copy
Sezzledirectory from unzipped folder to[Magento]/app/code/. Make sure you are overwriting the files. - Open the terminal.
- Run the following command to enable
Sezzle:php bin/magento module:enable Sezzle_Sezzlepay - Run the
Magentosetup upgrade:php bin/magento setup:upgrade - Run the
MagentoDependencies Injection Compile:php bin/`magento` setup:di:compile - Run the
MagentoStatic Content deployment:php bin/magento setup:static-content:deploy - Login to
MagentoAdmin and navigate toSystem > Cache Management. - Flush the cache storage by selecting
Flush Cache Storage.
Configure Sezzle
Payment Configuration
- Set
EnabledasYesto activate Sezzle as a payment option. - Make sure you have the
Merchant UUIDand theAPI Keysfrom theSezzle Merchant Dashboard. Sign Up if you have not signed up to get the necessities. - Navigate to
Stores > Configuration > Sales > Payment Methods > Sezzle > Payment Settingsin yourMagentoadmin. - Set the Payment Mode to
Livefor LIVE and set it asSandboxfor SANDBOX. - Set the
Merchant UUID,Public KeyandPrivate Key. - Set
Payment ActionasAuthorize onlyfor doing payment authorization only andAuthorize and Capturefor doing instant capture. - Set
Min Checkout Amountto restrict Sezzle payment method below that amount. - Set
Payment from Applicable CountriestoSpecific Countries. - Set
Enable Customer TokenizationtoYesfor allowing Sezzle to tokenize the customer account if they approve it. If customer wish to tokenize their account, next time, they don't have to redirect to Sezzle Checkout for completing the purchase, rather it will happen in your website. - Set
Sort Orderto manage the position of Sezzle in the checkout payment options list. - Save the configuration and clear the cache.
In-Context Configuration
- Set
Enable In-Context SolutiontoYesfor the In-Context Checkout to get activated. - Set
In-Context Checkout ModetoIFrameorPopUpdepending on how you want Sezzle Checkout to get hosted.
Settlement Report Configuration
- Set
Enable Settlement ReportstoYesfor the Settlement Reports Dashboard to get activated. - Set
Rangeto a value based on which you want to fetch the Settlement Reports. - Set
Enable Automatic Syncingto fetch the Settlement Reports asynchronously. - Set Schedule and Time of Day for the above automatic sync to run.
Note : Automatic Syncing requires cron to be enabled.
Widget Configuration
- Set
Enable Widget in PDPtoYesfor adding widget script in the Product Display Page which will help in enablingSezzle WidgetModal in PDP. - Set
Enable Widget in Cart PagetoYesfor adding widget script in the Cart Page which will help in enablingSezzle WidgetModal in Cart Page. - Set
Enable Installment Widget in Checkout PagetoYesif you want to show the Sezzle Installment Widget under Sezzle Payment Option in Checkout Page. - Set
Path to Price Element. This is the path to the element in the Checkout Page where the order total text value will be detected. - Save the configuration and clear the cache.
Developer Configuration
- Enable the log tracker to trace the
Sezzlecheckout process. - Set
Send Logs to SezzletoYesif you want the logs to be sent to Sezzle in a periodic basic. For this cron needs to be enabled. - You can also download the latest logs by clicking on
Sezzle Logif any. - Save the configuration and clear the cache.
Your store is now ready to accept payments through Sezzle.
Frontend Functionality
- If you have correctly set up
Sezzle, you will seeSezzleas a payment method in the checkout page. - Select
Sezzleand move forward. - Once you click
Continue to SezzleorPlace Order, you will be redirected toSezzle Checkoutto complete the checkout. - In the final page of Sezzle Checkout, check the
Approve {Website Name} to process payments from your Sezzle account for future transactions. You may revoke this authorization at any time in your Sezzle Dashboardto tokenize your account. And, then click onComplete Orderto complete your purchase. - If your account is already tokenized, order will be placed without redirection otherwise you will be redirected to Sezzle Checkout for completing the purchase.
- On successful order placement, you will be redirected to the order confirmation page.
Capture Payment
- If
Payment Actionis set toAuthorize and Capture, capture will be performed instantly from the extension after order is created and validated inMagento. - If
Payment Actionis set toAuthorize, capture needs to be performed manually from theMagentoadmin. Follow the below steps to do so.- Go the order and click on
Invoice. - Verify your input in the
Create Invoicepage and click onSaveto create the invoice. - This will automatically capture the payment in
Sezzle. - Payment can also be captured via Magento 2 Invoice API.
- Go the order and click on
Refund Payment
- Go to
Sales > Ordersin theMagentoadmin. - Select the order for which you want to refund the payment.
- Go to Invoices and select the invoice for which you to refund.
- Click on
Credit Memoand verify your input in theCreate Credit Memopage. - Save it and the refunded will be initiated in
Sezzle. - In
Sezzle Merchant Dashboard,Order StatusasRefundedmeans payment has been fully refunded andOrder StatusasPartially Refundedmeans payment has been partially refunded. - Payment can also be refunded via Magento 2 Refund API.
Release Payment
- Go to
Sales > Ordersin theMagentoadmin. - Select the order for which you want to release the payment.
- Click on
Voidand confirm your action. - In
Sezzle Merchant Dashboard,Order StatusasDeleted due to checkout not being captured before expirationmeans payment has been fully released. - Only Full Release is supported from Magento.
- Payment can also be released via Magento 2 Void API.
Order Verification in Magento Admin
- Login to
Magentoadmin and navigate toSales > Orders. - Proceed into the corresponding order.
- If Order Status is
ProcessingandTotal Paidis equals toGrand Total, payment is successfully captured bySezzle. - If Order Status is
PendingandTotal Paidis not equals toGrand Total, payment is authorized but yet not captured. - If Order Status is
Closed, payment is refunded. - If Order Status is
Canceled, payment is released.
Order Verification in Sezzle Merchant Dashboard
- Login to
Sezzle Merchant Dashboardand navigate toOrders. - Proceed into the corresponding order.
- Status as
Approvedmeans payment is successfully captured bySezzle. - Status as
Authorized, uncapturedmeans payment is authorized but yet not captured. - Status as
Refundedmeans payment is refunded. - Status as
Deleted due to checkout not being captured before expirationmeans either payment was not captured in time or the payment is released.
Customer Tokenization Details
- Login to
Magentoadmin and navigate toCustomers > All Customers. - Go inside a customer for which you want to see the tokenization details.
Sezzletab will appear if the customer is tokenized.Customer UUID,Expiration DateandStatuswill appear.
Settlement Reports
- Login to
Magentoadmin and navigate toReports > Sales > Sezzle Settlement. - List of the latest Settlement Reports will be shown.
- To make a quick sync, enter the
FromandToDate and click onSync. - Click on
Downloadfrom theActioncolumn for downloading a Settlement Report. - For viewing the details of a particular Settlement Report, click on
ViewfromActioncolumn. - Settlement Report details can also be downloaded by entering the Settlement Report view.
- Settlement Report can be downloaded via
CSVorExceland Settlement Report Details will be downloaded viaCSV.
How Sandbox works?
- In the
Sezzleconfiguration page of yourMagentoadmin, enter theSandboxAPI Keysfrom yourSezzle Merchant Sandbox Dashboardand set thePayment ModetoSandbox, then save the configuration. Make sure you are doing this on yourdev/stagingwebsite. - On your website, add an item to the cart, then proceed to
Checkoutand selectSezzleas the payment method. - To pay with Sezzle:
- If customer is not tokenized, click
Continue to Sezzle. - If customer is tokenized, click
Place Order. - If In-Context checkout, click
Pay with Sezzle.
- If customer is not tokenized, click
- For In-Context checkout, the Sezzle checkout will be hosted in the configured mode,
iFrameorPopup. Otherwise, you will be redirected to the Sezzle checkout. - Sign In or Sign Up to continue.
- Enter the payment details using test data, then move to final page.
- Check the
Approve {Website Name} to process payments from your Sezzle account for future transactions. You may revoke this authorization at any time in your Sezzle Dashboardto tokenize your account. - If your account is already tokenized, order will be placed without redirection otherwise you will be redirected to Sezzle Checkout for completing the purchase.
- After payment is completed at Sezzle, you will be directed to your site's successful payment page.
Sandboxtesting is complete. You can login to yourSezzle Merchant Sandbox Dashboardto see the test order you just placed.
Troubleshooting/Debugging
- There is logging enabled by
Sezzlefor tracing theSezzleactions. - In case merchant is facing issues which is unknown to
Merchant SuccessandSupportteam, they can ask for this logs and forward to thePlatform Integrationsteam. - Name of the log will be
sezzlepay.log.It is always recommended to send thesystem.logandexception.logfor better tracing of issues.
Docker Environment Set Up
Start
- Clone the repo.
- Execute
docker-compose up -d --buildto start the Magento server. - Server will be up at
localhost:8085. If you want to change that, edit thedocker-compose.yml.
Install Magento
docker exec -it sezzle_magento2 process install
Sezzle will be installed alongside.
Sample Data Deploy
docker exec -it sezzle_magento2 process install-sampledata
Database Upgrade
docker exec -it sezzle_magento2 process upgrade
Compile
docker exec -it sezzle_magento2 process compile
Deploy Static Files
docker exec -it sezzle_magento2 process deploy
Set Developer Mode
docker exec -it sezzle_magento2 process developer
Cache Clear
docker exec -it sezzle_magento2 process clear
Cleanup Environment
docker-compose down --rmi local -v --remove-orphans