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

ActiveLibrary[Payment Processing](/categories/payments)

deh4eg/omnipay-blueorange
=========================

BlueOrange gateway for omnipay library

v1.2.0(3y ago)1221MITPHPPHP ^7.2

Since Apr 30Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Omnipay: BlueOrange Gateway
===========================

[](#omnipay-blueorange-gateway)

Omnipay BlueOrange 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/91ee68e6cd3615506d23c72f8bb89df4e182d7905df6f9f1f886c38cf558847b/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d626c75656f72616e67652f76)](//packagist.org/packages/deh4eg/omnipay-blueorange) [![Total Downloads](https://camo.githubusercontent.com/d4a776a7528065957d46b5e5951dfbf10c98432c8d6994feac804f6a9f313c69/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d626c75656f72616e67652f646f776e6c6f616473)](//packagist.org/packages/deh4eg/omnipay-blueorange) [![Latest Unstable Version](https://camo.githubusercontent.com/78bdf77d23374085d639d6075315521b00408642499cb282515e30b5fcaccaf9/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d626c75656f72616e67652f762f756e737461626c65)](//packagist.org/packages/deh4eg/omnipay-blueorange) [![License](https://camo.githubusercontent.com/8cc300b6c0159ba0230f64c9393e097afd4b02529e83cdab53f3e4025a1f1729/68747470733a2f2f706f7365722e707567782e6f72672f6465683465672f6f6d6e697061792d626c75656f72616e67652f6c6963656e7365)](//packagist.org/packages/deh4eg/omnipay-blueorange)

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

[](#installation)

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

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

API docs
--------

[](#api-docs)

BlueOrange Gateway API documentation you can find [here](https://gateway.bluorbank.lv/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\BlueOrange\Gateway;
use Omnipay\BlueOrange\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
            ]
        ]
    ],
    'reference' => '#1234', // (optional) Max length: 128
    '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\BlueOrange\Gateway;
use Omnipay\BlueOrange\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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~267 days

Total

3

Last Release

1305d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

paymentgatewayomnipayacquiringblueorangeblueorangebankblue orangebluorbank

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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