Release 2.0.0
I am excited to announce the release of version 2.0.0 of the package! This major update introduces significant improvements, including Laravel 12 support, a consolidated callback configuration, and the ability to pass callback URLs as parameters.
Key Changes:
- Laravel 12 Support: This release adds full compatibility with Laravel 12.
- Consolidated Callback Configuration: To streamline configuration, individual callback URL properties (e.g.,
MPESA_CALLBACK_URL
,MPESA_B2C_RESULT_URL
) have been replaced with a singlempesa.callbacks
array inconfig/mpesa.php
. This change requires updating your configuration files. - Parameter-Based Callback URLs: You can now pass callback URLs directly as parameters to the respective M-Pesa functions.
- Helper Function Refactoring: Several helper functions have been refactored to improve code quality and maintainability.
Breaking Changes:
- Dropped PHP 8.0 and 8.1 Support: This release requires PHP 8.2 or greater.
- Dropped Laravel 8 and 9 Support: This release requires Laravel 10, 11, or 12.
- Callback Configuration Migration: The change to the
mpesa.callbacks
array is a breaking change. You must update yourconfig/mpesa.php
and.env
files.
Upgrade Guide:
Please carefully follow the upgrade guide to ensure a smooth transition to version 2.0.0:
Upgrade Guide: Upgrading from 1.* to 2.0.0
Why These Changes?
- Consolidating the callback configuration simplifies management and reduces redundancy.
- Parameter-based callback URLs offer greater flexibility and dynamic configuration options.
- Dropping support for older PHP and Laravel versions allows us to focus on actively maintained versions and take advantage of modern language features and security updates.
Thank You:
I appreciate your continued support and feedback. If you encounter any issues or have suggestions, please feel free to open an issue