baselrabia / myfatoorah-with-laravel
integration of myfatoorah with laravel framework for php
v1.0.0
2021-02-02 18:21 UTC
Requires
- guzzlehttp/guzzle: ~6.5.2|~7.0
Requires (Dev)
- orchestra/testbench: ^6.11
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-15 02:56:30 UTC
README
Begin by installing this package through Composer. Just run following command to terminal-
composer require baselrabia/myfatoorah-with-laravel
Once this operation completes the package will automatically be discovered for Laravel 5.6 and above,
- Run this line to publish package files in your app
php artisan vendor:publish --provider="Basel\MyFatoorah\MyFatoorahServiceProvider"
- after that fire the migration command
php artisan migrate
- last step in your
.env
file, Add // you don't have to do this step if you are testing the package
MYFATOORAH_TOKEN=**************
Otherwise, the final step is to add the service provider. Open config/app.php
, and add a new item to the providers array.
'providers' => [ ... Basel\MyFatoorah\MyFatoorahServiceProvider::class, ],
test card:
Checkout Process Demo
Please use these ‘test card’ details for your demo
"card": { "Number":"5123450000000008", "expiryMonth":"05", "expiryYear":"21", "securityCode":"100" },