{"repo":"baidou5/CMI-Payment-Gateway","free":true,"listed":false,"github":"https://github.com/baidou5/CMI-Payment-Gateway","clone":"git clone https://github.com/baidou5/CMI-Payment-Gateway.git","description":"CMI Payment Package for Laravel","language":"PHP","stars":27,"topics":["cmi","express","getway","morocco","payment-gateway"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"CMI Payment Gateway for Laravel CMI-Payment-Gateway is a Laravel package for integrating CMI (Centre Monétique Interbancaire) hosted payments with hash generation and callback validation. Features - Seamless integration with Laravel - Easy to configure and use - Secure payment processing via CMI - Supports multiple SHOPs (SAAS) transactions - Customizable payment callback URL Requirements - PHP 7.4 or higher - Laravel 7.x or higher - CMI Merchant account Installation To install the package, use Composer: Publish Configuration Once installed, publish the configuration file using the following command: This will create a cmi.php file in your config directory where you can configure your CMI credentials. Configuration In the config/cmi.php file, add your CMI Merchant credentials: You can also add these environment variables to your .env file: Usage To process a payment, use the provided CmiPayment service/facade: 1. First, inject the CmiPayment service into your controller or use the facade. 2. Example usage in a controller: Handling Payment Callbacks In your web.php routes file, you should add a route to handle the CMI callback: In your PaymentController , handle the callback: Testing You can test the integration using CMI's sandbox credentials. Ensure you configure the sandbox environment in the cmi.php configuration file or use different .env variables for testing. Basic Test Card Numbers Credit card information cannot be used in test mode. Instead, use any of the following t","default_branch":null,"files":null,"tree":[],"storefront":"/r/baidou5","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/baidou5/CMI-Payment-Gateway/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}