PHPackages                             abdallhsamy/laravel-hyperpay - 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. abdallhsamy/laravel-hyperpay

ActiveLibrary[Payment Processing](/categories/payments)

abdallhsamy/laravel-hyperpay
============================

Laravel package for Hyperpay payment gateway in MENA.

v0.1.2(5y ago)55571[1 PRs](https://github.com/abdallhsamy/laravel-hyperpay/pulls)MITPHPPHP ^7.3|^8.0

Since Apr 26Pushed 3y agoCompare

[ Source](https://github.com/abdallhsamy/laravel-hyperpay)[ Packagist](https://packagist.org/packages/abdallhsamy/laravel-hyperpay)[ Docs](https://github.com/abdallhsamy/laravel-hyperpay)[ RSS](/packages/abdallhsamy-laravel-hyperpay/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

Laravel HyperPay
================

[](#laravel-hyperpay)

[![StyleCI Shield](https://camo.githubusercontent.com/063d3abd39df228ba83625be95c08223247299cd2106cdffa2eb30e3f82041cd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3334373130343730342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/347104704)[![Latest Version on Packagist](https://camo.githubusercontent.com/a0b4ef0e47b2cfaaa7f4df30199b7c5b9c164ab8ad694edec3ecd09d05d55b59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616264616c6c6873616d792f6c61726176656c2d68797065727061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abdallhsamy/laravel-hyperpay)[![Total Downloads](https://camo.githubusercontent.com/b4dfa936b708b77c326f276df350851e99694dd841b640ae0768024cf3b1c1f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616264616c6c6873616d792f6c61726176656c2d68797065727061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abdallhsamy/laravel-hyperpay)

Laravel HyperPay provides an easy way to handle all the transactions with different states.

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

[](#installation)

You can install the package via composer:

```
composer require abdallhsamy/laravel-hyperpay

```

Database migration
------------------

[](#database-migration)

`Laravel-hyperpay` provides a migration to handle its own transaction, don't forget to run the migration after installation

```
php artisan migrate

```

If you want to make an update or change the path of the migration, you can publish it using `vendor:publish`

```
php artisan vendor:publish --tag="hyperpay-migrations"

```

This migration has a model named `Transaction`, if your app use [multi-tenancy](https://tenancy.dev/docs/hyn/5.5/installation), you can create a new transaction model based on the `hyperpay transaction` model.

```

use Hyn\Tenancy\Traits\UsesTenantConnection;
use Abdallhsamy\LaravelHyperpay\Models\Transaction as ModelsTransaction;

class Transaction extends ModelsTransaction
{
    use UsesTenantConnection;
}

```

then don't forget the update the `transaction_model` path in the config file `app/hyperpay.php`

```
