Download the PHP package revoltify/sslcommerz-php-library without Composer
On this page you can find all versions of the php package revoltify/sslcommerz-php-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download revoltify/sslcommerz-php-library
More information about revoltify/sslcommerz-php-library
Files in revoltify/sslcommerz-php-library
Package sslcommerz-php-library
Short Description A PHP library for SSLCommerz payment gateway integration
License MIT
Informations about the package sslcommerz-php-library
SSLCommerz PHP Library
This is a PHP library for integrating the SSLCommerz payment gateway. It provides a simple and easy-to-use interface for processing payments via SSLCommerz in your PHP application.
Features
- Simple integration with SSLCommerz payment gateway
- Easy-to-use API for payment processing
- Support for both sandbox and live environments
- Secure transaction handling
- Refund processing
- Detailed documentation
Installation
To install the library, use Composer:
Usage
1. Initiating a Payment
You can create a new payment session by initializing the SSLCommerz
class and providing the necessary payment details.
2. Validating a Payment
After the payment is processed, SSLCommerz sends a notification to your server. You can validate the payment using the following code:
3. Handling IPN (Instant Payment Notification)
SSLCommerz sends an IPN (Instant Payment Notification) to your server after the payment is completed. You can handle this notification and validate the payment using the following code:
4. Refunding a Payment
You can process a refund for a payment transaction by using the refundPayment
method. Here's an example:
Contribution
Contributions are welcome! If you find any issues or have any feature requests, please open an issue or submit a pull request.
License
This library is open-sourced software licensed under the MIT license.