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

ActiveLibrary

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

This is my package laravel-barion

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

Since Aug 25Pushed 8mo 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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance59

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9054fdcf6ec350b22d21b8a3b59d5e7cf436fe7f38488b7502ea386405be25f8?d=identicon)[lovkrisz](/maintainers/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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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