Louis Innovations is proud to contribute to Qatar's open source community with the release of our SADAD Payment Gateway SDK for PHP. This SDK provides a clean, well-tested interface for integrating SADAD payments into any PHP application.
What is SADAD?
SADAD is Qatar's leading payment gateway, enabling businesses to accept online payments in Qatari Riyals (QAR). Until now, developers had to work directly with raw API calls, handle authentication manually, and build their own error handling. Our SDK changes that.
Key Features:
Web Checkout Integration - Generate payment URLs and redirect customers to SADAD's secure checkout page with a single method call. Handle callbacks and verify payment status automatically.
Invoice Generation - Create and send payment invoices programmatically. Track invoice status, send reminders, and handle partial payments.
Refund Processing - Process full or partial refunds with built-in validation. Track refund status and handle webhook notifications.
Webhook Handling - Verify SADAD webhook signatures and parse payment notifications securely. Includes middleware for popular PHP frameworks.
Error Handling - Comprehensive exception classes for every SADAD error code. Debug mode with detailed logging for development environments.
Installation:
Install via Composer with a single command. The SDK requires PHP 8.1 or higher and has minimal dependencies. Full documentation and code examples are available on our GitHub repository.
Why Open Source?
Qatar's developer community deserves world-class tools. By releasing this SDK under the MIT license, we enable every PHP developer in Qatar to integrate SADAD payments quickly and reliably. Whether you are building an e-commerce store, a SaaS platform, or a custom business application, this SDK saves weeks of development time.
Repository: github.com/louisinnovationsqatar/sadad-php-sdk
Built and maintained by Louis Innovations, Qatar's technology partner for businesses across the GCC region.

