Download the PHP package musie/laravel-chapa without Composer
On this page you can find all versions of the php package musie/laravel-chapa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download musie/laravel-chapa
More information about musie/laravel-chapa
Files in musie/laravel-chapa
Package laravel-chapa
Short Description A Laravel package to integrate Chapa payment gateway
License MIT
Informations about the package laravel-chapa
Laravel-chapa a laravel package to accept Payment with Chapa API.
A Laravel package to integrate the Chapa payment gateway easily into your Laravel applications. (It supports Laravel 11)
Installation
You can install the package via composer:
-
Require the package using Composer:
-
Install the package:
- Add Environment Variables:
Add the following lines to your
.env
file:
Usage
-
Create a Payment Form: Create a view file to include the payment form provided by the package. For example, create a new file named
payment.blade.php
in theresources/views
directory and add the following content: -
Add Routes: Add routes in your
web.php
file to handle the payment and callback: -
Handle Callbacks: Ensure you have a callback view to display the payment status. For example, you can use the provided
callback.blade.php
view: - Testing the Payment Integration:
- Run the webserver.
- Fill out the form with the required details and submit it.
- You should be redirected to the Chapa payment gateway.
- After completing the payment, you should be redirected to the callback URL, where you can see the payment status.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-chapa with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0