v 1.1.1 stable

Local Payments for Laravel Developers.

A fluent API for initiating SSLCommerz payments, validating transactions, handling refunds, and verifying hashes - built for sandbox and live environments.

PHP 8.2+ Laravel 10 – 13 Sandbox + Live
fluent API chain 5 methods
->setOrder()
Amount, invoice, product name
$amount, $id, $name
->setCustomer()
Name, email, phone, address
$name, $email, $phone
->setShippingInfo()
Quantity, address
$qty, $address
->makePayment()
Execute, get response
PaymentResponse
->gatewayPageURL()
Redirect customer
string
returns PaymentResponse { success, status, gatewayPageURL, ... }

Everything for a reliable
payment integration.

A focused API surface with clean data objects, covering the full payment lifecycle that production teams need.

Initiate Payments

Fluent chain for order, customer, shipping, callbacks, and gateway selection. Returns a typed response object.

setOrder setCustomer setShippingInfo makePayment

Validate Transactions

Verify hash signatures and validate payment responses before marking orders as paid. Prevents tampering.

validatePayment verifyHash

Refund with Confidence

Initiate refunds and poll their status through dedicated response objects. Success, processing, and failure are explicit.

refundPayment checkRefundStatus

Running in minutes.

Install the package, publish configuration, set your SSLCommerz store credentials, and define callback routes.

terminal
# Install the package
composer require hasinhayder/sslcommerz-laravel

# Publish configuration
php artisan sslcommerz-laravel:install
.env
# Environment
SSLC_SANDBOX=true
SSLC_STORE_ID=your_store_id
SSLC_STORE_PASSWORD=your_store_password
SSLC_STORE_CURRENCY=BDT

# Callback routes
SSLC_ROUTE_SUCCESS=sslc.success
SSLC_ROUTE_FAILURE=sslc.failure
SSLC_ROUTE_CANCEL=sslc.cancel
SSLC_ROUTE_IPN=sslc.ipn

Start accepting payments
with confidence.

A focused SSLCommerz integration for Laravel teams shipping in sandbox or live mode. Minimal footprint, maximum clarity.

Payment flow Validation Refunds Hash verification