How hasinhayder/sslcommerz-laravel works
This Laravel package exposes SSLCommerz payment operations through a facade backed by a configured client. The principal flow is an application building payment details, submitting them to SSLCommerz, then using the response to continue checkout. The client also validates transactions, verifies response hashes, and initiates or checks refunds; typed response objects expose gateway results. The README documents callback URLs and sandbox/live modes. Source excerpts support the client’s API calls and wiring; callback handling itself belongs to the integrating application.
Main entry points: SslcommerzClient.php Gateway Client · SslcommerzServiceProvider.php Service Provider · Sslcommerz.php SSLCommerz Facade · sslcommerz.php Package Config
Components 14
Laravel Integration
- SSLCommerz Facade
src/Facades/Sslcommerz.php - Service Provider
src/SslcommerzServiceProvider.php - Package Config
config/sslcommerz.php
Payment Operations
- Gateway Client
src/SslcommerzClient.php - Payment Initiation
src/SslcommerzClient.php - Payment Validation
src/SslcommerzClient.php - Hash Verification
src/SslcommerzClient.php - Refund Operations
src/SslcommerzClient.php
Gateway Results
- Payment Response
src/Data/PaymentResponse.php - Refund Response
src/Data/RefundResponse.php - Refund Status
src/Data/RefundStatus.php - Credential Exception
src/Exceptions/SslcommerzException.php
Other components
- Laravel Application
- SSLCommerz Gateway
Connections 16
- Laravel Application → SSLCommerz Facade: calls operations
README.md - SSLCommerz Facade → Gateway Client: forwards calls
src/Facades/Sslcommerz.php - Service Provider → Package Config: reads settings
src/SslcommerzServiceProvider.php - Service Provider → Gateway Client: registers client
src/SslcommerzServiceProvider.php - Service Provider → Credential Exception: throws on missing credentials
src/SslcommerzServiceProvider.php - Gateway Client → Payment Initiation: performs
src/SslcommerzClient.php - Gateway Client → Payment Validation: performs
src/SslcommerzClient.php - Gateway Client → Hash Verification: performs
src/SslcommerzClient.php - Gateway Client → Refund Operations: performs
src/SslcommerzClient.php - Payment Initiation → SSLCommerz Gateway: submits payment
src/SslcommerzClient.php - Payment Validation → SSLCommerz Gateway: requests validation
src/SslcommerzClient.php - Refund Operations → SSLCommerz Gateway: requests refund data
src/SslcommerzClient.php - Payment Initiation → Payment Response: builds response
src/SslcommerzClient.php - Refund Operations → Refund Response: builds response
src/SslcommerzClient.php - Refund Operations → Refund Status: builds status
src/SslcommerzClient.php - Laravel Application → SSLCommerz Gateway: receives callbacks
README.md