PHPackages                             sirius-software/omnipay-fibank - 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. sirius-software/omnipay-fibank

ActiveLibrary[Payment Processing](/categories/payments)

sirius-software/omnipay-fibank
==============================

Omnipay plugin for fibank ECOMM recurring payments

1.0.3(1y ago)013MITPHPPHP ^7.2|^8.0

Since Sep 5Pushed 1y agoCompare

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

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

omnipay-fibank
==============

[](#omnipay-fibank)

[Omnipay](https://omnipay.thephpleague.com) plugin for [fibank ECOMM](https://webops.eu/blog/fibank-bg-ecomm-%D0%BA%D0%B0%D1%80%D1%82%D0%BE%D0%B2%D0%B8-%D1%80%D0%B0%D0%BF%D0%BB%D0%B0%D1%89%D0%B0%D0%BD%D0%B8%D1%8F/) recurring payments

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

[](#installation)

```
composer require ampeco/omnipay-fibank
```

Getting started
---------------

[](#getting-started)

Create the gateway

```
$gateway = Omnipay::create('\Ampeco\OmnipayFibank\Gateway');
$gateway->initialize([
    'merchantCertificate'           => '... The PEM certificate you got from the bank',
    'merchantCertificatePassword'   => 'The Certificate Password',
    'createCardAmount'              => 1.00, // The amount and currency to use for the create account initial payment
    'createCardCurrency'            => 'BGN',
    'testMode' => true,
]);
```

Add a new credit card

```
try{
    $response = $gateway->createCard([
        'clientIp'      => 'CLIENT IP ADDRESS',
        'expiry'        => date('Y-m-d', strtotime('+10 years')),
        'description'   => 'Register a new payment method. The amount will be credited to your account',
])->send();
} catch (EcommException $e) {
    abort(422, $e->getMessage());
}

if (!$response->isSuccessful()) {
    abort(422, $response->getMessage());
}

// You must redirect the client to:
echo $response->getRedirectUrl();
echo $response->getTransactionId(); // The transaction ID assigned by the bank
```

Check if the client completed the card registration

```
$transactionReference = '1234567890'; // Fetched from above - $response->getTransactionId()
try {
    $result = $gateway->transactionResult([
        'transactionId' => $transactionReference,
        'clientIp' => 'CLIENT IP ADDRESS',
    ])->send();
} catch (EcommException $e) {
    abort(422, $e->getMessage());
}

if (!$result->isSuccessful()){
    abort(422, $result->getMessage());
}

// The card reference
echo $result->getCardReference(); // recurring_test_reference1234`
```

Charge the saved credit card reference

```
try {
    $cardReference = 'recurring_test_reference1234'; // saved from above - $result->getCardReference();
    $response = $gateway->purchase([
        'cardReference'     => $cardReference,
        'amount'            => 3,
        'currency'          => 'BGN',
        'description'       => 'Purchase #1234',
    ])->send();
} catch (EcommException $e) {
    abort(422, $e->getMessage());
}

if ($response->isSuccessful()) {
    echo $response->getTransactionReference();

} else {
    abort(422, $response->getMessage());
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% 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

609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01c4dea47ef71bb27ee495546ec8804079e0f31f37273d3b3ce07c2046201485?d=identicon)[marto7777777](/maintainers/marto7777777)

---

Top Contributors

[![dmtar](https://avatars.githubusercontent.com/u/37380766?v=4)](https://github.com/dmtar "dmtar (15 commits)")[![marto7777777](https://avatars.githubusercontent.com/u/72015924?v=4)](https://github.com/marto7777777 "marto7777777 (7 commits)")[![mspasov](https://avatars.githubusercontent.com/u/469995?v=4)](https://github.com/mspasov "mspasov (2 commits)")[![sash](https://avatars.githubusercontent.com/u/45210?v=4)](https://github.com/sash "sash (1 commits)")[![duromir](https://avatars.githubusercontent.com/u/8209270?v=4)](https://github.com/duromir "duromir (1 commits)")[![BobbyBorisov](https://avatars.githubusercontent.com/u/3647471?v=4)](https://github.com/BobbyBorisov "BobbyBorisov (1 commits)")[![alexander-ivanov-ampeco](https://avatars.githubusercontent.com/u/103567311?v=4)](https://github.com/alexander-ivanov-ampeco "alexander-ivanov-ampeco (1 commits)")

---

Tags

omnipayrecurring paymentsfibankecomm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sirius-software-omnipay-fibank/health.svg)

```
[![Health](https://phpackages.com/badges/sirius-software-omnipay-fibank/health.svg)](https://phpackages.com/packages/sirius-software-omnipay-fibank)
```

###  Alternatives

[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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