PHPackages                             lovaszcc/laravel-barion - 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. lovaszcc/laravel-barion

ActiveLibrary[Payment Processing](/categories/payments)

lovaszcc/laravel-barion
=======================

This is my package laravel-barion

v1.0.0(10mo ago)04MITPHPPHP ^8.3CI failing

Since Aug 25Pushed 10mo agoCompare

[ Source](https://github.com/LovaszCC/laravel-barion)[ Packagist](https://packagist.org/packages/lovaszcc/laravel-barion)[ Docs](https://github.com/lovaszcc/laravel-barion)[ GitHub Sponsors]()[ RSS](/packages/lovaszcc-laravel-barion/feed)WikiDiscussions main Synced today

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

Simple Laravel Wrapper for Barion Payment Gateway
=================================================

[](#simple-laravel-wrapper-for-barion-payment-gateway)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ae0ae51c7e241e9a34e585c3a97aeaa984f6f8b5676ec5cc685efe1d6273d17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f7661737a63632f6c61726176656c2d626172696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lovaszcc/laravel-barion)

[![Total Downloads](https://camo.githubusercontent.com/7d807a5b00da35f29923b5573f21bb5ce85e9aff40a51871e091ba106ef6d921/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f7661737a63632f6c61726176656c2d626172696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lovaszcc/laravel-barion)

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

[](#installation)

You can install the package via composer:

```
composer require lovaszcc/laravel-barion
```

You can publish the config file with:

```
php artisan vendor:publish --tag="barion-config"
```

This is the contents of the published config file:

```
return [
    'live_env' => env('BARION_LIVE_ENV', false),
    'pos_key' => env('BARION_POS_KEY'),
    'callback_url' => env('BARION_CALLBACK_URL'),
    'redirect_url' => env('BARION_REDIRECT_URL'),
    'payee' => env('BARION_PAYEE'),
];
```

Usage
-----

[](#usage)

```
    use LovaszCC\Barion\Enums\Currency;
    use LovaszCC\Barion\Enums\FundingSources;
    use LovaszCC\Barion\Enums\Locale;
    use LovaszCC\Barion\Enums\PaymentType;
    use LovaszCC\Barion\Facades\Barion;

    $transaction_id = 'ORDER-1234567890';
    $items = [
        [
            'Name' => 'Test item',
            'Description' => 'Test item description',
            'UnitPrice' => 1000,
            'Quantity' => 1,
            'Unit' => 'db',
            'ItemTotal' => 1000,
        ],
        [
            'Name' => 'Test item2',
            'Description' => 'Test item description2',
            'UnitPrice' => 1000,
            'Quantity' => 1,
            'Unit' => 'db',
            'ItemTotal' => 1000,
        ],
    ];
    $data = [
        'PaymentType' => PaymentType::IMMEDIATE,
        'GuestCheckOut' => true,
        'FundingSources' => [FundingSources::ALL],
        'Locale' => Locale::HU,
        'Currency' => Currency::HUF,
        'RedirectUrl' => config('barion.redirect_url'),
        'CallbackUrl' => config('barion.callback_url'),
        'Transactions' => [
            [
                'POSTransactionId' => $transaction_id,
                'Payee' => config('barion.payee'),
                'Total' => 2000,
                'Items' => $items,
            ],
        ],
    ];

    // returns array with paymentId and GatewayUrl
    dd(Barion::initPayment($data));
```

Steps to Use
------------

[](#steps-to-use)

1. Create a new payment
2. Redirect the user to the GatewayUrl
3. Wait for the callback
4. Get the payment status
5. If the payment is successful, update the order status
6. If the payment is failed, update the order status

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Lovász Krisztián](https://github.com/LovaszCC)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance54

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

313d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72939589?v=4)[lovkrisz](/maintainers/lovkrisz)[@lovkrisz](https://github.com/lovkrisz)

---

Top Contributors

[![lovkrisz](https://avatars.githubusercontent.com/u/72939589?v=4)](https://github.com/lovkrisz "lovkrisz (4 commits)")

---

Tags

laravelLovász Krisztiánlaravel-barion

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lovaszcc-laravel-barion/health.svg)

```
[![Health](https://phpackages.com/badges/lovaszcc-laravel-barion/health.svg)](https://phpackages.com/packages/lovaszcc-laravel-barion)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.0k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
