PHPackages                             groupedesign/fatora - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. groupedesign/fatora

ActiveLibrary

groupedesign/fatora
===================

Fatora payment gateway

061Blade

Since Mar 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/benbelgacemhichem/fatora-laravel)[ Packagist](https://packagist.org/packages/groupedesign/fatora)[ RSS](/packages/groupedesign-fatora/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/6c3853626643fe529201d86a2132bf644f202ae375432f26e124fbc6dfa2af70/68747470733a2f2f6661746f72612e696f2f77702d636f6e74656e742f7468656d65732f6661746f72612f6173736574732f696d616765732f6374612f4865726f342e706e67)](https://laravel.com)

Fatora Laravel Package
----------------------

[](#fatora-laravel-package)

Installation &amp; Usage
------------------------

[](#installation--usage)

### Installation and Configuration

[](#installation-and-configuration)

1- Install the current version of the `groupedesign/fatora` package via composer:

```
composer require groupedesign/fatora

```

or require in *composer.json*:

```
{
    "require": {
        "groupedesign/fatora": "dev-master"
    }
}
```

then run `composer update` in your terminal to pull it in.

The package's service provider will automatically register its service provider.

2- Publish the configuration file:

```
php artisan vendor:publish --provider="Groupedesign\Fatora\FatoraServiceProvider"

```

3- After you publish the configuration file as suggested above, you need add your api key to your application's `.env` file:

```
FATORA_API_KEY=your_key_here
```

4- Add check transaction middleware in `kernal.php`

```
'checkTransactionStatus' => \Groupedesign\Fatora\Http\Middleware\CheckTransactionStatus::class

```

### Usage Example

[](#usage-example)

1- Create new Controller

```
php artisan make:controller PaymentController
```

copy this code inside your controller

```
