Download the PHP package alhelwany/laravel-ecash without Composer
On this page you can find all versions of the php package alhelwany/laravel-ecash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alhelwany/laravel-ecash
More information about alhelwany/laravel-ecash
Files in alhelwany/laravel-ecash
Package laravel-ecash
Short Description Laravel Payment Gateway for Ecash (Syria)
License MIT
Homepage https://github.com/mhdghaithalhelwany/laravel-ecash
Informations about the package laravel-ecash
Laravel Payment Gateway for Ecash (Syria)
Simplify the integration of Ecash payments into your Laravel applications. This package offers a streamlined setup and intuitive API to process payments quickly and securely.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Getting Started
- Setup your environment variables
- Publish and run the migrations
- To start the payment process, use the checkout method to create a payment model & generate the payment URL
- Once the payment is complete, and the gateway redirects the user to the redirect URL, the payment status changes from PENDING to PROCESSING
- Once the gateway calls the callback URL, the payment status Changes from PROCESSING to either FAILED or PAID
- On each payment status change, a PaymentStatusUpdated event is fired, you may configure a listener to update the status of your order
Enums
Enums are in the namespace "Alhelwany\LaravelEcash\Enums"
Exceptions
InvalidAmountException
Thrown when the checkout function is called with negative or 0 amount.
InvalidConfigurationException
Thrown when trying to use the package before setting up the .env variables
Events
PaymentStatusUpdated
Important Note
Example Usage
Checkout
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-ecash with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0