Download the PHP package ayman-elmalah/laravel-myfatoorah without Composer
On this page you can find all versions of the php package ayman-elmalah/laravel-myfatoorah. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ayman-elmalah/laravel-myfatoorah
More information about ayman-elmalah/laravel-myfatoorah
Files in ayman-elmalah/laravel-myfatoorah
Package laravel-myfatoorah
Short Description My fatoorah api wrapper
License MIT
Informations about the package laravel-myfatoorah
Laravel Myfatoorah
laravel myfatoorah is a php package written by Ayman Elmalah with laravel to handle myfatoorah functionality by making it's api more easy .
Features
- Creating invoices
- Returning payments
- Check that payment is success or not
- Change the token on the fly
- Refund invoice
Installation Guide
Composer installation
The package is compatible with laravel ^6.0|^7.0|^8.0|^9.0 so you don't need to set providers or aliases for the package, we're using laravel auto discovery
Configuration
To publish config run
and modify the config file with your own information. File is located in /config/myfatoorah.php
Get Your Credentials From Myfatoorah
- Go to My fatoorah
- You will get access token
- Go to your .env file and paste your credentials to be like this
- MYFATOORAH_MODE options ["test", "live", "live-sa"]
or you can add it using setAccessToken($token?)->setMode($mode?)
You are now ready to use the package
Test cards page
You can get test cards from DOCS
Usage examples
Create payment page
At the controller, you can get the data from payment page at DOCS
Get callback to check if success payment
Error page
Refund payment
At the controller, you can get the data from payment page at DOCS
Authors
- Ayman Elmalah - Initial work - ayman-elmalah
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- If yo have any questions, issues or PRs feel free to contact me.
All versions of laravel-myfatoorah with dependencies
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^6.0|^7.0
illuminate/http Version ^6.0|^7.0|^8.0|^9.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0