marwa-mourad15 / laravel-payment-myfatoorah
The MyFatoorah Payment Gateway for Laravel.
dev-main
2023-11-23 13:30 UTC
Requires
- php: >=7
- ext-curl: *
- ext-json: *
- laravel/framework: ^8
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-10-23 15:28:06 UTC
README
Description
This is the MyFatoorah Payment Gateway Laravel package. MyFatoorah Laravel is based on myfatoorah composer package.
Main Features
- Create MyFatoorah invoices.
- Check the MyFatoorah payment status for invoice/payment.
Installation
- Install the package via MarwaMourad15/laravel-myfatoorah composer.
composer require MarwaMourad15/laravel-myfatoorah
- Publish the MyFatoorah provider using the following CLI command.
php artisan vendor:publish --provider="MarwaMourad15\LaravelPaymentMyfatoorah\MyFatoorahServiceProvider" --tag="myfatoorah"
- To test the payment cycle, type the below URL onto your browser. Replace only the
{example.com}
with your site domain.
https://{example.com}/myfatoorah
- Customize the app/Http/Controllers/MyFatoorahController.php file as per your site needs.
Merchant Configurations
Edit the config/myfatoorah.php file with your correct vendor data.
Demo configuration
- You can use the test API token key mentioned here.
- Make sure the test mode is true.
- You can use one of the test cards.
Live Configuration