PHPackages                             deh4eg/omnipay-luminor - 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. deh4eg/omnipay-luminor

ActiveLibrary[Payment Processing](/categories/payments)

deh4eg/omnipay-luminor
======================

Luminor gateway for omnipay library

v2.0.0(5y ago)111MITPHP ^7.2

Since Mar 12Compare

[ Source](https://github.com/DeH4eG/omnipay-luminor)[ Packagist](https://packagist.org/packages/deh4eg/omnipay-luminor)[ RSS](/packages/deh4eg-omnipay-luminor/feed)WikiDiscussions Synced 2d ago

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

Omnipay: Luminor Gateway
========================

[](#omnipay-luminor-gateway)

Omnipay Luminor Gateway is a payment processing library for PHP. It's based on [Omnipay package](https://github.com/thephpleague/omnipay)

[![Latest Stable Version](https://camo.githubusercontent.com/489189634b8dfa6cc9286450df7b1d489a135ba15b1a38989f84c0b2d8d6a569/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d6c756d696e6f722f76)](//packagist.org/packages/deh4eg/omnipay-luminor) [![Total Downloads](https://camo.githubusercontent.com/70d76bd943e0fe7e845439e100f6231621859ddb03123a2710b997abaf97a74b/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d6c756d696e6f722f646f776e6c6f616473)](//packagist.org/packages/deh4eg/omnipay-luminor) [![Latest Unstable Version](https://camo.githubusercontent.com/cd32e00db096268751e85817f688fc54562cc2e407334fe1ea136f338d8523d3/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d6c756d696e6f722f762f756e737461626c65)](//packagist.org/packages/deh4eg/omnipay-luminor) [![License](https://camo.githubusercontent.com/ae46a50ad818ef0af3e8ec56074b826da0ba172667656efe2273ceb5dbee9867/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d6c756d696e6f722f6c6963656e7365)](//packagist.org/packages/deh4eg/omnipay-luminor)

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

[](#installation)

Omnipay is installed via [Composer](https://getcomposer.org/). To install, simply require `league/omnipay` and `deh4eg/omnipay-luminor` with Composer:

`composer require league/omnipay deh4eg/omnipay-luminor`

API docs
--------

[](#api-docs)

Luminor Gateway API documentation you can find [here](https://gate.luminorgroup.com/api/)

Usage
-----

[](#usage)

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository.

Currently, library implements 2 endpoints:

1. [Create a Purchase](#1-create-a-purchase)
2. [Retrieve an object by id](#2-retrieve-an-object-by-id)

Code Examples
-------------

[](#code-examples)

### 1. Create a Purchase

[](#1-create-a-purchase)

MethodEndpoint`POST``/purchases/````
use Omnipay\Luminor\Gateway;
use Omnipay\Luminor\Message\Response\PurchaseResponse;
use Omnipay\Omnipay;

/** @var Gateway $gateway */
$gateway = Omnipay::create(Gateway::getGatewayClass());

$gateway->setBrandId('123456789');
$gateway->setSecretKey('abcde123456');

$options = [
    'client' => [
        'email' => 'test@test.com'
    ],
    'purchase' => [
        'currency' => 'EUR', // Currency code in the ISO 4217 standard,
        'language' => 'lv', // Language code in the ISO 639-1 format
        'total_override' => 100, // (optional) [type: int] If set, will override total sum from products[],
        'products' => [
            [
                'name' => 'Product name',
                'price' => 100, // [type: int],
                'quantity' => 1
            ]
        ]
    ],
    'success_redirect' => 'https://www.example.com/success/',
    'failure_redirect' => 'https://www.example.com/failure/',
    'cancel_redirect' => 'https://www.example.com/cancel/' // (optional)
];

/** @var PurchaseResponse $response */
$response = $gateway->completePurchase($options)->send();

if ($response->isRedirect()) {
    $response->redirect();
}
```

### 2. Retrieve an object by id

[](#2-retrieve-an-object-by-id)

MethodEndpoint`GET``/purchases/{id}/````
use Omnipay\Luminor\Gateway;
use Omnipay\Luminor\Message\Response\FetchTransactionResponse;
use Omnipay\Omnipay;

/** @var Gateway $gateway */
$gateway = Omnipay::create(Gateway::getGatewayClass());

$gateway->setBrandId('123456789');
$gateway->setSecretKey('abcde123456');

$options = [
    'transaction_reference' => 'abc123' // Object ID (UUID) from purchase response
];

/** @var FetchTransactionResponse $response */
$response = $gateway->fetchTransaction($options)->send();

if ($response->isSuccessful()) {
    // Do code
}
```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Every ~3 days

Total

2

Last Release

1975d ago

Major Versions

v1.0.0 → v2.0.02021-03-15

### Community

Maintainers

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

---

Tags

paymentgatewayomnipayacquiringluminor

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/deh4eg-omnipay-luminor/health.svg)

```
[![Health](https://phpackages.com/badges/deh4eg-omnipay-luminor/health.svg)](https://phpackages.com/packages/deh4eg-omnipay-luminor)
```

PHPackages © 2026

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