myfatoorah / laravel-package
The official MyFatoorah Payment Gateway for Laravel.
2.2.4
2023-11-05 10:17 UTC
Requires
- myfatoorah/library: ~2.2.4
README
Description
This is the official MyFatoorah Payment Gateway Laravel package. MyFatoorah Laravel is based on myfatoorah/library composer package. Both MyFatoorah Laravel and PHP library composer packages are developed by MyFatoorah Technical Team to handle myfatoorah API endpoints.
Main Features
- Create MyFatoorah invoices.
- Check the MyFatoorah payment status for invoice/payment.
- Display the enabled gateways at your MyFatoorah account to be displayed on the checkout page.
Installation
- Install the package via myfatoorah/laravel-package composer.
composer require myfatoorah/laravel-package
- Publish the MyFatoorah provider using the following CLI command.
php artisan vendor:publish --provider="MyFatoorah\LaravelPackage\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.
Optional: call the the below URL onto your browser. Replace only the
{example.com}
with your site domain to see how to draw the available gateways on checkoutpages
https://{example.com}/myfatoorah/checkout?oid=22
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