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

ActiveLibrary[Payment Processing](/categories/payments)

devinweb/laravel-hyperpay
=========================

Laravel package for Hyperpay payment gateway in MENA.

v1.2.1(3y ago)2523.4k↓46.2%11[1 issues](https://github.com/devinweb/laravel-hyperpay/issues)MITPHPPHP ^7.3|^8.0

Since Apr 9Pushed 3y ago2 watchersCompare

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

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

[![Laravel Hyperpay](/art/socialcard.png)](/art/socialcard.png)

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

[](#laravel-hyperpay)

[![tests](https://github.com/devinweb/laravel-hyperpay/actions/workflows/tests.yml/badge.svg)](https://github.com/devinweb/laravel-hyperpay/actions/workflows/tests.yml)[![StyleCI Shield](https://camo.githubusercontent.com/063d3abd39df228ba83625be95c08223247299cd2106cdffa2eb30e3f82041cd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3334373130343730342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/347104704)[![Latest Version on Packagist](https://camo.githubusercontent.com/c6060ba5c37fad0aa2458a74939c481753ab2d17354d2f17b9b911c317c0273d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646576696e7765622f6c61726176656c2d68797065727061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devinweb/laravel-hyperpay)[![Total Downloads](https://camo.githubusercontent.com/9ee7672e411cdb548c1192c44b5d72fc3068d0ddc3d62e82fdebb3169edf3c59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646576696e7765622f6c61726176656c2d68797065727061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devinweb/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 devinweb/laravel-hyperpay
```

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

[](#database-migration)

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

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

Then migrate

```
php artisan migrate
```

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 Devinweb\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`

```
