PHP code example of baselrabia / myfatoorah-with-laravel

1. Go to this page and download the library: Download baselrabia/myfatoorah-with-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

baselrabia / myfatoorah-with-laravel example snippets


composer 

 php artisan vendor:publish --provider="Basel\MyFatoorah\MyFatoorahServiceProvider"

php artisan migrate

MYFATOORAH_TOKEN=************** 

'providers' => [
	...
	Basel\MyFatoorah\MyFatoorahServiceProvider::class,
],


"card": {
	"Number":"5123450000000008",
       	"expiryMonth":"05",
       	"expiryYear":"21",
       	"securityCode":"100"
	},