PHPackages                             margitin/omnipay-ubb - 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. margitin/omnipay-ubb

ActiveLibrary[Payment Processing](/categories/payments)

margitin/omnipay-ubb
====================

UBB Bank Bulgaria UPC gateway for Omnipay payment processing library

v1.0.1(4mo ago)010MITPHPPHP ^8.0

Since Dec 17Pushed 4mo agoCompare

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

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

Omnipay: Raiffeisen
===================

[](#omnipay-raiffeisen)

**[UBB Bank E-commerce](https://ecg.test.upc.ua/rbbg/merchant) gateway for Omnipay payment processing library**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Raiffeisen Bank BG support for Omnipay.

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

[](#installation)

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

```
composer require league/omnipay margitin/omnipay-ubb

```

Basic Usage
-----------

[](#basic-usage)

### Purchase

[](#purchase)

```
$gateway = Omnipay::create('Raiffeisen');

$gateway->setMerchantId($config['merchantId'])
    ->setTerminalId($config['terminalId'])
    ->setPrivateKey($config['privateKey'])
    ->setCurrency($config['currency'])
    ->setTestMode($config['testMode'])
    ->setGatewayCertificate($config['production_gateway_certificate']);

$response = $gateway->purchase(
    [
        'TotalAmount' => 100,
        'OrderID' => 'OrderID',
    ]
)->send();

// Process response
if ($response->isSuccessful()) {
    // Payment was successful
    print_r($response);
} elseif ($response->isRedirect()) {
    // Redirect to offsite payment gateway
    $response->redirect();
} else {
    // Payment failed
    echo $response->getMessage();
}
```

### Complete Purchase

[](#complete-purchase)

```
$response = $gateway->completePurchase()->send();

print_r($response->getData());
print_r($response->isSuccessful());
print_r($response->getCode());
print_r($response->getTransactionReference());
```

### Refund

[](#refund)

```
$response = $gateway->refund([
    'TotalAmount' => 100,
    'RefundAmount' => 100,
    'OrderID' => 'OrderID',
    'Rrn' => 'Rrn',
    'ApprovalCode' => 'ApprovalCode',
])->send();

print_r($response->getData());
print_r($response->isSuccessful());
print_r($response->getCode());
print_r($response->getMessage());
```

### Fetch Transaction

[](#fetch-transaction)

```
$response = $gateway->fetchTransaction([
    'TotalAmount' => 100,
    'OrderID' => 'OrderID',
    'PurchaseTime' => 'PurchaseTime',
])->send();

print_r($response->getData());
print_r($response->isSuccessful());
print_r($response->isReversal());
print_r($response->getCode());
print_r($response->getMessage());
print_r($response->getTransactionReference());
```

### Accept Notification

[](#accept-notification)

```
$response = $gateway->acceptNotification()->send();

print_r($response->getData());
print_r($response->isSuccessful());
print_r($response->getCode());
print_r($response->getMessage());
print_r($response->getTransactionReference());
print_r($response->getTransactionStatus());
print_r($response->getBody());
```

### Pay By Token

[](#pay-by-token)

```
$response = $gateway->payByToken([
    'TotalAmount' => 100,
    'OrderID' => 'OrderID',
    'UPCToken' => 'UPCToken',
])->send();

print_r($response->getData());
print_r($response->isSuccessful());
print_r($response->getCode());
print_r($response->getMessage());
print_r($response->getTransactionReference());
print_r($response->getTransactionStatus());
print_r($response->getBody());
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance77

Regular maintenance activity

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~19 days

Total

2

Last Release

125d ago

PHP version history (2 changes)v1.0.0PHP ^7.1 || ^8.0

v1.0.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/813d2eb99d69ce985a31a43c63c3fa08e2f8da9c1e2b788b526d2cb01669baee?d=identicon)[margitin](/maintainers/margitin)

---

Top Contributors

[![gtsvetanov](https://avatars.githubusercontent.com/u/58595199?v=4)](https://github.com/gtsvetanov "gtsvetanov (12 commits)")[![margitin](https://avatars.githubusercontent.com/u/75977600?v=4)](https://github.com/margitin "margitin (6 commits)")[![cloudcart](https://avatars.githubusercontent.com/u/11210765?v=4)](https://github.com/cloudcart "cloudcart (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchaseraiffeisen

### Embed Badge

![Health badge](/badges/margitin-omnipay-ubb/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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