PHPackages                             devinweb/payment - 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. [Payment Processing](/categories/payments)
4. /
5. devinweb/payment

ActiveLibrary[Payment Processing](/categories/payments)

devinweb/payment
================

1.0.0(6y ago)14158MITPHPPHP ^7.1CI failing

Since May 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/devinweb/payment)[ Packagist](https://packagist.org/packages/devinweb/payment)[ Docs](https://github.com/devinweb/payment)[ RSS](/packages/devinweb-payment/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

Payment Package provide a simple way to handle **payment gateway** in MENA.

Installation
------------

[](#installation)

This package requires Laravel 5.4 or higher. if your laravel is &gt; 5.4 you can skip the two steps (2, 3) below (Package Auto Discovery 5.5+).

1. You can install the package via composer:

```
composer require devinweb/payment
```

2. Open your `config/app.php` and add the following to the providers array

```
Devinweb\Payment\PaymentServiceProvider::class,
```

3. In the same `config/app.php` and add the following to the aliases array:

```
'Payment'   => Devinweb\Payment\Facades\Payment::class,
```

4. Run the command below to publish the package config file `config/payfort-payment.php`:

```
php artisan vendor:publish --provider="Devinweb\Payment\PaymentServiceProvider" --tag="config"
```

- [Payfort](#Payfort)

    - [Configuration (Payfort)](#Configuration-(Payfort))
    - [Routing (Payfort)](#Routing-(Payfort))
    - [Required Parameters (Payfort)](#Required-Parameters-(Payfort))
- [Payfort Apple Pay](#Payfort-apple-pay)

    - [Configuration (Payfort Apple Pay)](#Configuration-(Payfort-Apple-Pay))
    - [Usage (Payfort Apple Pay)](#Usage-(Payfort-Apple-Pay))
    - [Required Parameters (Payfort Apple Pay)](#Required-Parameters-(Payfort-Apple-Pay))
- [Payfort Events](#Payfort-events)
- [Exemple](#exemple)

Payfort
=======

[](#payfort)

To pay via payfort it's simple, but before process the payment it's requiered to setup your `FrontEnd`, you can check the [`payment-boilerplate`](https://github.com/devinweb/payment-boilerplate) Repository.

Configuration (Payfort)
-----------------------

[](#configuration-payfort)

Now you can add your payfort credentiels to `app/config/payments/php`

```
